-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #621 from ethan-nelson/addltooltips
Adding tooltips to buttons for unlock/mark done
- Loading branch information
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |