#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,6 +1,6 @@
-- File queries.sql
-- autogenerated by adl.to-hugsql-queries at
-- 2018-06-11T00:58:48.917Z
-- 2018-06-11T15:50:04.238Z
-- See [Application Description Language](https://github.com/simon-brooke/adl).
@ -495,8 +495,8 @@ ORDER BY canvassers.username,
-- :doc links all existing canvasser records related to a given role
SELECT *
FROM canvassers
WHERE canvassers.roles = link_canvassers_roles.canvasser_id
AND link_canvassers_roles.role_id = :id
WHERE canvassers.roles = link_canvassers_.canvasser_id
AND link_canvassers_.role_id = :id
ORDER BY canvassers.username,
canvassers.fullname,
canvassers.email,

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File application-index.html generated 2018-06-10T21:17:47.127Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File application-index.html generated 2018-06-11T17:32:20.359Z 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 %}
<dl class='index'>
@ -202,3 +219,50 @@ Followupmethod
</dl>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-addresses-Address.html generated 2018-06-10T21:17:47.120Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-addresses-Address.html generated 2018-06-11T17:32:20.336Z 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'>
@ -230,3 +247,50 @@ To delete this addresses 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-canvassers-Canvasser.html generated 2018-06-10T21:17:47.133Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-canvassers-Canvasser.html generated 2018-06-11T17:32:20.372Z 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'>
@ -74,7 +91,12 @@ elector_id
address_id
</label>
{% ifwritable canvassers 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 canvassers address_id%}
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
@ -210,7 +232,12 @@ elector_id
address_id
</label>
{% ifwritable canvassers 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 canvassers address_id%}
<span id='address_id' name='address_id' class='pseudo-widget disabled'>
@ -315,3 +342,50 @@ To delete this canvassers 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-districts-District.html generated 2018-06-10T21:17:47.119Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-districts-District.html generated 2018-06-11T17:32:20.331Z 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'>
@ -80,3 +97,50 @@ To delete this districts 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-dwellings-Dwelling.html generated 2018-06-10T21:17:47.138Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-dwellings-Dwelling.html generated 2018-06-11T17:32:20.380Z 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'>
@ -118,3 +135,50 @@ To delete this dwellings 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-electors-Elector.html generated 2018-06-10T21:17:47.130Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-electors-Elector.html generated 2018-06-11T17:32:20.365Z 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'>
@ -210,3 +227,50 @@ To delete this electors 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-followupactions-Followupaction.html generated 2018-06-10T21:17:47.139Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-followupactions-Followupaction.html generated 2018-06-11T17:32:20.382Z 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'>
@ -46,7 +63,12 @@ request_id
actor
</label>
{% ifwritable followupactions actor %}
<input id='actor' name='actor' type='number' value='{{record.actor}}'/>
<div class='select-box' farside='canvassers' found='true'>
<input name='actor-search-box' onchange='/* javascript to repopulate the select widget */'/>
<select id='actor' name='actor' comment='JavaScript stuff to fix up aynchronous loading'>
{% for record in canvassers %}<option value='{{record.id}}'>{{record.username}} {{record.fullname}} {{record.email}}</option>{% endfor %}
</select>
</div>
{% else %}
{% ifreadable followupactions actor%}
<span id='actor' name='actor' class='pseudo-widget disabled'>
@ -135,7 +157,12 @@ request_id
actor
</label>
{% ifwritable followupactions actor %}
<input id='actor' name='actor' type='number' value='{{record.actor}}'/>
<div class='select-box' farside='canvassers' found='true'>
<input name='actor-search-box' onchange='/* javascript to repopulate the select widget */'/>
<select id='actor' name='actor' comment='JavaScript stuff to fix up aynchronous loading'>
{% for record in canvassers %}<option value='{{record.id}}'>{{record.username}} {{record.fullname}} {{record.email}}</option>{% endfor %}
</select>
</div>
{% else %}
{% ifreadable followupactions actor%}
<span id='actor' name='actor' class='pseudo-widget disabled'>
@ -202,3 +229,50 @@ To delete this followupactions 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-issues-Issue.html generated 2018-06-10T21:17:47.123Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-issues-Issue.html generated 2018-06-11T17:32:20.348Z 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'>
@ -121,3 +138,50 @@ To delete this issues 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-roles-Role.html generated 2018-06-10T21:17:47.125Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-roles-Role.html generated 2018-06-11T17:32:20.351Z 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'>
@ -64,6 +81,25 @@ name
{% endifreadable %}
{% endifwritable %}
</p>
<p class='widget'>
<label for='members'>
members
</label>
{% ifwritable roles members %}
<div class='select-box' farside='canvassers' found='true'>
<input name='members-search-box' onchange='/* javascript to repopulate the select widget */'/>
<select id='members' name='members' multiple='multiple' comment='JavaScript stuff to fix up aynchronous loading'>
{% for record in canvassers %}<option value='{{record.id}}'>{{record.username}} {{record.fullname}} {{record.email}}</option>{% endfor %}
</select>
</div>
{% else %}
{% ifreadable roles members%}
<span id='members' name='members' class='pseudo-widget disabled'>
{{record.members}}
</span>
{% endifreadable %}
{% endifwritable %}
</p>
<p class='widget action-safe'>
<label for='save-button' class='action-safe'>
To save this roles record
@ -80,3 +116,50 @@ To delete this roles 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File form-teams-Team.html generated 2018-06-10T21:17:47.128Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File form-teams-Team.html generated 2018-06-11T17:32:20.361Z 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'>
@ -193,3 +210,50 @@ To delete this teams 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 %}

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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-addresses-Addresses.html generated 2018-06-10T21:17:47.133Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-addresses-Addresses.html generated 2018-06-11T17:32:20.370Z 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 %}
<form id='content' class='list'>
@ -37,25 +54,28 @@ longitude
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='address' name='address' value='{{ params.address }}'/>
<input id='address' type='text' name='address' value='{{ params.address }}'/>
</th>
<th>
<input id='postcode' name='postcode' value='{{ params.postcode }}'/>
<input id='postcode' type='text' name='postcode' value='{{ params.postcode }}'/>
</th>
<th>
<input id='phone' name='phone' value='{{ params.phone }}'/>
<input id='phone' type='text' name='phone' value='{{ params.phone }}'/>
</th>
<th>
<input id='district_id' name='district_id' value='{{ params.district_id }}'/>
<input id='district_id' type='text' name='district_id' value='{{ params.district_id }}'/>
</th>
<th>
<input id='latitude' name='latitude' value='{{ params.latitude }}'/>
<input id='latitude' type='number' name='latitude' value='{{ params.latitude }}'/>
</th>
<th>
<input id='longitude' name='longitude' value='{{ params.longitude }}'/>
<input id='longitude' type='number' name='longitude' value='{{ params.longitude }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -84,32 +104,69 @@ longitude
{{ record.longitude }}
</td>
<td>
<a href='form-addresses-Address?id={{ record.id}}'>
<a href='{{servlet-context}}/form-addresses-Address?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-addresses-Address'>
Add a new Address
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-canvassers-Canvassers.html generated 2018-06-10T21:17:47.138Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-canvassers-Canvassers.html generated 2018-06-11T17:32:20.379Z 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 %}
<form id='content' class='list'>
@ -43,31 +60,34 @@ authorised
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='username' name='username' value='{{ params.username }}'/>
<input id='username' type='text' name='username' value='{{ params.username }}'/>
</th>
<th>
<input id='fullname' name='fullname' value='{{ params.fullname }}'/>
<input id='fullname' type='text' name='fullname' value='{{ params.fullname }}'/>
</th>
<th>
<input id='elector_id' name='elector_id' value='{{ params.elector_id }}'/>
<input id='elector_id' type='text' name='elector_id' value='{{ params.elector_id }}'/>
</th>
<th>
<input id='address_id' name='address_id' value='{{ params.address_id }}'/>
<input id='address_id' type='text' name='address_id' value='{{ params.address_id }}'/>
</th>
<th>
<input id='phone' name='phone' value='{{ params.phone }}'/>
<input id='phone' type='text' name='phone' value='{{ params.phone }}'/>
</th>
<th>
<input id='email' name='email' value='{{ params.email }}'/>
<input id='email' type='text' name='email' value='{{ params.email }}'/>
</th>
<th>
<input id='authority_id' name='authority_id' value='{{ params.authority_id }}'/>
<input id='authority_id' type='text' name='authority_id' value='{{ params.authority_id }}'/>
</th>
<th>
<input id='authorised' name='authorised' value='{{ params.authorised }}'/>
<input id='authorised' type='text' name='authorised' value='{{ params.authorised }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -102,32 +122,69 @@ authorised
{{ record.authorised }}
</td>
<td>
<a href='form-canvassers-Canvasser?id={{ record.id}}'>
<a href='{{servlet-context}}/form-canvassers-Canvasser?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-canvassers-Canvasser'>
Add a new Canvasser
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-districts-Districts.html generated 2018-06-10T21:17:47.136Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-districts-Districts.html generated 2018-06-11T17:32:20.376Z 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 %}
<form id='content' class='list'>
@ -22,10 +39,13 @@ name
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='name' name='name' value='{{ params.name }}'/>
<input id='name' type='text' name='name' value='{{ params.name }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -39,32 +59,69 @@ name
{{ record.name }}
</td>
<td>
<a href='form-districts-District?id={{ record.id}}'>
<a href='{{servlet-context}}/form-districts-District?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-districts-District'>
Add a new District
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-dwellings-Dwellings.html generated 2018-06-10T21:17:47.132Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-dwellings-Dwellings.html generated 2018-06-11T17:32:20.369Z 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 %}
<form id='content' class='list'>
@ -25,13 +42,16 @@ sub-address
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='address_id' name='address_id' value='{{ params.address_id }}'/>
<input id='address_id' type='text' name='address_id' value='{{ params.address_id }}'/>
</th>
<th>
<input id='sub-address' name='sub-address' value='{{ params.sub-address }}'/>
<input id='sub-address' type='text' name='sub-address' value='{{ params.sub-address }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -48,32 +68,69 @@ sub-address
{{ record.sub-address }}
</td>
<td>
<a href='form-dwellings-Dwelling?id={{ record.id}}'>
<a href='{{servlet-context}}/form-dwellings-Dwelling?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-dwellings-Dwelling'>
Add a new Dwelling
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-electors-Electors.html generated 2018-06-10T21:17:47.123Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-electors-Electors.html generated 2018-06-11T17:32:20.346Z 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 %}
<form id='content' class='list'>
@ -34,22 +51,25 @@ gender
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='name' name='name' value='{{ params.name }}'/>
<input id='name' type='text' name='name' value='{{ params.name }}'/>
</th>
<th>
<input id='dwelling_id' name='dwelling_id' value='{{ params.dwelling_id }}'/>
<input id='dwelling_id' type='text' name='dwelling_id' value='{{ params.dwelling_id }}'/>
</th>
<th>
<input id='phone' name='phone' value='{{ params.phone }}'/>
<input id='phone' type='text' name='phone' value='{{ params.phone }}'/>
</th>
<th>
<input id='email' name='email' value='{{ params.email }}'/>
<input id='email' type='text' name='email' value='{{ params.email }}'/>
</th>
<th>
<input id='gender' name='gender' value='{{ params.gender }}'/>
<input id='gender' type='text' name='gender' value='{{ params.gender }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -75,32 +95,69 @@ gender
{{ record.gender }}
</td>
<td>
<a href='form-electors-Elector?id={{ record.id}}'>
<a href='{{servlet-context}}/form-electors-Elector?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-electors-Elector'>
Add a new Elector
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-followupactions-Followupactions.html generated 2018-06-10T21:17:47.137Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-followupactions-Followupactions.html generated 2018-06-11T17:32:20.378Z 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 %}
<form id='content' class='list'>
@ -34,22 +51,25 @@ closed
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='request_id' name='request_id' value='{{ params.request_id }}'/>
<input id='request_id' type='text' name='request_id' value='{{ params.request_id }}'/>
</th>
<th>
<input id='actor' name='actor' value='{{ params.actor }}'/>
<input id='actor' type='text' name='actor' value='{{ params.actor }}'/>
</th>
<th>
<input id='date' name='date' value='{{ params.date }}'/>
<input id='date' type='date' name='date' value='{{ params.date }}'/>
</th>
<th>
<input id='notes' name='notes' value='{{ params.notes }}'/>
<input id='notes' type='text' name='notes' value='{{ params.notes }}'/>
</th>
<th>
<input id='closed' name='closed' value='{{ params.closed }}'/>
<input id='closed' type='text' name='closed' value='{{ params.closed }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -75,32 +95,69 @@ closed
{{ record.closed }}
</td>
<td>
<a href='form-followupactions-Followupaction?id={{ record.id}}'>
<a href='{{servlet-context}}/form-followupactions-Followupaction?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-followupactions-Followupaction'>
Add a new Followupaction
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-issues-Issues.html generated 2018-06-10T21:17:47.137Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-issues-Issues.html generated 2018-06-11T17:32:20.377Z 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 %}
<form id='content' class='list'>
@ -25,13 +42,16 @@ current
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='url' name='url' value='{{ params.url }}'/>
<input id='url' type='text' name='url' value='{{ params.url }}'/>
</th>
<th>
<input id='current' name='current' value='{{ params.current }}'/>
<input id='current' type='text' name='current' value='{{ params.current }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -48,32 +68,69 @@ current
{{ record.current }}
</td>
<td>
<a href='form-issues-Issue?id={{ record.id}}'>
<a href='{{servlet-context}}/form-issues-Issue?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-issues-Issue'>
Add a new Issue
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-roles-Roles.html generated 2018-06-10T21:17:47.125Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-roles-Roles.html generated 2018-06-11T17:32:20.354Z 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 %}
<form id='content' class='list'>
@ -22,10 +39,13 @@ name
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='name' name='name' value='{{ params.name }}'/>
<input id='name' type='text' name='name' value='{{ params.name }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -39,32 +59,69 @@ name
{{ record.name }}
</td>
<td>
<a href='form-roles-Role?id={{ record.id}}'>
<a href='{{servlet-context}}/form-roles-Role?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-roles-Role'>
Add a new Role
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-teams-Teams.html generated 2018-06-10T21:17:47.118Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-teams-Teams.html generated 2018-06-11T17:32:20.328Z 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 %}
<form id='content' class='list'>
@ -31,19 +48,22 @@ longitude
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='name' name='name' value='{{ params.name }}'/>
<input id='name' type='text' name='name' value='{{ params.name }}'/>
</th>
<th>
<input id='district_id' name='district_id' value='{{ params.district_id }}'/>
<input id='district_id' type='text' name='district_id' value='{{ params.district_id }}'/>
</th>
<th>
<input id='latitude' name='latitude' value='{{ params.latitude }}'/>
<input id='latitude' type='number' name='latitude' value='{{ params.latitude }}'/>
</th>
<th>
<input id='longitude' name='longitude' value='{{ params.longitude }}'/>
<input id='longitude' type='number' name='longitude' value='{{ params.longitude }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -66,32 +86,69 @@ longitude
{{ record.longitude }}
</td>
<td>
<a href='form-teams-Team?id={{ record.id}}'>
<a href='{{servlet-context}}/form-teams-Team?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-teams-Team'>
Add a new Team
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -1,7 +1,24 @@
{% extends "templates/base.html" %}
<!-- File list-visits-Visits.html generated 2018-06-10T21:17:47.117Z by adl.to-selmer-templates.
{% extends "base.html" %}
<!-- File list-visits-Visits.html generated 2018-06-11T17:32:20.324Z 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 %}
<form id='content' class='list'>
@ -28,16 +45,19 @@ date
</tr>
<tr>
<th>
<input id='id' name='id' value='{{ params.id }}'/>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='address_id' name='address_id' value='{{ params.address_id }}'/>
<input id='address_id' type='text' name='address_id' value='{{ params.address_id }}'/>
</th>
<th>
<input id='canvasser_id' name='canvasser_id' value='{{ params.canvasser_id }}'/>
<input id='canvasser_id' type='text' name='canvasser_id' value='{{ params.canvasser_id }}'/>
</th>
<th>
<input id='date' name='date' value='{{ params.date }}'/>
<input id='date' type='date' name='date' value='{{ params.date }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
@ -57,32 +77,69 @@ date
{{ record.date }}
</td>
<td>
<a href='form-visits-Visit?id={{ record.id}}'>
<a href='{{servlet-context}}/form-visits-Visit?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot/>
</table>
{% if offset > 0 %}
<tfoot>
<div class='back-link-container'>
<a href='FIXME'>
Previous
</a>
</div>
{% endif %}
<div class='big-link-container'>
<a href='FIXME'>
Next
</a>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<a href='form-visits-Visit'>
Add a new Visit
</a>
<input id='page' name='page' disabled='false' value='Next'/>
</div>
</tfoot>
</table>
</form>
{% 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 %}

View file

@ -0,0 +1,79 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="css/yyy-common.css" />
<link rel="stylesheet" type="text/css" href="css/yyy-site.css" />
<link rel="stylesheet" type="text/css" href="css/spinner.css" />
<link href="https://fonts.googleapis.com/css?family=Archivo+Black|Archivo+Narrow" rel="stylesheet"/>
<title>{{title}}</title>
</head>
<body>
{% block whole-page %}
{% block top %}
<header>
<div id="nav">
<img id="nav-icon" src="img/threelines.png" alt="Menu"/>
<menu id="nav-menu" class="nav">
<li class=""><a href="index.html">Home</a></li>
<li class=""><a href="library.html">Library</a></li>
<li class=""><a href="register.html">Register</a></li>
<li class="">{% if user %}<a href="logout.html">Logout</a>
{% else %}<a href="login.html">Login</a>{% endif %}</li>
<li class=""><a href="about.html">About</a></li>
{% if user %}
<li id="user"><a href="profile">Logged in as {{user.username}}</a></li>
{% endif %}
</menu>
</div>
<h1>
{{title}}
</h1>
</header>
{% endblock %}
<div id="main-container" class="container">
<div id="big-links">
{% block big-links %}
{% endblock %}
</div>
<div if="#content">
{% block content %}
{% endblock %}
</div>
<div id="back-link-container">
<a href="javascript:history.back()" id="back-link">Back</a>
</div>
</div>
{% block foot %}
<footer>
<div id="credits">
<div>
<img src="img/credits/ric-logo.png" width="24" height="24"/>
A project of the
<a href="https://radical.scot/">Radical Independence Campaign</a> ||
Version {{version}}
</div>
<div>
<img height="16" width="16" alt="Clojure" src="img/credits/luminus-logo.png"/>Built with <a href="http://www.luminusweb.net/">LuminusWeb</a> ||
<img height="16" width="16" alt="Clojure" src="img/credits/clojure-icon.gif"/> Powered by <a href="http://clojure.org">Clojure</a> ||
<img height="16" width="16" alt="GitHub" src="img/credits/github-logo-transparent.png"/>Find me/fork me on <a href="https://github.com/simon-brooke/smeagol">Github</a> ||
<img height="16" width="16" alt="Free Software Foundation" src="img/credits/gnu.small.png"/>Licensed under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License version 2.0</a>
</div>
</div>
</footer>
{% endblock %}
{% endblock %}
<script type="text/javascript">
var context = "{{servlet-context}}";
var csrfToken = "{{csrf-token}}";
</script>
{% block extra-script %}
{% endblock %}
</body>
</html>

