88 lines
1.8 KiB
HTML
88 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
<!-- File list-intentions-Intentions.html generated 2018-07-03T23:08:20.083Z 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-intentions-Intention'>
|
|
Add a new Intention
|
|
</a>
|
|
</div>
|
|
<table caption='intentions'>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
visit_id
|
|
</th>
|
|
<th>
|
|
elector_id
|
|
</th>
|
|
<th>
|
|
option_id
|
|
</th>
|
|
<th>
|
|
locality
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
<input id='visit_id_expanded' type='text' name='visit_id_expanded' value='{{ params.visit_id_expanded }}'/>
|
|
</th>
|
|
<th>
|
|
<input id='elector_id_expanded' type='text' name='elector_id_expanded' value='{{ params.elector_id_expanded }}'/>
|
|
</th>
|
|
<th>
|
|
<input id='option_id_expanded' type='text' name='option_id_expanded' value='{{ params.option_id_expanded }}'/>
|
|
</th>
|
|
<th>
|
|
<input id='locality' type='number' name='locality' value='{{ params.locality }}'/>
|
|
</th>
|
|
<th>
|
|
<input type='submit' id='search' value='Search'/>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for record in records %}
|
|
<tr>
|
|
<td>
|
|
<a href='form-visits-Visit?id={{ record.visit_id }}'>
|
|
{{ record.visit_id_expanded }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href='form-electors-Elector?id={{ record.elector_id }}'>
|
|
{{ record.elector_id_expanded }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href='form-options-Option?id={{ record.option_id }}'>
|
|
{{ record.option_id_expanded }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{{ record.locality }}
|
|
</td>
|
|
<td>
|
|
<a href='form-intentions-Intention?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 %}
|