Commit 4171915f authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 490766: Link all field labels on enter_bug.cgi to their description

on fields.html r=LpSolit, a=LpSolit
parent d38d00a4
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
margin-top: .5em; margin-top: .5em;
} }
form#Create #comp_desc {
margin: .5em 1em;
}
#footer #useful-links li { #footer #useful-links li {
padding-bottom: 0.8ex; padding-bottom: 0.8ex;
} }
......
...@@ -497,18 +497,44 @@ input.required, select.required, span.required_explanation { ...@@ -497,18 +497,44 @@ input.required, select.required, span.required_explanation {
list-style-type: none; list-style-type: none;
} }
/*************/
/* enter_bug */
/*************/
form#Create table {
border-spacing: 0;
border-width: 0;
}
form#Create td, form#Create th {
padding: .25em;
}
form#Create th { form#Create th {
text-align: right; text-align: right;
} }
/* This makes the "component" column as small as possible (since it
* contains only fixed-width content) and the Reporter column
* as large as possible, which makes the form not jump around
* when the Component Description changes size. This works
* pretty well on all browsers except IE 8.
*/
form#Create #field_container_component { width: 1px; }
form#Create #field_container_reporter { width: 100%; }
form#Create .comment { form#Create .comment {
vertical-align: top; vertical-align: top;
overflow: auto; overflow: auto;
color: green; color: green;
margin: 0 0.5em;
padding: 0.3em;
height: 8ex;
} }
form#Create #comp_desc_container td { padding: 0; }
form#Create #comp_desc { height: 11ex; }
form#Create #os_guess_note {
padding-top: 0;
}
form#Create #os_guess_note div {
max-width: 35em;
}
.image_button { .image_button {
background-repeat: no-repeat; background-repeat: no-repeat;
......
...@@ -175,7 +175,7 @@ TUI_hide_default('expert_fields'); ...@@ -175,7 +175,7 @@ TUI_hide_default('expert_fields');
<input type="hidden" name="product" value="[% product.name FILTER html %]"> <input type="hidden" name="product" value="[% product.name FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]"> <input type="hidden" name="token" value="[% token FILTER html %]">
<table cellspacing="4" cellpadding="2" border="0"> <table>
<tbody> <tbody>
<tr> <tr>
<td colspan="4"> <td colspan="4">
...@@ -204,11 +204,12 @@ TUI_hide_default('expert_fields'); ...@@ -204,11 +204,12 @@ TUI_hide_default('expert_fields');
</tr> </tr>
<tr> <tr>
<th>Product:</th> [% INCLUDE bug/field.html.tmpl
<td width="10%">[% product.name FILTER html %]</td> bug = default, field = bug_fields.product, editable = 0,
value = product.name %]
<th>Reporter:</th> [% INCLUDE bug/field.html.tmpl
<td width="100%">[% user.login FILTER html %]</td> bug = default, field = bug_fields.reporter, editable = 0,
value = user.login %]
</tr> </tr>
[%# We can't use the select block in these two cases for various reasons. %] [%# We can't use the select block in these two cases for various reasons. %]
...@@ -217,7 +218,7 @@ TUI_hide_default('expert_fields'); ...@@ -217,7 +218,7 @@ TUI_hide_default('expert_fields');
<a href="describecomponents.cgi?product=[% product.name FILTER url_quote %]"> <a href="describecomponents.cgi?product=[% product.name FILTER url_quote %]">
Component</a>: Component</a>:
</th> </th>
<td> <td id="field_container_component">
<select name="component" id="component" onchange="set_assign_to();" <select name="component" id="component" onchange="set_assign_to();"
size="7" aria-required="true" class="required"> size="7" aria-required="true" class="required">
[%# Build the lists of assignees and QA contacts if "usemenuforusers" is enabled. %] [%# Build the lists of assignees and QA contacts if "usemenuforusers" is enabled. %]
...@@ -254,7 +255,7 @@ TUI_hide_default('expert_fields'); ...@@ -254,7 +255,7 @@ TUI_hide_default('expert_fields');
</script> </script>
</td> </td>
<td colspan="2"> <td colspan="2" id="comp_desc_container">
[%# Enclose the fieldset in a nested table so that its width changes based [%# Enclose the fieldset in a nested table so that its width changes based
# on the length on the component description. %] # on the length on the component description. %]
<table> <table>
...@@ -271,7 +272,8 @@ TUI_hide_default('expert_fields'); ...@@ -271,7 +272,8 @@ TUI_hide_default('expert_fields');
</tr> </tr>
<tr> <tr>
<th rowspan="3">Version:</th> <th rowspan="3"><a href="page.cgi?id=fields.html#version">
[%- field_descs.version FILTER html %]:</a></th>
<td rowspan="3"> <td rowspan="3">
<select name="version" size="5"> <select name="version" size="5">
[%- FOREACH v = version %] [%- FOREACH v = version %]
...@@ -298,6 +300,22 @@ TUI_hide_default('expert_fields'); ...@@ -298,6 +300,22 @@ TUI_hide_default('expert_fields');
bug = default, field = bug_fields.op_sys, editable = 1, bug = default, field = bug_fields.op_sys, editable = 1,
value = default.op_sys %] value = default.op_sys %]
</tr> </tr>
[% IF !Param('defaultplatform') || !Param('defaultopsys') %]
<tr>
<td 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>
</tr>
[% END %]
</tbody> </tbody>
<tbody class="expert_fields"> <tbody class="expert_fields">
...@@ -319,25 +337,6 @@ TUI_hide_default('expert_fields'); ...@@ -319,25 +337,6 @@ TUI_hide_default('expert_fields');
</tr> </tr>
</tbody> </tbody>
[% IF !Param('defaultplatform') || !Param('defaultopsys') %]
<tbody>
<tr>
<th>&nbsp;</th>
<td colspan="3" class="comment">
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.
</td>
</tr>
</tbody>
[% END %]
<tbody class="expert_fields"> <tbody class="expert_fields">
<tr> <tr>
<td colspan="4">&nbsp;</td> <td colspan="4">&nbsp;</td>
...@@ -400,7 +399,8 @@ TUI_hide_default('expert_fields'); ...@@ -400,7 +399,8 @@ TUI_hide_default('expert_fields');
[% IF Param("useqacontact") %] [% IF Param("useqacontact") %]
<tr> <tr>
<th>QA Contact:</th> <th><a href="page.cgi?id=fields.html#qa_contact">
[%- field_descs.qa_contact FILTER html %]:</a></th>
<td colspan="2"> <td colspan="2">
[% INCLUDE global/userselect.html.tmpl [% INCLUDE global/userselect.html.tmpl
id => "qa_contact" id => "qa_contact"
...@@ -417,7 +417,8 @@ TUI_hide_default('expert_fields'); ...@@ -417,7 +417,8 @@ TUI_hide_default('expert_fields');
[% END %] [% END %]
<tr> <tr>
<th>CC:</th> <th><a href="page.cgi?id=fields.html#cc">
[%- field_descs.cc FILTER html %]:</a></th>
<td colspan="2"> <td colspan="2">
[% INCLUDE global/userselect.html.tmpl [% INCLUDE global/userselect.html.tmpl
id => "cc" id => "cc"
...@@ -431,7 +432,7 @@ TUI_hide_default('expert_fields'); ...@@ -431,7 +432,7 @@ TUI_hide_default('expert_fields');
</tr> </tr>
<tr> <tr>
<th>Default CC:</th> <th>Default [% field_descs.cc FILTER html %]:</th>
<td colspan="2"> <td colspan="2">
<div id="initial_cc"> <div id="initial_cc">
</div> </div>
...@@ -444,7 +445,8 @@ TUI_hide_default('expert_fields'); ...@@ -444,7 +445,8 @@ TUI_hide_default('expert_fields');
[% IF user.is_timetracker %] [% IF user.is_timetracker %]
<tr> <tr>
<th>Estimated Hours:</th> <th><a href="page.cgi?id=fields.html#estimated_time">Estimated
Hours:</a></th>
<td colspan="2"> <td colspan="2">
<input name="estimated_time" size="6" maxlength="6" value="[% estimated_time FILTER html %]"> <input name="estimated_time" size="6" maxlength="6" value="[% estimated_time FILTER html %]">
</td> </td>
...@@ -462,7 +464,8 @@ TUI_hide_default('expert_fields'); ...@@ -462,7 +464,8 @@ TUI_hide_default('expert_fields');
[% IF Param("usebugaliases") %] [% IF Param("usebugaliases") %]
<tr> <tr>
<th>Alias:</th> <th><a href="page.cgi?id=fields.html#alias">
[%- field_descs.alias FILTER html %]:</a></th>
<td colspan="2"> <td colspan="2">
<input name="alias" size="20" value="[% alias FILTER html %]"> <input name="alias" size="20" value="[% alias FILTER html %]">
</td> </td>
...@@ -470,7 +473,8 @@ TUI_hide_default('expert_fields'); ...@@ -470,7 +473,8 @@ TUI_hide_default('expert_fields');
[% END %] [% END %]
<tr> <tr>
<th>URL:</th> <th><a href="page.cgi?id=fields.html#bug_file_loc">
[%- field_descs.bug_file_loc FILTER html %]:</a></th>
<td colspan="2"> <td colspan="2">
<input name="bug_file_loc" size="40" <input name="bug_file_loc" size="40"
value="[% bug_file_loc FILTER html %]"> value="[% bug_file_loc FILTER html %]">
...@@ -495,7 +499,8 @@ TUI_hide_default('expert_fields'); ...@@ -495,7 +499,8 @@ TUI_hide_default('expert_fields');
<tbody> <tbody>
<tr> <tr>
<th class="required">Summary:</th> <th class="required"><a href="page.cgi?id=fields.html#short_desc">
[%- field_descs.short_desc FILTER html %]:</a></th>
<td colspan="3"> <td colspan="3">
<input name="short_desc" size="70" value="[% short_desc FILTER html %]" <input name="short_desc" size="70" value="[% short_desc FILTER html %]"
maxlength="255" spellcheck="true" aria-required="true" maxlength="255" spellcheck="true" aria-required="true"
...@@ -592,13 +597,15 @@ TUI_hide_default('expert_fields'); ...@@ -592,13 +597,15 @@ TUI_hide_default('expert_fields');
[% END %] [% END %]
<tr> <tr>
<th>Depends on:</th> <th><a href="page.cgi?id=fields.html#dependson">
[%- field_descs.dependson FILTER html %]:</a></th>
<td colspan="3"> <td colspan="3">
<input name="dependson" accesskey="d" value="[% dependson FILTER html %]"> <input name="dependson" accesskey="d" value="[% dependson FILTER html %]">
</td> </td>
</tr> </tr>
<tr> <tr>
<th>Blocks:</th> <th><a href="page.cgi?id=fields.html#blocked">
[%- field_descs.blocked FILTER html %]:</a></th>
<td colspan="3"> <td colspan="3">
<input name="blocked" accesskey="b" value="[% blocked FILTER html %]"> <input name="blocked" accesskey="b" value="[% blocked FILTER html %]">
</td> </td>
......
...@@ -54,11 +54,10 @@ ...@@ -54,11 +54,10 @@
[% END %] [% END %]
[% IF desc_url %] [% IF desc_url %]
<a href="[% desc_url FILTER html %]"> <a href="[% desc_url FILTER html %]">
[% ELSIF !field.custom %] [% ELSE %]
<a href="page.cgi?id=fields.html#[% field.name FILTER url_quote %]"> <a href="page.cgi?id=fields.html#[% field.name FILTER url_quote %]">
[% END -%] [% END %]
[% field_descs.${field.name} FILTER html %]: [%- field_descs.${field.name} FILTER html %]:</a>
[%- '</a>' IF (!field.custom || desc_url) %]
[% '</label>' IF editable %] [% '</label>' IF editable %]
</th> </th>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment