youyesyet/resources/templates/auto/list-addresses-Addresses.html
Simon Brooke bbf6daf6ca #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!
2018-06-11 19:07:38 +01:00

172 lines
3.6 KiB
HTML

{% 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'>
<div class='big-link-container'>
<a href='form-addresses-Address'>
Add a new Address
</a>
</div>
<table caption='addresses'>
<thead>
<tr>
<th>
id
</th>
<th>
address
</th>
<th>
postcode
</th>
<th>
phone
</th>
<th>
district_id
</th>
<th>
latitude
</th>
<th>
longitude
</th>
</tr>
<tr>
<th>
<input id='id' type='text' name='id' value='{{ params.id }}'/>
</th>
<th>
<input id='address' type='text' name='address' value='{{ params.address }}'/>
</th>
<th>
<input id='postcode' type='text' name='postcode' value='{{ params.postcode }}'/>
</th>
<th>
<input id='phone' type='text' name='phone' value='{{ params.phone }}'/>
</th>
<th>
<input id='district_id' type='text' name='district_id' value='{{ params.district_id }}'/>
</th>
<th>
<input id='latitude' type='number' name='latitude' value='{{ params.latitude }}'/>
</th>
<th>
<input id='longitude' type='number' name='longitude' value='{{ params.longitude }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
</th>
</tr>
</thead>
<tbody>
{% for record in %records% %}
<tr>
<td>
{{ record.id }}
</td>
<td>
{{ record.address }}
</td>
<td>
{{ record.postcode }}
</td>
<td>
{{ record.phone }}
</td>
<td>
{{ record.district_id }}
</td>
<td>
{{ record.latitude }}
</td>
<td>
{{ record.longitude }}
</td>
<td>
<a href='{{servlet-context}}/form-addresses-Address?id={{ record.id}}'>
View
</a>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<div class='back-link-container'>
<input id='page' name='page' disabled='{% ifequal offset 0 %} false {% else %} true {% endifequal %}' value='Previous'/>
</div>
<div class='big-link-container'>
<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 %}