diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 13:05:31 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 13:05:31 +0200 |
commit | 589632e9d5d35c25c932aafa164feb92c26f5e3d (patch) | |
tree | a91df977bac1818f8a70fb7e758576a294a7221e /template/en/default/admin/products | |
parent | 664920c7dd532d2243538b1fd3705a72e8d496e6 (diff) | |
download | bugzilla-589632e9d5d35c25c932aafa164feb92c26f5e3d.tar.gz bugzilla-589632e9d5d35c25c932aafa164feb92c26f5e3d.tar.xz |
Bug 661476: sanitycheck.pl should check if all products have components defined.
Also, creating a new product from the web UI asks you to create a component too.
r=glob a=LpSolit
Diffstat (limited to 'template/en/default/admin/products')
-rw-r--r-- | template/en/default/admin/products/create.html.tmpl | 17 | ||||
-rw-r--r-- | template/en/default/admin/products/edit-common.html.tmpl | 36 |
2 files changed, 33 insertions, 20 deletions
diff --git a/template/en/default/admin/products/create.html.tmpl b/template/en/default/admin/products/create.html.tmpl index 3af81fb23..2b60645ab 100644 --- a/template/en/default/admin/products/create.html.tmpl +++ b/template/en/default/admin/products/create.html.tmpl @@ -25,7 +25,8 @@ [% PROCESS global/header.html.tmpl title = title style_urls = ['skins/standard/admin.css'] - javascript_urls = ['js/util.js'] + javascript_urls = ['js/util.js', 'js/field.js'] + yui = [ 'autocomplete' ] %] [% DEFAULT @@ -42,7 +43,7 @@ <tr> <th align="right">Version:</th> - <td><input size="64" maxlength="255" name="version" + <td><input size="20" maxlength="64" name="version" value="[% version FILTER html %]"> </td> </tr> @@ -52,6 +53,18 @@ <input type="checkbox" name="createseries" value="1" checked="checked"> </td> </tr> + + <tr> + <td colspan="2"> </td> + </tr> + <tr> + <td colspan="2"> + This product must have at least one component. + You will be able to create additional components later: + </td> + </tr> + + [% PROCESS "admin/components/edit-common.html.tmpl" desc_name = "comp_desc" %] </table> <input type="submit" id="add-product" value="Add"> diff --git a/template/en/default/admin/products/edit-common.html.tmpl b/template/en/default/admin/products/edit-common.html.tmpl index 4812707cd..eac33ea9a 100644 --- a/template/en/default/admin/products/edit-common.html.tmpl +++ b/template/en/default/admin/products/edit-common.html.tmpl @@ -25,7 +25,7 @@ [% IF Param('useclassification') %] <tr> - <th align="right"><b>Classification:</b></th> + <th align="right">Classification:</th> <td><b>[% classification.name FILTER html %]</b></td> </tr> [% END %] @@ -43,6 +43,23 @@ </td> </tr> +<tr> + <th align="right">Open for [% terms.bug %] entry:</th> + <td><input type="checkbox" name="is_active" value="1" + [% ' checked="checked"' IF product.is_active %]> + </td> +</tr> +<tr> + <th align="right"> + <label for="allows_unconfirmed">Enable the + [%+ display_value('bug_status', 'UNCONFIRMED') FILTER html %] status + in this product:</label> + </th> + <td><input type="checkbox" id="allows_unconfirmed" name="allows_unconfirmed" + [% ' checked="checked"' IF product.allows_unconfirmed %]> + </td> +</tr> + [% IF Param('usetargetmilestone') -%] <tr> <th align="right">Default milestone:</th> @@ -63,21 +80,4 @@ </tr> [% END %] -<tr> - <th align="right">Open for [% terms.bug %] entry:</th> - <td><input type="checkbox" name="is_active" value="1" - [% ' checked="checked"' IF product.is_active %]> - </td> -</tr> -<tr> - <th align="right"> - <label for="allows_unconfirmed">Enable the - [%+ display_value('bug_status', 'UNCONFIRMED') FILTER html %] status - in this product:</label> - </th> - <td><input type="checkbox" id="allows_unconfirmed" name="allows_unconfirmed" - [% ' checked="checked"' IF product.allows_unconfirmed %]> - </td> -</tr> - [% Hook.process('rows') %] |