Work on getting forms to go. Not yet complete.

This commit is contained in:
Simon Brooke 2018-06-19 08:23:30 +01:00
parent 6f09c0841c
commit 284509fa7b
40 changed files with 866 additions and 684 deletions

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
<!-- File list-intentions-Intentions.html generated 2018-06-15T08:47:04.341Z by adl.to-selmer-templates.
<!-- File list-intentions-Intentions.html generated 2018-06-18T10:08:09.851Z by adl.to-selmer-templates.
See [Application Description Language](https://github.com/simon-brooke/adl).-->
{% block head %}
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
@ -42,13 +42,13 @@ option_id
</tr>
<tr>
<th>
<input id='visit_id' type='text' name='visit_id' value='{{ params.visit_id }}'/>
<input id='visit_id_expanded' type='text' name='visit_id_expanded' value='{{ params.visit_id_expanded }}'/>
</th>
<th>
<input id='elector_id' type='text' name='elector_id' value='{{ params.elector_id }}'/>
<input id='elector_id_expanded' type='text' name='elector_id_expanded' value='{{ params.elector_id_expanded }}'/>
</th>
<th>
<input id='option_id' type='text' name='option_id' value='{{ params.option_id }}'/>
<input id='option_id_expanded' type='text' name='option_id_expanded' value='{{ params.option_id_expanded }}'/>
</th>
<th>
<input type='submit' id='search' value='Search'/>
@ -59,16 +59,22 @@ option_id
{% for record in records %}
<tr>
<td>
{{ record.visit_id }}
<a href='form-visits-Visit?id={{ record.visit_id }}'>
{{ record.visit_id_expanded }}
</a>
</td>
<td>
{{ record.elector_id }}
<a href='form-electors-Elector?id={{ record.elector_id }}'>
{{ record.elector_id_expanded }}
</a>
</td>
<td>
{{ record.option_id }}
<a href='form-options-Option?id={{ record.option_id }}'>
{{ record.option_id_expanded }}
</a>
</td>
<td>
<a href='form-intentions-Intention?Id={{ record.Id}}'>
<a href='form-intentions-Intention?Id={{ record.Id }}'>
View
</a>
</td>