Much progress, nothing yet works.
This commit is contained in:
parent
284509fa7b
commit
acfaf985fa
40 changed files with 1658 additions and 1430 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File form-addresses-Address.html generated 2018-06-18T10:08:09.773Z by adl.to-selmer-templates.
|
||||
<!-- File form-addresses-Address.html generated 2018-06-19T18:51:51.676Z 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'/>
|
||||
|
|
@ -24,7 +24,6 @@ See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|||
<div id='content' class='edit'>
|
||||
<form action='{{servlet-context}}/form-addresses-Address' method='POST'>
|
||||
{% csrf-field %}
|
||||
<input id='id' name='id' type='hidden' value='{{record.id}}'/>
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
|
|
@ -36,6 +35,10 @@ id
|
|||
<span id='id' name='id' class='pseudo-widget disabled'>
|
||||
{{record.id}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='id' name='id' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view id of addresses
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
|
|
@ -50,6 +53,10 @@ address
|
|||
<span id='address' name='address' class='pseudo-widget disabled'>
|
||||
{{record.address}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='address' name='address' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view address of addresses
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
|
|
@ -64,6 +71,10 @@ postcode
|
|||
<span id='postcode' name='postcode' class='pseudo-widget disabled'>
|
||||
{{record.postcode}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='postcode' name='postcode' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view postcode of addresses
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
|
|
@ -78,6 +89,10 @@ phone
|
|||
<span id='phone' name='phone' class='pseudo-widget disabled'>
|
||||
{{record.phone}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='phone' name='phone' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view phone of addresses
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
|
|
@ -97,108 +112,9 @@ district_id
|
|||
<span id='district_id' name='district_id' class='pseudo-widget disabled'>
|
||||
{{record.district_id}}
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='latitude'>
|
||||
latitude
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='latitude' name='latitude' type='number' value='{{record.latitude}}'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='latitude' name='latitude' class='pseudo-widget disabled'>
|
||||
{{record.latitude}}
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='longitude'>
|
||||
longitude
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='longitude' name='longitude' type='number' value='{{record.longitude}}'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='longitude' name='longitude' class='pseudo-widget disabled'>
|
||||
{{record.longitude}}
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='id'>
|
||||
id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='id' name='id' type='text' value='{{record.id}}'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='id' name='id' class='pseudo-widget disabled'>
|
||||
{{record.id}}
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='address'>
|
||||
address
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='address' name='address' type='text' value='{{record.address}}'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='address' name='address' class='pseudo-widget disabled'>
|
||||
{{record.address}}
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='postcode'>
|
||||
postcode
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='postcode' name='postcode' type='text' value='{{record.postcode}}'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='postcode' name='postcode' class='pseudo-widget disabled'>
|
||||
{{record.postcode}}
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='phone'>
|
||||
phone
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<input id='phone' name='phone' type='text' value='{{record.phone}}'/>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='phone' name='phone' class='pseudo-widget disabled'>
|
||||
{{record.phone}}
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
<p class='widget'>
|
||||
<label for='district_id'>
|
||||
district_id
|
||||
</label>
|
||||
{% ifmemberof admin %}
|
||||
<div class='select-box' farside='districts' found='true'>
|
||||
<input name='district_id-search-box' onchange='/* javascript to repopulate the select widget */'/>
|
||||
<select id='district_id' name='district_id' comment='JavaScript stuff to fix up aynchronous loading'>
|
||||
{% for record in districts %}<option value='{{record.id}}'>{{record.name}}</option>{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% else %}
|
||||
{% ifmemberof canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
||||
<span id='district_id' name='district_id' class='pseudo-widget disabled'>
|
||||
{{record.district_id}}
|
||||
<span id='district_id' name='district_id' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view district_id of addresses
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
|
|
@ -214,6 +130,10 @@ latitude
|
|||
<span id='latitude' name='latitude' class='pseudo-widget disabled'>
|
||||
{{record.latitude}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='latitude' name='latitude' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view latitude of addresses
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
|
|
@ -228,6 +148,10 @@ longitude
|
|||
<span id='longitude' name='longitude' class='pseudo-widget disabled'>
|
||||
{{record.longitude}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span id='longitude' name='longitude' class='pseudo-widget not-authorised'>
|
||||
You are not permitted to view longitude of addresses
|
||||
</span>
|
||||
{% endifmemberof %}
|
||||
{% endifmemberof %}
|
||||
</p>
|
||||
|
|
@ -235,13 +159,13 @@ longitude
|
|||
<label for='save-button' class='action-safe'>
|
||||
To save this addresses record
|
||||
</label>
|
||||
<input id='save-button' name='save-button' class='action-safe' type=':submit' value='Save!'/>
|
||||
<input id='save-button' name='save-button' class='action-safe' type='submit' value='Save!'/>
|
||||
</p>
|
||||
<p class='widget action-dangerous'>
|
||||
<label for='delete-button' class='action-dangerous'>
|
||||
To delete this addresses record
|
||||
</label>
|
||||
<input id='delete-button' name='delete-button' class='action-dangerous' type=':submit' value='Delete!'/>
|
||||
<input id='delete-button' name='delete-button' class='action-dangerous' type='submit' value='Delete!'/>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue