aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/templates/en/offline.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/templates/en/offline.html b/www/templates/en/offline.html
index b7c6df0..f6279cf 100644
--- a/www/templates/en/offline.html
+++ b/www/templates/en/offline.html
@@ -25,12 +25,16 @@
</p>
<p id="locate_result">
+ <% if ( lat ) { %>
+ Report has position ( <% print( lat.toFixed(2) + ', ' + lon.toFixed(2) ) %> )
+ <% } else { %>
<input type="button" class="green-btn" id="locate" value="locate" >
+ <% } %>
</p>
- <input type="text" value="<% title %>" name="title" id="form_title" placeholder="Provide a title" required>
+ <input type="text" value="<%= title %>" name="title" id="form_title" placeholder="Provide a title" required>
- <textarea rows="7" cols="26" name="detail" id="form_detail" placeholder="Please fill in details of the problem." required><% details %></textarea>
+ <textarea rows="7" cols="26" name="detail" id="form_detail" placeholder="Please fill in details of the problem." required><%= details %></textarea>
<% if ( file != '' ) { %>
<div id="add_photo" style="display: none">