Skip to content

Commit

Permalink
Merge pull request #621 from ethan-nelson/addltooltips
Browse files Browse the repository at this point in the history
Adding tooltips to buttons for unlock/mark done
  • Loading branch information
Pierre GIRAUD committed May 25, 2015
2 parents 7c30169 + 32e1353 commit 7e2927d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion osmtm/templates/task.state.ready.mako
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
## works for ready or invalidated tasks
% if user and task.cur_lock and task.cur_lock.lock and task.cur_lock.user == user:
<%
unlocktip = _("Stop working on this task and unlock it. You may resume work on it again later.")
donetip = _("Mark this task as done if you have completed all items in the instructions.")
%>
<form action="${request.route_path('task_done', task=task.id, project=task.project_id)}" method="POST">
<%include file="task.comment.mako" />
<a id="unlock"
rel="tooltip"
data-container="body"
data-original-title="${unlocktip}"
class="btn btn-default"
href="${request.route_path('task_unlock', task=task.id, project=task.project_id)}">
${_('Unlock')}
</a>
<button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-ok icon-white"></i> ${_('Mark task as done')}</button>
<button type="submit"
rel="tooltip"
data-container="body"
data-original-title="${donetip}"
class="btn btn-success">
<i class="glyphicon glyphicon-ok icon-white"></i> ${_('Mark task as done')}
</button>
</form>
% endif

0 comments on commit 7e2927d

Please sign in to comment.