Make "land ownership details" visible always

Closes #71
This commit is contained in:
Carl van Tonder 2018-05-26 11:36:44 -04:00
parent 006262c7ea
commit 8a8eccaeaa
3 changed files with 22 additions and 6 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-05-26 15:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('map', '0063_auto_20180525_0052'),
]
operations = [
migrations.AlterField(
model_name='casestudy',
name='land_ownership_details',
field=models.CharField(blank=True, help_text='Please specify details about land ownership', max_length=256, null=True, verbose_name='Land ownership/tenure details'),
),
]

View File

@ -310,7 +310,7 @@ class CaseStudy(models.Model):
# 1.5.3 # 1.5.3
land_ownership_details = models.CharField( land_ownership_details = models.CharField(
verbose_name=_("Land ownership details"), verbose_name=_("Land ownership details"),
help_text=_("Please specify details about land ownership if you chose 'other'"), help_text=_("Please specify details about land ownership"),
max_length=256, max_length=256,
null=True, null=True,
blank=True, blank=True,

View File

@ -177,11 +177,7 @@
<script> <script>
// Here we define the fields we need to conditionally toggle. // Here we define the fields we need to conditionally toggle.
// TODO: Move this knowledge out of the template // TODO: Move this knowledge out of the template
var conditionalFields = [{ var conditionalFields = [
"field": "#id_land_ownership",
"showHide": ["#div_id_land_ownership_details"],
"condition": ["OTH"]
},
{ {
"field": "#id_location_context", "field": "#id_location_context",
"showHide": ["#div_id_type_of_ecosystem"], "showHide": ["#div_id_type_of_ecosystem"],