diff options
author | Byron Jones <glob@mozilla.com> | 2015-04-21 08:00:18 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-04-21 08:00:18 +0200 |
commit | 5db6eeb9cf4bf82d785dd193703b46b2139247e5 (patch) | |
tree | 2cd234261c4cc56e4035b035b0fc20990ec9a6f6 /extensions/BMO/template/en/default/hook/admin | |
parent | 4aa44c46edf93a9707fc693769f39e5aeda7f59b (diff) | |
download | bugzilla-5db6eeb9cf4bf82d785dd193703b46b2139247e5.tar.gz bugzilla-5db6eeb9cf4bf82d785dd193703b46b2139247e5.tar.xz |
Bug 579089: Change default Hardware / OS values to be "Unspecified/Unspecified"
Diffstat (limited to 'extensions/BMO/template/en/default/hook/admin')
3 files changed, 60 insertions, 5 deletions
diff --git a/extensions/BMO/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl b/extensions/BMO/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl index 39f063464..9b251431c 100644 --- a/extensions/BMO/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl +++ b/extensions/BMO/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl @@ -6,8 +6,14 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% IF panel.name == "groupsecurity" %] - [% panel.param_descs.delete_comments_group = - 'The name of the group of users who can delete comments by using the "deleted" comment tag.' - %] -[% END -%] +[% +IF panel.name == "groupsecurity"; + panel.param_descs.delete_comments_group = + 'The name of the group of users who can delete comments by using the "deleted" comment tag.'; + +ELSIF panel.name == "bugfields"; + panel.param_descs.defaultplatform = "This parameter is ignored on BMO, use per-product defaults instead."; + panel.param_descs.defaultopsys = "This parameter is ignored on BMO, use per-product defaults instead."; + +END; +%] diff --git a/extensions/BMO/template/en/default/hook/admin/products/edit-common-rows.html.tmpl b/extensions/BMO/template/en/default/hook/admin/products/edit-common-rows.html.tmpl new file mode 100644 index 000000000..7093bcfc6 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/admin/products/edit-common-rows.html.tmpl @@ -0,0 +1,35 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +<tr> + <th align="right">Default Platform</th> + <td> + [% INCLUDE default_select + field_name = 'default_platform_id' + field_value = product.default_platform_id + field_values = bug_fields.rep_platform.legal_values + %] + [%= INCLUDE default_select + field_name = 'default_op_sys_id' + field_value = product.default_op_sys_id + field_values = bug_fields.op_sys.legal_values + %] + </td> +</tr> + +[% BLOCK default_select %] + <select name="[% field_name FILTER html %]"> + <option value="" [% " selected" IF field_value == "" %]>Detect</option> + [% FOREACH v IN field_values %] + [% NEXT UNLESS v.is_active %] + <option value="[% v.id FILTER html %]" [% " selected" IF field_value == v.id %]> + [% v.value FILTER html %] + </option> + [% END %] + </select> +[% END %] diff --git a/extensions/BMO/template/en/default/hook/admin/products/updated-changes.html.tmpl b/extensions/BMO/template/en/default/hook/admin/products/updated-changes.html.tmpl new file mode 100644 index 000000000..af480134e --- /dev/null +++ b/extensions/BMO/template/en/default/hook/admin/products/updated-changes.html.tmpl @@ -0,0 +1,14 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% IF changes.default_platform_id.defined %] + <p>Default Platform updated</p> +[% END %] +[% IF changes.default_op_sys_id.defined %] + <p>Default Op-Sys updated</p> +[% END %] |