#47, #48, #49, #50: MY MONSTER IT LIVES

Most of the forms of the admin user interface render and sort-of work. It needs polish - but it's a huge leap forward!
This commit is contained in:
Simon Brooke 2018-06-11 19:07:38 +01:00
parent 98695e41dc
commit bbf6daf6ca
31 changed files with 3430 additions and 1375 deletions

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-visits-Visit.html generated 2018-06-10T21:17:47.126Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-visits-Visit.html generated 2018-06-11T17:32:20.356Z by adl.to-selmer-templates.
See [Application Description Language](https://github.com/simon-brooke/adl).-->
{% block head %}
<html:meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<html:meta content='width=device-width, initial-scale=1' name='viewport'/>
<html:link href='css/yyy-common.css' type='text/css' rel='stylesheet'/>
<html:link href='css/yyy-site.css' type='text/css' rel='stylesheet'/>
<html:link href='css/spinner.css' type='text/css' rel='stylesheet'/>
<html:link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Archivo+Black|Archivo+Narrow'/>
<html:title>
{{site-title}}: {{title}}
</html:title>
{% endblock %}
{% block content %}
<div id='content' class='edit'>
@ -27,7 +44,12 @@ id
address_id
</label>
{% ifwritable visits address_id %}
<input id='address_id' name='address_id' type='number' value='{{record.address_id}}'/>
<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'>
{% for record in addresses %}<option value='{{record.id}}'>{{record.address}} {{record.postcode}}</option>{% endfor %}
</select>
</div>
{% else %}
{% ifreadable visits address_id%}
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
@ -88,7 +110,12 @@ id
address_id
</label>
{% ifwritable visits address_id %}
<input id='address_id' name='address_id' type='number' value='{{record.address_id}}'/>
<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'>
{% for record in addresses %}<option value='{{record.id}}'>{{record.address}} {{record.postcode}}</option>{% endfor %}
</select>
</div>
{% else %}
{% ifreadable visits address_id%}
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
@ -146,3 +173,50 @@ To delete this visits record
</div>
{% endblock %}
{% block foot %}
<html:footer>
<html:div id='credits'>
<html:div>
<html:img height='24' width='24' src='img/credits/ric-logo.png'/>
A project of the
<html:a href='https://radical.scot/'>
Radical Independence Campaign
</html:a>
||
Version {{version}}
</html:div>
<html:div>
<html:img src='img/credits/luminus-logo.png' alt='Clojure' width='16' height='16'/>
Built with
<html:a href='http://www.luminusweb.net/'>
LuminusWeb
</html:a>
||
<html:img src='img/credits/clojure-icon.gif' alt='Clojure' width='16' height='16'/>
Powered by
<html:a href='http://clojure.org'>
Clojure
</html:a>
||
<html:img src='img/credits/github-logo-transparent.png' alt='GitHub' width='16' height='16'/>
Find me/fork me on
<html:a href='https://github.com/simon-brooke/smeagol'>
Github
</html:a>
||
<html:img src='img/credits/gnu.small.png' alt='Free Software Foundation' width='16' height='16'/>
Licensed under the
<html:a href='http://www.gnu.org/licenses/gpl-2.0.html'>
GNU General Public License version 2.0
</html:a>
</html:div>
</html:div>
</html:footer>
{% endblock %}