aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-21 16:39:00 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-21 16:39:00 +0100
commita70ac40a43a0d7e403bf44243013fb20698347c3 (patch)
treeaa3a347894a1d290a0f8a158542f1f389f17df02 /templates
parentd8d04399c728a492e0523216b3be82fb6fa3b2eb (diff)
Change position of remove photo button
To stop it accidentally being mistaken for the next action button move the photo button to be a red X button in the lower right corner of the photo. Fixes #112
Diffstat (limited to 'templates')
-rw-r--r--templates/photo.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/photo.html b/templates/photo.html
index 2b49202..0f3036d 100644
--- a/templates/photo.html
+++ b/templates/photo.html
@@ -8,16 +8,18 @@
</div>
<div data-role="content">
<h2>[% loc('Add a Photo') %] <em>[% loc('(optional)') %]</em></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') %]">
- <input id="id_del_photo_button" type="button" data-theme="a" value="[% loc('Remove Photo') %]">
</div>
</div>