summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-17 22:59:03 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-17 22:59:03 +0100
commited751860d5613bc1c8617377fd28be4ede04dd78 (patch)
treee79c54722495205cb908d31cfdb764a622a840d9 /template/en
parent738591be1e58b664146eb12b61fa4294d56b534e (diff)
downloadbugzilla-ed751860d5613bc1c8617377fd28be4ede04dd78.tar.gz
bugzilla-ed751860d5613bc1c8617377fd28be4ede04dd78.tar.xz
Bug 329637: Add a Calendar widget to the Deadline field
r=ghendricks, a=mkanat
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/bug/create/create.html.tmpl8
-rw-r--r--template/en/default/bug/edit.html.tmpl6
-rw-r--r--template/en/default/list/edit-multiple.html.tmpl10
3 files changed, 9 insertions, 15 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index 1f3380a29..dce1da762 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -445,11 +445,9 @@ TUI_hide_default('expert_fields');
</td>
</tr>
<tr>
- <th>Deadline:</th>
- <td colspan="2">
- <input name="deadline" size="10" maxlength="10" value="[% deadline FILTER html %]">
- <small>(YYYY-MM-DD)</small>
- </td>
+ [% INCLUDE bug/field.html.tmpl
+ bug = default, field = bug_fields.deadline, value = deadline,
+ editable = 1, value_span = 2 %]
</tr>
<tr>
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 9979e9551..9725134cf 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -999,9 +999,9 @@
[% PROCESS formattimeunit time_unit=bug.estimated_time - (bug.actual_time + bug.remaining_time) %]
</td>
<td>
- <input name="deadline" id="deadline" value="[% bug.deadline %]"
- size="10" maxlength="10"><br />
- <small>(YYYY-MM-DD)</small>
+ [% INCLUDE bug/field.html.tmpl
+ field = bug_fields.deadline, value = bug.deadline, no_tds = 1
+ editable = bug.check_can_change_field('deadline', 0, 1) %]
</td>
</tr>
<tr>
diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl
index 91c86cc64..5f16dae69 100644
--- a/template/en/default/list/edit-multiple.html.tmpl
+++ b/template/en/default/list/edit-multiple.html.tmpl
@@ -149,13 +149,9 @@
value="[% dontchange FILTER html %]"
size="6">
</td>
- <th><label for="deadline">Deadline (YYYY-MM-DD):</label></th>
- <td>
- <input id="deadline"
- name="deadline"
- value="[% dontchange FILTER html %]"
- size="10">
- </td>
+ [% PROCESS bug/field.html.tmpl
+ field = bug_fields.deadline, value = dontchange
+ editable = 1, allow_dont_change = 1 %]
</tr>
<tr>
<th><label for="remaining_time">Remaining Hours:</label></th>