forked from raksha-life/rescuekerala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feature/NGO
# Conflicts: # templates/home.html
- Loading branch information
Showing
21 changed files
with
305 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 2.1 on 2018-08-17 06:36 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mainapp', '0033_auto_20180817_1003'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='rescuecamp', | ||
name='latlng', | ||
field=models.CharField(blank=True, help_text="Comma separated latlng field. Leave blank if you don't know it", max_length=100, verbose_name='GPS Coordinates'), | ||
), | ||
migrations.AddField( | ||
model_name='rescuecamp', | ||
name='map_link', | ||
field=models.CharField(blank=True, help_text='Copy and paste the full Google Maps link', max_length=250, null=True, verbose_name='Map link'), | ||
), | ||
migrations.AlterField( | ||
model_name='person', | ||
name='address', | ||
field=models.TextField(blank=True, max_length=150, null=True, verbose_name='Address - വിലാസം'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 2.1 on 2018-08-17 08:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mainapp', '0033_auto_20180817_1003'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='rescuecamp', | ||
name='taluk', | ||
field=models.CharField(default=' ', max_length=50, verbose_name='Taluk'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='rescuecamp', | ||
name='village', | ||
field=models.CharField(default=' ', max_length=50, verbose_name='Village'), | ||
preserve_default=False, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'base.html' %} | ||
{% load bootstrap3 %} | ||
|
||
{% block content %} | ||
<div class="row text-center static-page-box"> | ||
<h1 class="text-center">Error</h1> | ||
<p style="font-size:1.7rem;">{{ error_text }}</p> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% extends 'base.html' %} | ||
{% load bootstrap3 %} | ||
|
||
{% block content %} | ||
|
||
<form action="{%url 'requestlistview' %}" method="get" class="text-center"> | ||
{{ filter.form.as_p }} | ||
<input value="View requests" class="btn btn-primary" type="submit" /> | ||
</form> | ||
<div class="table-responsive"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th colspan="2" style="text-align:center;">Request details</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<tr> | ||
<td><b> District : </b></td><td>{{ req.get_district_display }}</td> | ||
</tr> | ||
<tr> | ||
<td><b> Location : </b></td><td>{{ req.location }}</td> | ||
</tr> | ||
<tr> | ||
<td><b> GPS Location : </b></td> | ||
<td> | ||
{% if not req.is_request_for_others and req.latlng %} | ||
<a class="btn btn-sm btn-success" href="https://maps.google.com/?q={{ req.latlng }}" target="_blank">Open in maps</a> | ||
<br> | ||
Accuracy: {{ req.latlng_accuracy }} | ||
{% else %} | ||
NA | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><b> Requestee : </b></td><td>{{ req.requestee }}</td> | ||
</tr> | ||
<tr> | ||
<td><b> Contact number : </b></td><td><a href="tel:{{ req.requestee_phone }}" >{{ req.requestee_phone }}</a></td> | ||
</tr> | ||
<tr> | ||
<td><b> Summary of request : </b></td><td>{{ req.summarise | linebreaks }}</td> | ||
</tr> | ||
<tr> | ||
<td><b> Date : </b></td><td>{{ req.dateadded }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.