aboutsummaryrefslogtreecommitdiffstats
path: root/templates/existing.html
blob: 1c326b89c577a210a429635d3f2793f31d6bede4 (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
<div data-role="header">
        <h1>[% loc('Unsent Report') %]</h1>
</div>
<div data-role="content" role="main">
    <div id="existing_report">
    <% if ( title ) { %>
        <h3><%= title %></h3>
    <% } %>

        <div class="meta">
        <p>
        <% if ( category && category != '[% loc('-- Pick a category --') %]' ) { %>
            [% tprintf(loc('Saved in the %s category'), '<%= category %>') %]
        <% } %>
        </p>

        <p><% print( moment( created ).fromNow() ) %></p>
        </div>

        <% if ( file ) { %>
            <div class="photo" style="background-image: url(<%= file %>)"></div>
        <% } %>

        <% if ( details ) { %>
        <div class="details"><div><%= details %></div></div>
        <% } %>
    </div>


    <div class="right">
    <input id="use_report" type="button" value="[% loc('Complete report now') %]" data-role="button" data-theme="a" />
    <input id="save_report" type="button" value="[% loc('Save for later') %]" data-role="button" data-theme="a" />
    <input id="discard" type="button" value="[% loc('Discard') %]" data-role="button" data-theme="a" />
    </div>
</div>