Add non-indigenous people list, as per client request
This commit is contained in:
parent
9ab6366d37
commit
e4f4a5e73b
@ -53,8 +53,8 @@ class ShortCaseStudyForm(BaseCaseStudyForm):
|
|||||||
'location_context',
|
'location_context',
|
||||||
'type_of_ecosystem',
|
'type_of_ecosystem',
|
||||||
'describe_ecosystem',
|
'describe_ecosystem',
|
||||||
'affects_indigenous',
|
'people_affected_indigenous',
|
||||||
'affects_indigenous_detail',
|
'people_affected_other',
|
||||||
'project_status',
|
'project_status',
|
||||||
'synopsis',
|
'synopsis',
|
||||||
'full_description',
|
'full_description',
|
||||||
@ -84,8 +84,8 @@ class LongCaseStudyForm(BaseCaseStudyForm):
|
|||||||
'location_context',
|
'location_context',
|
||||||
'type_of_ecosystem',
|
'type_of_ecosystem',
|
||||||
'describe_ecosystem',
|
'describe_ecosystem',
|
||||||
'affects_indigenous',
|
'people_affected_indigenous',
|
||||||
'affects_indigenous_detail',
|
'people_affected_other',
|
||||||
'project_status',
|
'project_status',
|
||||||
'synopsis',
|
'synopsis',
|
||||||
'full_description',
|
'full_description',
|
||||||
|
33
apps/map/migrations/0049_auto_20180331_1134.py
Normal file
33
apps/map/migrations/0049_auto_20180331_1134.py
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.6 on 2018-03-31 11:34
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('map', '0048_auto_20180331_0933'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='casestudy',
|
||||||
|
name='affects_indigenous',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='casestudy',
|
||||||
|
name='affects_indigenous_detail',
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='casestudy',
|
||||||
|
name='people_affected_indigenous',
|
||||||
|
field=models.TextField(blank=True, help_text='What group or groups of indigenous people are affected by this project? Please separate by newline.', verbose_name='Indigenous people affected'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='casestudy',
|
||||||
|
name='people_affected_other',
|
||||||
|
field=models.TextField(blank=True, help_text='What other group or groups of people are affected by this project? Please separate by newline.', verbose_name='Non-indigenous people affected'),
|
||||||
|
),
|
||||||
|
]
|
@ -320,20 +320,18 @@ class CaseStudy(models.Model):
|
|||||||
help_text=_("In your own words, add more detail about the ecosystem."),
|
help_text=_("In your own words, add more detail about the ecosystem."),
|
||||||
)
|
)
|
||||||
|
|
||||||
# 1.5.6
|
# Was 1.5.6; spec not being followed here after request from client
|
||||||
affects_indigenous = models.BooleanField(
|
people_affected_indigenous = models.TextField(
|
||||||
verbose_name=_("Affects indigenous people?"),
|
verbose_name=_("Indigenous people affected"),
|
||||||
help_text=_("Does the project affect indigenous communities?")
|
help_text=_("What group or groups of indigenous people are affected by this project? \
|
||||||
|
Please separate by newline."),
|
||||||
|
blank=True
|
||||||
)
|
)
|
||||||
|
|
||||||
# 1.5.6.1
|
people_affected_other = models.TextField(
|
||||||
affects_indigenous_detail = models.CharField(
|
verbose_name=_("Non-indigenous people affected"),
|
||||||
verbose_name=_("Affects Indigenous - Details"),
|
help_text=_("What other group or groups of people are affected by this project? \
|
||||||
help_text=_("What group of indigenous people does the community belong\
|
Please separate by newline."),
|
||||||
to?"),
|
|
||||||
max_length=256,
|
|
||||||
default=None,
|
|
||||||
null=True,
|
|
||||||
blank=True
|
blank=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -165,8 +165,13 @@ dd ul { padding-left: 0; margin-left: 0; }
|
|||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
{% if case_study.affects_indigenous %}
|
{% if case_study.affects_indigenous %}
|
||||||
<h2>{% trans "Affected groups of indigenous people" %}</h2>
|
<h2>{% trans "Affected groups of people" %}</h2>
|
||||||
{{ case_study.affects_indigenous_detail | linebreaks }}
|
|
||||||
|
<h3>{% trans "Indigenous people" %}</h3>
|
||||||
|
{{ case_study.people_affected_indigenous | linebreaks }}
|
||||||
|
|
||||||
|
<h3>{% trans "Non-indigenous people" %}</h3>
|
||||||
|
{{ case_study.people_affected_other | linebreaks }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h2>Project status</h2>
|
<h2>Project status</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user