]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 271984: Default milestone should be a <select>, not a text entry - Patch by Rémi...
authorlpsolit%gmail.com <>
Wed, 22 Feb 2006 03:07:42 +0000 (03:07 +0000)
committerlpsolit%gmail.com <>
Wed, 22 Feb 2006 03:07:42 +0000 (03:07 +0000)
template/en/default/admin/products/edit-common.html.tmpl

index ec6477287022623496dcbb1a48e518d9f7c9b4d4..e3edadc9cd6eb090d0af6bf798f59c333a513238 100644 (file)
   </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 %]