youyesyet/resources/templates/auto/form-dwellings-Dwelling.html
Simon Brooke a00da8079c #47, #48, #49, #50: Auto-generated admin system largely done
This work is closely coupled with work on [ADL](https://github.com/simon-brooke/adl), q.v. At present ADL largely supports this project.
2018-06-10 22:45:58 +01:00

121 lines
3.5 KiB
HTML

{% extends "templates/base.html" %}
<!-- File form-dwellings-Dwelling.html generated 2018-06-10T21:17:47.138Z 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-dwellings-Dwelling' method='POST'>
{% csrf-field %}
<input id='id' name='id' type='hidden' value='{{record.id}}'/>
<p class='widget'>
<label for='id'>
id
</label>
{% ifwritable dwellings %}
<input id='id' name='id' type='text' value='{{record.id}}'/>
{% else %}
{% ifreadable dwellings %}
<span id='id' name='id' class='pseudo-widget disabled'>
{{record.id}}
</span>
{% endifreadable %}
{% endifwritable %}
</p>
<p class='widget'>
<label for='address_id'>
address_id
</label>
{% ifwritable dwellings address_id %}
<div class='select-box' farside='address' found='false'>
<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'>
{% for record in address %}<option value='{{record.id}}'></option>{% endfor %}
</select>
</div>
{% else %}
{% ifreadable dwellings address_id%}
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
{{record.address_id}}
</span>
{% endifreadable %}
{% endifwritable %}
</p>
<p class='widget'>
<label for='sub-address'>
sub-address
</label>
{% ifwritable dwellings sub-address %}
<input id='sub-address' name='sub-address' type='text' value='{{record.sub-address}}'/>
{% else %}
{% ifreadable dwellings sub-address%}
<span id='sub-address' name='sub-address' class='pseudo-widget disabled'>
{{record.sub-address}}
</span>
{% endifreadable %}
{% endifwritable %}
</p>
<p class='widget'>
<label for='id'>
id
</label>
{% ifwritable dwellings %}
<input id='id' name='id' type='text' value='{{record.id}}'/>
{% else %}
{% ifreadable dwellings %}
<span id='id' name='id' class='pseudo-widget disabled'>
{{record.id}}
</span>
{% endifreadable %}
{% endifwritable %}
</p>
<p class='widget'>
<label for='address_id'>
address_id
</label>
{% ifwritable dwellings address_id %}
<div class='select-box' farside='address' found='false'>
<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'>
{% for record in address %}<option value='{{record.id}}'></option>{% endfor %}
</select>
</div>
{% else %}
{% ifreadable dwellings address_id%}
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
{{record.address_id}}
</span>
{% endifreadable %}
{% endifwritable %}
</p>
<p class='widget'>
<label for='sub-address'>
sub-address
</label>
{% ifwritable dwellings sub-address %}
<input id='sub-address' name='sub-address' type='text' value='{{record.sub-address}}'/>
{% else %}
{% ifreadable dwellings sub-address%}
<span id='sub-address' name='sub-address' class='pseudo-widget disabled'>
{{record.sub-address}}
</span>
{% endifreadable %}
{% endifwritable %}
</p>
<p class='widget action-safe'>
<label for='save-button' class='action-safe'>
To save this dwellings 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 dwellings record
</label>
<input id='delete-button' name='delete-button' class='action-dangerous' type=':submit' value='Delete!'/>
</p>
</form>
</div>
{% endblock %}