blob: 6736c20c1caba0d3b11f423a5f6f360f9f721d67 (
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
|
<div data-role="header">
<a id="back" data-icon="arrow-l" data-iconpos="left" class="ui-btn-left">[% loc('Back') %]</a>
<h1>[% loc('Add Photo') %]</h1>
<% if ( file == '' ) { %>
<a id="photo-next-btn" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">[% loc('Skip') %]</a>
<% } else { %>
<a id="photo-next-btn" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">[% loc('Next') %]</a>
<% } %>
</div>
<div data-role="content">
<% var photoClass = 'nodisplay', nophotoClass = 'nodisplay';
if ( file != '' ) {
photoClass = '';
} else {
nophotoClass = '';
} %>
<h2 id="nophoto_title" class="<% print( nophotoClass ); %>">
[% loc('Add a Photo') %] <em>[% loc('(optional)') %]</em>
</h2>
<h2 id="photo_title" class="<% print( photoClass ); %>">
[% loc('Photo for report') %]
</h2>
<div class="photo-wrapper">
<div class="photo">
<% if ( file == '' ) { %>
<img class="placeholder" src="images/placeholder-photo.png" alt="" id="photo">
<% } else { %>
<img class="small" id="photo" src="<%= file %>" />
<% } %>
<a data-role="none" id="id_del_photo_button" class="photo-corner-button">X</a>
</div>
</div>
<div class="bottom-btn">
<input data-icon="fms-photo-existing" type="button" id="id_existing" data-theme="c" value="[% loc('Add an existing photo') %]" >
<input data-icon="fms-photo-new" id="id_photo_button" type="button" data-theme="a" value="[% loc('Take a new photo') %]">
</div>
</div>
|