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

This commit is contained in:
lpsolit%gmail.com 2006-02-21 19:07:42 +00:00
parent d0bd972f74
commit 05fce2616e

View File

@ -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 %]