blob: 432fb09e1b1b8430e3619e86384b8442977e8631 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
<div data-role="header" data-position="fixed">
<a id="offline-prev-btn" class="ui-btn-left">[% loc('Try Again') %]</a>
<h1>[% loc('Offline') %]</h1>
<a id="offline-next-btn" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">[% loc('Skip') %]</a>
</div>
<div id="locating" class="nodisplay">
<div class="radar"></div>
<div id="progress">
<div id="progress-bar">
</div>
</div>
<p>
[% loc('Finding your location') %]
</p>
<p>
<input data-theme="c" type="button" id="locate_cancel" value="[% loc('Cancel') %]">
</p>
</div>
<div data-role="content">
<div>
<p class="notopmargin">
<% if ( typeof id != 'undefined' ) { %>
[% loc("Oh dear - we can't detect an internet connection. However you can still edit the report now and send it later.") %]
<% } else { %>
[% loc("Oh dear - we can't detect an internet connection. However you can still start a report now and complete it later, by going to 'drafts' when you're back online.") %]
<% } %>
</p>
<p id="locate_result">
<% if ( lat ) { %>
[% loc('This report has a position.') %]
<% } else { %>
<input type="button" data-role="button" data-theme="a" id="locate" value="[% loc('Locate (optional)') %]" >
<% } %>
</p>
<div class="inputcard">
<div>
<input data-role="none" type="text" value="<%= title %>" name="title" id="form_title" placeholder="[% loc('Provide a title') %]" required>
</div>
<div>
<textarea data-role="none" rows="7" cols="26" name="detail" id="form_detail" placeholder="Please fill in details of the problem." required><%= details %></textarea>
</div>
</div>
<% if ( file != '' ) { %>
<div id="add_photo" style="display: none">
<% } else { %>
<div id="add_photo">
<% } %>
<label>[% loc('Add a Photo ') %]<em>[% loc('(optional)') %]</em></label>
<input data-icon="fms-photo-new" value="[% loc('Take a new photo') %]" type="button" name="photo_button" id="id_photo_button" data-role="button" data-theme="a">
<input data-icon="fms-photo-existing" value="[% loc('Add an existing photo') %]" type="button" name="existing" id="id_existing" data-role="button" data-theme="c">
</div>
<% if ( file == '' ) { %>
<div id="display_photo" style="display: none">
<% } else { %>
<div id="display_photo">
<% } %>
<label>[% loc('Your Photo') %]</label>
<div class="photo">
<img class="small" id="photo" src="<%= file %>" />
</div>
<input value="[% loc('Remove Photo') %]" type="button" name="del_photo_button" id="id_del_photo_button" data-role="button" data-theme="a">
</div>
</div>
</div>
|