summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-02-22 04:07:42 +0100
committerlpsolit%gmail.com <>2006-02-22 04:07:42 +0100
commit8f6a5f73c16a92fbcfa9d3db4c323cd338845efb (patch)
treec443ade9e7d76e91d4a16437fc30bf59bd9f187c /template/en/default/admin
parente13d2bb8b588d8fe347a090a23453d894c833b0f (diff)
downloadbugzilla-8f6a5f73c16a92fbcfa9d3db4c323cd338845efb.tar.gz
bugzilla-8f6a5f73c16a92fbcfa9d3db4c323cd338845efb.tar.xz
Bug 271984: Default milestone should be a <select>, not a text entry - Patch by RĂ©mi Zara <remi_zara@mac.com> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/admin')
-rw-r--r--template/en/default/admin/products/edit-common.html.tmpl15
1 files changed, 13 insertions, 2 deletions
diff --git a/template/en/default/admin/products/edit-common.html.tmpl b/template/en/default/admin/products/edit-common.html.tmpl
index ec6477287..e3edadc9c 100644
--- a/template/en/default/admin/products/edit-common.html.tmpl
+++ b/template/en/default/admin/products/edit-common.html.tmpl
@@ -53,8 +53,19 @@
</tr>
<tr>
<th align="right">Default milestone:</th>
- <td><input type="text" size="20" maxlength="20" name="defaultmilestone"
- value="[% product.defaultmilestone FILTER html %]">
+ <td>
+ [% IF product.milestones.size %]
+ <select name="defaultmilestone">
+ [% FOREACH m = product.milestones %]
+ <option value="[% m.name FILTER html %]"
+ [% " selected=\"selected\"" IF m.name == product.defaultmilestone %]>
+ [%- m.name FILTER html -%]</option>
+ [% END %]
+ </select>
+ [% ELSE %]
+ <input type="text" size="20" maxlength="20" name="defaultmilestone"
+ value="[% product.defaultmilestone FILTER html %]">
+ [% END %]
</td>
</tr>
[% END %]