summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-21 08:00:18 +0200
committerByron Jones <glob@mozilla.com>2015-04-21 08:00:18 +0200
commit5db6eeb9cf4bf82d785dd193703b46b2139247e5 (patch)
tree2cd234261c4cc56e4035b035b0fc20990ec9a6f6 /template/en
parent4aa44c46edf93a9707fc693769f39e5aeda7f59b (diff)
downloadbugzilla-5db6eeb9cf4bf82d785dd193703b46b2139247e5.tar.gz
bugzilla-5db6eeb9cf4bf82d785dd193703b46b2139247e5.tar.xz
Bug 579089: Change default Hardware / OS values to be "Unspecified/Unspecified"
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/bug/create/create.html.tmpl53
-rw-r--r--template/en/default/bug/edit.html.tmpl2
2 files changed, 34 insertions, 21 deletions
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 %]
</tr>
+ [% needs_extra_tr = 1 %]
<tr>
- [% INCLUDE bug/field.html.tmpl
- bug = default, field = bug_fields.rep_platform, editable = 1,
- value = default.rep_platform %]
+ <th>
+ Platform:
+ </th>
+ <td>
+ <div>
+ <span title="Hardware">
+ [% INCLUDE bug/field.html.tmpl
+ no_tds = 1, bug = default, field = bug_fields.rep_platform, editable = 1,
+ value = default.rep_platform %]
+ </span>
+ <span title="Operating System">
+ [% INCLUDE bug/field.html.tmpl
+ no_tds = 1, bug = default, field = bug_fields.op_sys, editable = 1,
+ value = default.op_sys %]
+ </span>
+ </div>
+ [% IF !cloned_bug_id %]
+ <div class="comment">
+ Update the <i>platform</i> field if this [% terms.bug %] is applicable to specific platforms.<br>
+ <span id="rep_hw_os">
+ (<a href="javascript:void(0)"
+ onclick="$('#rep_platform').val('[% rep_platform FILTER js FILTER html %]');
+ $('#op_sys').val('[% rep_op_sys FILTER js FILTER html %]');
+ $('#rep_hw_os').css('visibility', 'hidden')">use my platform</a>)
+ </span>
+ </div>
+ [% needs_extra_tr = 0 %]
+ [% END %]
+ </td>
</tr>
- <tr>
- [% INCLUDE bug/field.html.tmpl
- bug = default, field = bug_fields.op_sys, editable = 1,
- value = default.op_sys %]
- </tr>
- [% IF (!Param('defaultplatform') || !Param('defaultopsys')) && !cloned_bug_id %]
+ [% IF needs_extra_tr %]
<tr>
- <th colspan="3">&nbsp;</th>
- <td id="os_guess_note" class="comment">
- <div>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.</div>
- </td>
+ <td>&nbsp;</td>
</tr>
[% END %]
</tbody>
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') %]
</td>
</tr>