The user is no longer correctly stored in the session, and I'm not sure why not.
62 lines
1.9 KiB
HTML
62 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
<!-- File form-districts-District.html generated 2018-07-01T22:15:35.303Z by adl.to-selmer-templates.
|
|
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|
|
|
|
|
{% block content %}
|
|
<div id='content' class='edit'>
|
|
<form action='{{servlet-context}}/form-districts-District' method='POST'>
|
|
{% csrf-field %}
|
|
<p class='widget'>
|
|
<label for='id'>
|
|
id
|
|
</label>
|
|
{% ifmemberof admin admin %}
|
|
<input id='id' name='id' type='text' value='{{record.id}}' maxlength='' size='16'/>
|
|
{% else %}
|
|
{% ifmemberof public admin canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
|
<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 districts
|
|
</span>
|
|
{% endifmemberof %}
|
|
{% endifmemberof %}
|
|
</p>
|
|
<p class='widget'>
|
|
<label for='name'>
|
|
name
|
|
</label>
|
|
{% ifmemberof admin admin %}
|
|
<input id='name' name='name' type='text' value='{{record.name}}' maxlength='64' size='60'/>
|
|
{% else %}
|
|
{% ifmemberof public admin canvassers teamorganisers issueexperts analysts issueeditors admin %}
|
|
<span id='name' name='name' class='pseudo-widget disabled'>
|
|
{{record.name}}
|
|
</span>
|
|
{% else %}
|
|
<span id='name' name='name' class='pseudo-widget not-authorised'>
|
|
You are not permitted to view name of districts
|
|
</span>
|
|
{% endifmemberof %}
|
|
{% endifmemberof %}
|
|
</p>
|
|
<p class='widget action-safe'>
|
|
<label for='save-button' class='action-safe'>
|
|
To save this districts record
|
|
</label>
|
|
<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 districts record
|
|
</label>
|
|
<input id='delete-button' name='delete-button' class='action-dangerous' type='submit' value='Delete!'/>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
|
|
{% endblock %}
|