blob: dba58198dbcf7bcb1328b62635cb8cb701565c6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
[% INCLUDE 'admin/header.html' title=('Download Exor RDI') -%]
[% IF error_message %]
<h2>Error</h2>
<p>[% error_message %]</p>
[% END %]
<form method="get" action="[% c.uri_for('download') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
<p>
<label for="start_date">[% ('Start Date:') %]</label><input type="text" class="form-control"
placeholder="[% ('Click here or enter as dd/mm/yyyy') %]" name="start_date" id="start_date"
value="[% start_date ? start_date.strftime( '%d/%m/%Y') : '' | html %]" />
</p>
<p>
<label for="end_date">[% ('End Date:') %]</label><input type="text" class="form-control"
placeholder="[% ('Click here or enter as dd/mm/yyyy') %]" name="end_date" id="end_date" size="5"
value="[% end_date ? end_date.strftime( '%d/%m/%Y') : '' | html %]" />
</p>
<p>
[% ('Inspector:') %] <select class="form-control" id='user_id' name='user_id'>
<option value=''>[% ('All inspectors') %]</option>
[% FOR inspector IN inspectors %]
<option value="[% inspector.id %]" [% 'selected' IF user_id == inspector.id %]>[% inspector.name %] ([% inspector.get_extra_metadata('initials') %])</option>
[% END %]
</select>
</p>
<p>
<input type="submit" class="btn" size="30" value="Download RDI file" />
</p>
</form>
[% INCLUDE 'admin/footer.html' %]
|