Work on getting forms to go. Not yet complete.
This commit is contained in:
parent
6f09c0841c
commit
284509fa7b
40 changed files with 866 additions and 684 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-dwellings-Dwelling.html generated 2018-06-15T08:47:04.340Z by adl.to-selmer-templates.
|
||||
<!-- File form-dwellings-Dwelling.html generated 2018-06-18T10:08:09.847Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
{% block head %}
|
||||
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
|
||||
|
|
@ -29,21 +29,21 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
<label for='id'>
|
||||
id
|
||||
</label>
|
||||
{% ifwritable dwellings %}
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='text' value='{{record.id}}'/>
|
||||
{% else %}
|
||||
{% ifreadable dwellings %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='id' name='id' class='pseudo-widget disabled'>
|
||||
{{record.id}}
|
||||
</span>
|
||||
{% endifreadable %}
|
||||
{% endifwritable %}
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='address_id'>
|
||||
address_id
|
||||
</label>
|
||||
{% ifwritable dwellings address_id %}
|
||||
{% ifmemberof admin %}
|
||||
<div class='select-box' farside='addresses' found='true'>
|
||||
<input name='address_id-search-box' onchange='/* javascript to repopulate the select widget */'/>
|
||||
<select id='address_id' name='address_id' comment='JavaScript stuff to fix up aynchronous loading'>
|
||||
|
|
@ -51,46 +51,46 @@ address_id
|
|||
</select>
|
||||
</div>
|
||||
{% else %}
|
||||
{% ifreadable dwellings address_id%}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
|
||||
{{record.address_id}}
|
||||
</span>
|
||||
{% endifreadable %}
|
||||
{% endifwritable %}
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='sub-address'>
|
||||
sub-address
|
||||
</label>
|
||||
{% ifwritable dwellings sub-address %}
|
||||
{% ifmemberof admin %}
|
||||
<input id='sub-address' name='sub-address' type='text' value='{{record.sub-address}}'/>
|
||||
{% else %}
|
||||
{% ifreadable dwellings sub-address%}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='sub-address' name='sub-address' class='pseudo-widget disabled'>
|
||||
{{record.sub-address}}
|
||||
</span>
|
||||
{% endifreadable %}
|
||||
{% endifwritable %}
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
</label>
|
||||
{% ifwritable dwellings %}
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='text' value='{{record.id}}'/>
|
||||
{% else %}
|
||||
{% ifreadable dwellings %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='id' name='id' class='pseudo-widget disabled'>
|
||||
{{record.id}}
|
||||
</span>
|
||||
{% endifreadable %}
|
||||
{% endifwritable %}
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='address_id'>
|
||||
address_id
|
||||
</label>
|
||||
{% ifwritable dwellings address_id %}
|
||||
{% ifmemberof admin %}
|
||||
<div class='select-box' farside='addresses' found='true'>
|
||||
<input name='address_id-search-box' onchange='/* javascript to repopulate the select widget */'/>
|
||||
<select id='address_id' name='address_id' comment='JavaScript stuff to fix up aynchronous loading'>
|
||||
|
|
@ -98,26 +98,26 @@ address_id
|
|||
</select>
|
||||
</div>
|
||||
{% else %}
|
||||
{% ifreadable dwellings address_id%}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
|
||||
{{record.address_id}}
|
||||
</span>
|
||||
{% endifreadable %}
|
||||
{% endifwritable %}
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='sub-address'>
|
||||
sub-address
|
||||
</label>
|
||||
{% ifwritable dwellings sub-address %}
|
||||
{% ifmemberof admin %}
|
||||
<input id='sub-address' name='sub-address' type='text' value='{{record.sub-address}}'/>
|
||||
{% else %}
|
||||
{% ifreadable dwellings sub-address%}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='sub-address' name='sub-address' class='pseudo-widget disabled'>
|
||||
{{record.sub-address}}
|
||||
</span>
|
||||
{% endifreadable %}
|
||||
{% endifwritable %}
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget action-safe'>
|
||||
<label for='save-button' class='action-safe'>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue