summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-11-29 09:20:05 +0100
committermkanat%bugzilla.org <>2007-11-29 09:20:05 +0100
commit9dfa47cccbf6cf4f98d807c1c61400fc138e18ff (patch)
tree14f2bcdec784bc9ad056894af2d85e92acd5f295 /template/en/default/bug
parentab73b625a7fb071794cd1152de3c8486d91788f6 (diff)
downloadbugzilla-9dfa47cccbf6cf4f98d807c1c61400fc138e18ff.tar.gz
bugzilla-9dfa47cccbf6cf4f98d807c1c61400fc138e18ff.tar.xz
Bug 397099: Date/Time Fields should have a JavaScript widget for picking a date
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, r=glob, a=mkanat
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/create/create.html.tmpl7
-rw-r--r--template/en/default/bug/field.html.tmpl16
-rw-r--r--template/en/default/bug/process/header.html.tmpl4
-rw-r--r--template/en/default/bug/show.html.tmpl6
4 files changed, 27 insertions, 6 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index cfbd2a819..cfe277078 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -30,8 +30,11 @@
[% PROCESS global/header.html.tmpl
title = title
- style_urls = [ 'skins/standard/create_attachment.css' ]
- javascript_urls = [ "js/attachment.js", "js/util.js", "js/keyword-chooser.js" ]
+ style_urls = [ 'skins/standard/create_attachment.css',
+ 'skins/standard/yui/calendar.css' ]
+ javascript_urls = [ "js/attachment.js", "js/util.js", "js/keyword-chooser.js",
+ "js/yui/yahoo-dom-event.js", "js/yui/calendar.js",
+ "js/field.js" ]
%]
<script type="text/javascript">
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index f79af3541..ea33d3ad0 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -45,7 +45,21 @@
value="[% value FILTER html %]" size="60">
[% CASE constants.FIELD_TYPE_DATETIME %]
<input name="[% field.name FILTER html %]" size="20"
- value="[% value FILTER html %]">
+ id="[% field.name FILTER html %]"
+ value="[% value FILTER html %]"
+ onchange="updateCalendarFromField(this)">
+ <button type="button" class="calendar_button"
+ id="button_calendar_[% field.name FILTER html %]"
+ onclick="showCalendar('[% field.name FILTER js %]')">
+ <span>Calendar</span>
+ </button>
+
+ <div id="con_calendar_[% field.name FILTER html %]"
+ class="yui-skin-sam"></div>
+
+ <script type="text/javascript">
+ createCalendar('[% field.name FILTER js %]')
+ </script>
[% CASE [ constants.FIELD_TYPE_SINGLE_SELECT
constants.FIELD_TYPE_MULTI_SELECT ] %]
<select id="[% field.name FILTER html %]"
diff --git a/template/en/default/bug/process/header.html.tmpl b/template/en/default/bug/process/header.html.tmpl
index 930ab5c58..b7c6b74f5 100644
--- a/template/en/default/bug/process/header.html.tmpl
+++ b/template/en/default/bug/process/header.html.tmpl
@@ -42,5 +42,7 @@
[% END %]
[% PROCESS global/header.html.tmpl
- javascript_urls = [ "js/util.js", "js/keyword-chooser.js" ]
+ javascript_urls = [ "js/util.js", "js/keyword-chooser.js", "js/field.js",
+ "js/yui/yahoo-dom-event.js", "js/yui/calendar.js" ]
+ style_urls = [ "skins/standard/yui/calendar.css" ]
%]
diff --git a/template/en/default/bug/show.html.tmpl b/template/en/default/bug/show.html.tmpl
index 4c82ad59b..5dc7fe252 100644
--- a/template/en/default/bug/show.html.tmpl
+++ b/template/en/default/bug/show.html.tmpl
@@ -39,8 +39,10 @@
"bz_component_$bug.component",
"bz_bug_$bug.bug_id"
]
- javascript_urls = [ "js/util.js", "js/keyword-chooser.js" ]
- doc_section = "bug_page.html"
+ javascript_urls = [ "js/util.js", "js/keyword-chooser.js", "js/field.js",
+ "js/yui/yahoo-dom-event.js", "js/yui/calendar.js" ]
+ style_urls = [ "skins/standard/yui/calendar.css" ]
+doc_section = "bug_page.html"
%]
[% END %]