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 pull request raksha-life#347 from jiikrish/feature/NGO
Feature/ngo
- Loading branch information
Showing
9 changed files
with
172 additions
and
4 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
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,29 @@ | ||
# Generated by Django 2.1 on 2018-08-17 07:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mainapp', '0033_auto_20180817_1003'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='NGO', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('district', models.CharField(choices=[('alp', 'Alappuzha - ആലപ്പുഴ'), ('ekm', 'Ernakulam - എറണാകുളം'), ('idk', 'Idukki - ഇടുക്കി'), ('knr', 'Kannur - കണ്ണൂർ'), ('ksr', 'Kasaragod - കാസർഗോഡ്'), ('kol', 'Kollam - കൊല്ലം'), ('ktm', 'Kottayam - കോട്ടയം'), ('koz', 'Kozhikode - കോഴിക്കോട്'), ('mpm', 'Malappuram - മലപ്പുറം'), ('pkd', 'Palakkad - പാലക്കാട്'), ('ptm', 'Pathanamthitta - പത്തനംതിട്ട'), ('tvm', 'Thiruvananthapuram - തിരുവനന്തപുരം'), ('tcr', 'Thrissur - തൃശ്ശൂർ'), ('wnd', 'Wayanad - വയനാട്')], max_length=15)), | ||
('organisation', models.CharField(max_length=250, verbose_name='Name of Organization (സംഘടന)')), | ||
('organisation_type', models.CharField(max_length=250, verbose_name='Type of Organization (സംഘടന)')), | ||
('name', models.CharField(max_length=100, verbose_name='Contact Person')), | ||
('phone', models.CharField(max_length=10)), | ||
('description', models.TextField(verbose_name='About Organisation')), | ||
('area', models.CharField(max_length=500, verbose_name='Area of volunteering')), | ||
('location', models.CharField(max_length=500, verbose_name='Preferred Location to Volunteer')), | ||
('is_spoc', models.BooleanField(default=False, verbose_name='Is point of contact')), | ||
('joined', models.DateTimeField(auto_now_add=True)), | ||
], | ||
), | ||
] |
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,18 @@ | ||
# Generated by Django 2.1 on 2018-08-17 08:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mainapp', '0034_ngo'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='ngo', | ||
name='area', | ||
field=models.TextField(verbose_name='Area of volunteering'), | ||
), | ||
] |
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 09:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mainapp', '0035_auto_20180817_1339'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='ngo', | ||
name='organisation_address', | ||
field=models.TextField(default='', verbose_name='Address of Organization'), | ||
), | ||
migrations.AlterField( | ||
model_name='ngo', | ||
name='organisation', | ||
field=models.CharField(max_length=250, verbose_name='Name of Organization (സംഘടനയുടെ പേര്)'), | ||
), | ||
migrations.AlterField( | ||
model_name='ngo', | ||
name='organisation_type', | ||
field=models.CharField(max_length=250, verbose_name='Type of Organization'), | ||
), | ||
] |
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,23 @@ | ||
{% extends 'base.html' %} | ||
{% load bootstrap3 %} | ||
|
||
{% block content %} | ||
<p class="text-center"> | ||
<h3 class="text-center">NGO/Company Registration</h3> | ||
</p> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
{% buttons %} | ||
<button type="submit" class="btn btn-primary"> | ||
{% bootstrap_icon "star" %} Submit | ||
</button> | ||
{% endbuttons %} | ||
</form> | ||
|
||
<script> | ||
window.onload = function() { | ||
$("#id_phone").attr('type', 'number'); | ||
} | ||
</script> | ||
{% 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
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