[nag] edit link in task list
Bo Daley
bo at tilda.com.au
Mon Mar 10 15:29:49 PST 2003
a couple of users here requested that they be able to click straight to the
'Modify Task' view from the Task List page (rather than going through the
'Display' page first).
so this is a very small change to two template files. also the 'edit.gif' needs
to be copied from turba (or elsewhere):
Index: task_summaries.inc
===================================================================
RCS file: /repository/nag/templates/list/task_summaries.inc,v
retrieving revision 1.29
diff -u -r1.29 task_summaries.inc
--- task_summaries.inc 21 Feb 2003 17:56:16 -0000 1.29
+++ task_summaries.inc 10 Mar 2003 04:37:07 -0000
@@ -7,6 +7,9 @@
<?php endif; ?>
<?php if ($share->hasPermission(Auth::getAuth(), _PERMS_EDIT) &&
empty($task['completed'])): ?>
+ <?php echo
Horde::link(Horde::applicationUrl(Horde::addParameter($taskurl, 'actionID=' .
NAG_MODIFY_TASK)), _("Edit Task"), 'widget') ?>
+ <?php echo Horde::img('edit.gif', _("Edit Task")) ?>
+ </a>
<?php echo
Horde::link(Horde::applicationUrl(Horde::addParameter($taskurl, 'actionID=' .
NAG_COMPLETE_TASKS)), _("Complete Task"), 'widget') ?>
<?php echo Horde::img('complete.gif', _("Complete Task")) ?>
</a>
------------
Index: task_headers.inc
===================================================================
RCS file: /repository/nag/templates/list/task_headers.inc,v
retrieving revision 1.18
diff -u -r1.18 task_headers.inc
--- task_headers.inc 21 Feb 2003 17:56:16 -0000 1.18
+++ task_headers.inc 10 Mar 2003 04:37:29 -0000
@@ -4,6 +4,7 @@
<tr class="item">
<td nowrap="nowrap" width="2%">
<?php echo Horde::img('delete.gif', _("Delete Task")) ?>
+ <?php echo Horde::img('edit.gif', _("Edit Task")) ?>
<?php echo Horde::img('complete.gif', _("Complete Task")) ?>
</td>
<th class="<?php echo ($prefs->getValue('sortby') == NAG_SORT_COMPLETION) ?
'selected' : 'item' ?>" width="2%" align="left" nowrap="nowrap">
More information about the nag
mailing list