Minor fix to ADL - wrong capitalisation
Plus regenerated files.
This commit is contained in:
parent
5356f65ca3
commit
b65223198c
45 changed files with 155 additions and 199 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-visits-Visit.html generated 2018-07-10T15:25:24.201Z by adl.to-selmer-templates.
|
||||
<!-- File form-visits-Visit.html generated 2018-07-15T11:36:36.876Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ Address_id
|
|||
{% if {{record.address_id}} %}
|
||||
{% ifmemberof admin %}
|
||||
<select id='address_id' name='address_id'>
|
||||
{% for option in address_id %}<option value='{{option.id}}' {% ifequal record.address_id option.id%}selected{% endifequal %}>{{option.address}} {{option.postcode}}</option>{% endfor %}
|
||||
{% for option in address_id %}<option value='{{option.id}}' {% ifequal record.address_id option.id%}selected='selected'{% endifequal %}>{{option.address}} {{option.postcode}}</option>{% endfor %}
|
||||
</select>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers admin %}
|
||||
|
|
@ -69,7 +69,7 @@ You are not permitted to view address_id of visits
|
|||
{% else %}
|
||||
{% ifmemberof admin %}
|
||||
<select id='address_id' name='address_id'>
|
||||
{% for option in address_id %}<option value='{{option.id}}' {% ifequal record.address_id option.id%}selected{% endifequal %}>{{option.address}} {{option.postcode}}</option>{% endfor %}
|
||||
{% for option in address_id %}<option value='{{option.id}}' {% ifequal record.address_id option.id%}selected='selected'{% endifequal %}>{{option.address}} {{option.postcode}}</option>{% endfor %}
|
||||
</select>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers admin %}
|
||||
|
|
@ -91,7 +91,7 @@ Canvasser_id
|
|||
{% if {{record.canvasser_id}} %}
|
||||
{% ifmemberof admin %}
|
||||
<select id='canvasser_id' name='canvasser_id'>
|
||||
{% for option in canvasser_id %}<option value='{{option.id}}' {% ifequal record.canvasser_id option.id%}selected{% endifequal %}>{{option.username}} {{option.fullname}} {{option.address_id}} {{option.phone}} {{option.email}}</option>{% endfor %}
|
||||
{% for option in canvasser_id %}<option value='{{option.id}}' {% ifequal record.canvasser_id option.id%}selected='selected'{% endifequal %}>{{option.username}} {{option.fullname}} {{option.address_id_expanded}} {{option.phone}} {{option.email}}</option>{% endfor %}
|
||||
</select>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers admin %}
|
||||
|
|
@ -107,7 +107,7 @@ You are not permitted to view canvasser_id of visits
|
|||
{% else %}
|
||||
{% ifmemberof admin %}
|
||||
<select id='canvasser_id' name='canvasser_id'>
|
||||
{% for option in canvasser_id %}<option value='{{option.id}}' {% ifequal record.canvasser_id option.id%}selected{% endifequal %}>{{option.username}} {{option.fullname}} {{option.address_id}} {{option.phone}} {{option.email}}</option>{% endfor %}
|
||||
{% for option in canvasser_id %}<option value='{{option.id}}' {% ifequal record.canvasser_id option.id%}selected='selected'{% endifequal %}>{{option.username}} {{option.fullname}} {{option.address_id_expanded}} {{option.phone}} {{option.email}}</option>{% endfor %}
|
||||
</select>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin canvassers teamorganisers admin %}
|
||||
|
|
@ -179,13 +179,14 @@ To delete this visits record
|
|||
{% block extra-tail %}
|
||||
<script type='text/javascript'>
|
||||
/**
|
||||
* selectize one select widget. Substitute the actual id of the widget for `address_id`.
|
||||
* selectize one select widget. Substitute the actual id of the widget for `address_id`,
|
||||
* and the current value for {{record.address_id}}.
|
||||
*/
|
||||
$('#address_id').selectize({
|
||||
valueField: 'id',
|
||||
labelField: 'name',
|
||||
searchField: 'name',
|
||||
options: [],
|
||||
hideSelected: false,
|
||||
create: false,
|
||||
|
||||
load: function(query, callback) {
|
||||
|
|
@ -205,16 +206,17 @@ $('#address_id').selectize({
|
|||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
})[0].selectize.setValue({{record.address_id}}, true);
|
||||
|
||||
/**
|
||||
* selectize one select widget. Substitute the actual id of the widget for `canvasser_id`.
|
||||
* selectize one select widget. Substitute the actual id of the widget for `canvasser_id`,
|
||||
* and the current value for {{record.canvasser_id}}.
|
||||
*/
|
||||
$('#canvasser_id').selectize({
|
||||
valueField: 'id',
|
||||
labelField: 'name',
|
||||
searchField: 'name',
|
||||
options: [],
|
||||
hideSelected: false,
|
||||
create: false,
|
||||
|
||||
load: function(query, callback) {
|
||||
|
|
@ -234,7 +236,7 @@ $('#canvasser_id').selectize({
|
|||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
})[0].selectize.setValue({{record.canvasser_id}}, true);
|
||||
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue