From 5db6eeb9cf4bf82d785dd193703b46b2139247e5 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 21 Apr 2015 14:00:18 +0800 Subject: Bug 579089: Change default Hardware / OS values to be "Unspecified/Unspecified" --- template/en/default/bug/create/create.html.tmpl | 53 +++++++++++++++---------- template/en/default/bug/edit.html.tmpl | 2 + 2 files changed, 34 insertions(+), 21 deletions(-) (limited to 'template/en/default/bug') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index e258a0d73..fc1bc5420 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -321,31 +321,42 @@ TUI_hide_default('attachment_text_field'); value = default.bug_severity %] + [% needs_extra_tr = 1 %] - [% INCLUDE bug/field.html.tmpl - bug = default, field = bug_fields.rep_platform, editable = 1, - value = default.rep_platform %] + + Platform: + + +
+ + [% INCLUDE bug/field.html.tmpl + no_tds = 1, bug = default, field = bug_fields.rep_platform, editable = 1, + value = default.rep_platform %] + + + [% INCLUDE bug/field.html.tmpl + no_tds = 1, bug = default, field = bug_fields.op_sys, editable = 1, + value = default.op_sys %] + +
+ [% IF !cloned_bug_id %] +
+ Update the platform field if this [% terms.bug %] is applicable to specific platforms.
+ + (use my platform) + +
+ [% needs_extra_tr = 0 %] + [% END %] + - - [% INCLUDE bug/field.html.tmpl - bug = default, field = bug_fields.op_sys, editable = 1, - value = default.op_sys %] - - [% IF (!Param('defaultplatform') || !Param('defaultopsys')) && !cloned_bug_id %] + [% IF needs_extra_tr %] -   - -
We've made a guess at your - [% IF Param('defaultplatform') %] - operating system. Please check it - [% ELSIF Param('defaultopsys') %] - platform. Please check it - [% ELSE %] - operating system and platform. Please check them - [% END %] - and make any corrections if necessary.
- +   [% END %] diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index c9d81b34c..0fc8762a4 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -368,6 +368,8 @@ bug = bug, field = bug_fields.op_sys, no_tds = 1, value = bug.op_sys editable = bug.check_can_change_field('op_sys', 0, 1) %] + [%# BMO - hook for hw/os detection from reporter %] + [% Hook.process('after_op_sys', 'bug/edit.html.tmpl') %] -- cgit v1.2.3-24-g4f1b