Add Complete Task action to the task view
Marcus I. Ryan
marcus@riboflavin.net
Thu, 28 Mar 2002 22:43:19 -0600
Okay...so this is kind of an example of my laziness, but I hate waiting
to go into Modify task, setting it to complete and saving the changes,
so in the task view, I added a Complete Task link (if the task isn't
already completed).
diff -ru nag.orig/templates/view/navbar.inc nag/templates/view/navbar.inc
--- nag.orig/templates/view/navbar.inc Thu Mar 28 22:28:03 2002
+++ nag/templates/view/navbar.inc Thu Mar 28 22:39:47 2002
@@ -1,6 +1,9 @@
<table border="0" align="center" width="100%" cellspacing="0"
cellpadding="2">
<tr class="control">
<td align="left">
+ <?php if (!$tasks[$task_id]['completed']): ?>
+ <?=
Horde::link(Horde::applicationUrl("list.php?items[]=$task_id&actionID="
. NAG_COMPLETE_TASKS), _("Complete Task"), 'widget') ?><?= _("Complete
Task") ?></a> |
+ <?php endif; ?>
<?=
Horde::link(Horde::applicationUrl("task.php?task=$task_id&actionID=" .
NAG_MODIFY_TASK), _("Modify Task"), 'widget') ?><?= _("Modify Task") ?></a>
| <?=
Horde::link(Horde::applicationUrl("task.php?task=$task_id&actionID=" .
NAG_DELETE_TASKS), _("Delete Task"), 'widget') ?><?= _("Delete Task") ?></a>
</td>
--
Marcus I. Ryan, marcus@riboflavin.net
-----------------------------------------------------------------------
"Love is a snowmobile racing across the tundra and then suddenly it
flips over, pinning you underneath. At night, the ice weasels come."
-- Matt Groening
-----------------------------------------------------------------------
>From chuck@horde.org Date: Wed, 3 Apr 2002 00:07:06 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact nag-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list nag@lists.horde.org
Received: (qmail 65767 invoked from network); 3 Apr 2002 05:07:30 -0000
Received: from h00104bc60b3c.ne.client2.attbi.com (HELO marina.horde.org) (24.91.196.127)
by clark.horde.org with SMTP; 3 Apr 2002 05:07:30 -0000
Received: by marina.horde.org (Postfix, from userid 33)
id 6B5A23CCC; Wed, 3 Apr 2002 00:07:06 -0500 (EST)
Received: from 192.168.0.135 ( [192.168.0.135])
as user chuck@localhost by marina.horde.org with HTTP;
Wed, 3 Apr 2002 00:07:06 -0500
Message-ID: <1017810426.3caa8dfa3fe88@marina.horde.org>
Date: Wed, 3 Apr 2002 00:07:06 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: nag@lists.horde.org
References: <1017376999.3ca3f0e7da21e@imp.riboflavin.net>
In-Reply-To: <1017376999.3ca3f0e7da21e@imp.riboflavin.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
Subject: Re: [nag] Add Complete Task action to the task view
Quoting "Marcus I. Ryan" <marcus@riboflavin.net>:
> Okay...so this is kind of an example of my laziness, but I hate waiting
> to go into Modify task, setting it to complete and saving the changes,
> so in the task view, I added a Complete Task link (if the task isn't
> already completed).
Committed, thanks.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"A dream which helps you to live your reality with dignity
and justice is a good dream." - Tariq Ramadan