From 0e52a2e67331b9c175c23041fbc124c07a345f1c Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Mon, 5 Mar 2012 23:05:12 +0000 Subject: [PATCH] Setup a simple JS shortcut to insert todays date for the due date --- src/IDF/Views/Issue.php | 1 + src/IDF/templates/idf/issues/view.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 9d44dfe..7e1bb0c 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -668,6 +668,7 @@ class IDF_Views_Issue 'previous_issue_id' => $previous_issue_id, 'next_issue_id' => $next_issue_id, 'related_issues' => $related_issues, + 'date_today' => date('Y-m-d 23:59'), ), $arrays), $request); diff --git a/src/IDF/templates/idf/issues/view.html b/src/IDF/templates/idf/issues/view.html index f3a3c81..e348578 100644 --- a/src/IDF/templates/idf/issues/view.html +++ b/src/IDF/templates/idf/issues/view.html @@ -131,6 +131,7 @@ {$form.f.due_dtime.labelTag}: {if $form.f.due_dtime.errors}{$form.f.due_dtime.fieldErrors}{/if} {$form.f.due_dtime|unsafe} +Today @@ -214,7 +215,10 @@