diff options
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 7 | ||||
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 16 | ||||
-rw-r--r-- | template/en/default/bug/process/header.html.tmpl | 4 | ||||
-rw-r--r-- | template/en/default/bug/show.html.tmpl | 6 |
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 %] |