The map isn't rendering, and there's something wrong with options. But a lot is working.
104 lines
1.9 KiB
HTML
104 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
<!-- File list-electors-Electors.html generated 2018-07-03T12:23:51.906Z by adl.to-selmer-templates.
|
|
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
|
|
|
|
|
{% block content %}
|
|
<form id='content' class='list'>
|
|
<div class='big-link-container'>
|
|
<a href='form-electors-Elector'>
|
|
Add a new Elector
|
|
</a>
|
|
</div>
|
|
<table caption='electors'>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
id
|
|
</th>
|
|
<th>
|
|
name
|
|
</th>
|
|
<th>
|
|
dwelling_id
|
|
</th>
|
|
<th>
|
|
phone
|
|
</th>
|
|
<th>
|
|
email
|
|
</th>
|
|
<th>
|
|
gender
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
<input id='id' type='text' name='id' value='{{ params.id }}'/>
|
|
</th>
|
|
<th>
|
|
<input id='name' type='text' name='name' value='{{ params.name }}'/>
|
|
</th>
|
|
<th>
|
|
<input id='dwelling_id_expanded' type='text' name='dwelling_id_expanded' value='{{ params.dwelling_id_expanded }}'/>
|
|
</th>
|
|
<th>
|
|
<input id='phone' type='text' name='phone' value='{{ params.phone }}'/>
|
|
</th>
|
|
<th>
|
|
<input id='email' type='text' name='email' value='{{ params.email }}'/>
|
|
</th>
|
|
<th>
|
|
<input id='gender_expanded' type='text' name='gender_expanded' value='{{ params.gender_expanded }}'/>
|
|
</th>
|
|
<th>
|
|
<input type='submit' id='search' value='Search'/>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for record in records %}
|
|
<tr>
|
|
<td>
|
|
{{ record.id }}
|
|
</td>
|
|
<td>
|
|
{{ record.name }}
|
|
</td>
|
|
<td>
|
|
<a href='form-dwellings-Dwelling?id={{ record.dwelling_id }}'>
|
|
{{ record.dwelling_id_expanded }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{{ record.phone }}
|
|
</td>
|
|
<td>
|
|
{{ record.email }}
|
|
</td>
|
|
<td>
|
|
<a href='form-genders-Gender?id={{ record.gender }}'>
|
|
{{ record.gender_expanded }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href='form-electors-Elector?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 %}
|