View file

@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:html="http://www.w3.org/1999/xhtml">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

View file

@ -6,7 +6,8 @@
[youyesyet.routes.authenticated :refer [authenticated-routes]]
[youyesyet.routes.home :refer [home-routes]]
[youyesyet.routes.oauth :refer [oauth-routes]]
[youyesyet.routes.auto-json-routes :refer [auto-rest-routes]]
[youyesyet.routes.auto-json :refer [auto-rest-routes]]
[youyesyet.routes.auto :refer [auto-selmer-routes]]
[compojure.route :as route]
[youyesyet.env :refer [defaults]]
[mount.core :as mount]
@ -67,6 +68,9 @@
(-> #'auto-rest-routes
(wrap-routes middleware/wrap-csrf)
(wrap-routes middleware/wrap-formats))
(-> #'auto-selmer-routes
(wrap-routes middleware/wrap-csrf)
(wrap-routes middleware/wrap-formats))
#'oauth-routes
#'authenticated-routes
(route/not-found
@ -75,5 +79,5 @@
:title "page not found"})))))
(def app #'app-routes)
;;(middleware/wrap-base #'app-routes))
(def app ;; #'app-routes)
(middleware/wrap-base #'app-routes))

View file

@ -1,6 +1,6 @@
(ns
youyesyet.routes.auto
"User interface routes for Youyesyet auto-generated by [Application Description Language framework](https://github.com/simon-brooke/adl) at 20180610T214425.631Z"
"User interface routes for Youyesyet auto-generated by [Application Description Language framework](https://github.com/simon-brooke/adl) at 20180611T180322.460Z"
(:require
[noir.response :as nresponse]
[noir.util.route :as route]
@ -8,6 +8,7 @@
[ring.util.http-response :as response]
[clojure.java.io :as io]
[hugsql.core :as hugsql]
[youyesyet.layout :as l]
[youyesyet.db.core :as db]
[youyesyet.routes.manual :as m]))
@ -19,13 +20,13 @@
n
(str "auto/" n)))
(def resolve-template (memoise raw-resolve-template))
(def resolve-template (memoize raw-resolve-template))
(defn
index
[r]
(layout/render
(resolve-template "application-index")
(l/render
(resolve-template "application-index.html")
{:title "Administrative menu"}))
(defn
@ -33,16 +34,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-electors-Electors.html")
{:title "Electors", :params p, :records (db/search-elector p)})))
{:title "Electors",
:params p,
:records (db/search-strings-elector p)})))
(defn
form-electors-Elector
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-electors-Elector.html")
{:title "Elector", :params p, :record (db/get-elector p)})))
@ -51,16 +54,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-genders-Genders.html")
{:title "Genders", :params p, :records (db/search-gender p)})))
{:title "Genders",
:params p,
:records (db/search-strings-gender p)})))
(defn
form-genders-Gender
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-genders-Gender.html")
{:title "Gender", :params p, :record (db/get-gender p)})))
@ -69,16 +74,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-dwellings-Dwellings.html")
{:title "Dwellings", :params p, :records (db/search-dwelling p)})))
{:title "Dwellings",
:params p,
:records (db/search-strings-dwelling p)})))
(defn
form-dwellings-Dwelling
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-dwellings-Dwelling.html")
{:title "Dwelling", :params p, :record (db/get-dwelling p)})))
@ -87,16 +94,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-addresses-Addresses.html")
{:title "Addresses", :params p, :records (db/search-address p)})))
{:title "Addresses",
:params p,
:records (db/search-strings-address p)})))
(defn
form-addresses-Address
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-addresses-Address.html")
{:title "Address", :params p, :record (db/get-address p)})))
@ -105,16 +114,16 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-visits-Visits.html")
{:title "Visits", :params p, :records (db/search-visit p)})))
{:title "Visits", :params p, :records (db/search-strings-visit p)})))
(defn
form-visits-Visit
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-visits-Visit.html")
{:title "Visit", :params p, :record (db/get-visit p)})))
@ -123,18 +132,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-authorities-Authorities.html")
{:title "Authorities",
:params p,
:records (db/search-authority p)})))
:records (db/search-strings-authority p)})))
(defn
form-authorities-Authority
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-authorities-Authority.html")
{:title "Authority", :params p, :record (db/get-authority p)})))
@ -143,16 +152,16 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-issues-Issues.html")
{:title "Issues", :params p, :records (db/search-issue p)})))
{:title "Issues", :params p, :records (db/search-strings-issue p)})))
(defn
form-issues-Issue
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-issues-Issue.html")
{:title "Issue", :params p, :record (db/get-issue p)})))
@ -161,16 +170,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-intentions-Intentions.html")
{:title "Intentions", :params p, :records (db/search-intention p)})))
{:title "Intentions",
:params p,
:records (db/search-strings-intention p)})))
(defn
form-intentions-Intention
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-intentions-Intention.html")
{:title "Intention", :params p, :record (db/get-intention p)})))
@ -179,16 +190,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-canvassers-Canvassers.html")
{:title "Canvassers", :params p, :records (db/search-canvasser p)})))
{:title "Canvassers",
:params p,
:records (db/search-strings-canvasser p)})))
(defn
form-canvassers-Canvasser
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-canvassers-Canvasser.html")
{:title "Canvasser", :params p, :record (db/get-canvasser p)})))
@ -197,18 +210,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-followuprequests-Followuprequests.html")
{:title "Followuprequests",
:params p,
:records (db/search-followuprequest p)})))
:records (db/search-strings-followuprequest p)})))
(defn
form-followuprequests-Followuprequest
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-followuprequests-Followuprequest.html")
{:title "Followuprequest",
:params p,
@ -219,16 +232,16 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-roles-Roles.html")
{:title "Roles", :params p, :records (db/search-role p)})))
{:title "Roles", :params p, :records (db/search-strings-role p)})))
(defn
form-roles-Role
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-roles-Role.html")
{:title "Role", :params p, :record (db/get-role p)})))
@ -237,16 +250,16 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-teams-Teams.html")
{:title "Teams", :params p, :records (db/search-team p)})))
{:title "Teams", :params p, :records (db/search-strings-team p)})))
(defn
form-teams-Team
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-teams-Team.html")
{:title "Team", :params p, :record (db/get-team p)})))
@ -255,16 +268,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-districts-Districts.html")
{:title "Districts", :params p, :records (db/search-district p)})))
{:title "Districts",
:params p,
:records (db/search-strings-district p)})))
(defn
form-districts-District
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-districts-District.html")
{:title "District", :params p, :record (db/get-district p)})))
@ -273,18 +288,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-followupactions-Followupactions.html")
{:title "Followupactions",
:params p,
:records (db/search-followupaction p)})))
:records (db/search-strings-followupaction p)})))
(defn
form-followupactions-Followupaction
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-followupactions-Followupaction.html")
{:title "Followupaction",
:params p,
@ -295,16 +310,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-options-Options.html")
{:title "Options", :params p, :records (db/search-option p)})))
{:title "Options",
:params p,
:records (db/search-strings-option p)})))
(defn
form-options-Option
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-options-Option.html")
{:title "Option", :params p, :record (db/get-option p)})))
@ -313,18 +330,18 @@
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "list-followupmethods-Followupmethods.html")
{:title "Followupmethods",
:params p,
:records (db/search-followupmethod p)})))
:records (db/search-strings-followupmethod p)})))
(defn
form-followupmethods-Followupmethod
[r]
(let
[p (:form-params r)]
(layout/render
(l/render
(resolve-template "form-followupmethods-Followupmethod.html")
{:title "Followupmethod",
:params p,
@ -334,14 +351,21 @@
raw-resolve-handler
"Prefer the manually-written version of the handler with name `n`, if it exists, to the automatically generated one"
[n]
(let
[s (symbol (str "m." n))]
(if (bound? s) (eval s) (eval (symbol n)))))
(try
(eval (symbol (str "youyesyet" ".routes.manual/" n)))
(catch
Exception
_
(eval (symbol (str "youyesyet" ".routes.auto/" n))))))
(def resolve-handler (memoize raw-resolve-handler))
(defroutes
auto-selmer-routes
(GET
"/index"
request
(route/restricted (apply (resolve-handler "index") (list request))))
(GET
"/form-addresses-Address"
request

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
(ns
youyesyet.routes.auto
youyesyet.routes.manual
"Manual overrides for auto-generated routes"
(:require
[noir.response :as nresponse]

View file

@ -323,6 +323,9 @@
<property required="true" type="string" name="name" column="name" size="64" distinct="user" immutable="true">
<prompt prompt="name" locale="en-GB"/>
</property>
<property type="link" entity="canvassers" name="members">
<prompt prompt="Members" locale="en-GB"/>
</property>
<list name="Roles" properties="all"/>
<form name="Role" properties="all"/>
</entity>

View file

@ -414,8 +414,11 @@
<property required="true" type="string" name="name" column="name" size="64" distinct="user" immutable="true">
<prompt prompt="name" locale="en-GB"/>
</property>
<property type="link" entity="canvassers" name="members">
<prompt prompt="Members" locale="en-GB"/>
</property>
<list properties="listed" name="Roles"><field property="id"><prompt prompt="id" locale="en-GB"/></field><field property="name"><prompt prompt="name" locale="en-GB"/></field></list>
<form properties="listed" name="Role"><field property="id"><prompt prompt="id" locale="en-GB"/></field><field property="name"><prompt prompt="name" locale="en-GB"/></field></form>
<form properties="listed" name="Role"><field property="id"><prompt prompt="id" locale="en-GB"/></field><field property="name"><prompt prompt="name" locale="en-GB"/></field><field property="members"><prompt prompt="Members" locale="en-GB"/></field></form>
</entity>
<!--
entity teams already has a key - not generating one