Commit 8f6a5f73 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 271984: Default milestone should be a <select>, not a text entry - Patch by…

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
parent e13d2bb8
...@@ -53,8 +53,19 @@ ...@@ -53,8 +53,19 @@
</tr> </tr>
<tr> <tr>
<th align="right">Default milestone:</th> <th align="right">Default milestone:</th>
<td><input type="text" size="20" maxlength="20" name="defaultmilestone" <td>
value="[% product.defaultmilestone FILTER html %]"> [% 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> </td>
</tr> </tr>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment