diff options
Diffstat (limited to 'templates/reports.html')
-rw-r--r-- | templates/reports.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/reports.html b/templates/reports.html new file mode 100644 index 0000000..c7a91d7 --- /dev/null +++ b/templates/reports.html @@ -0,0 +1,27 @@ +<div data-role="header" data-position="fixed"> + <a id="reports-next-btn" data-icon="arrow-l" data-iconpos="left" class="ui-btn-left">[% loc('Home') %]</a> + <h1>[% loc('Draft Reports') %]</h1> +</div> +<div id="drafts"> + <p id="noreports" class="nodisplay">[% loc("If you start compiling a report, but don't finish and send it, it'll appear in this menu so you can finish it later") %]</p> + <div id="report-list" class="nodisplay"> + <ul data-role="listview" data-split-theme="c" data-inset="true" data-split-icon="delete" class="notopmargin reports"> + <% drafts.each(function(draft) { + if ( draft ) { + var classes = []; + if ( draft.get('lat') ) { + classes.push('with_location'); + } + if ( draft.get('file') ) { + classes.push('with_photo'); + } + var draftClass = ''; + if ( classes.length ) { + draftClass = 'class="' + classes.join(' ') + '"'; + } + print( '<li id="' + draft.id + '"' + draftClass + '><a href="#" class="use_report">' + draft.description() + '</a><a class="del_report" href="#" title="delete">[% loc('Delete') %]</a></li>' ); + } + } ); %> + </ul> + </div> +</div> |