Commit 6ffb51d5 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 524251: Move the bug visibility controls to the right of the timetracking…

Bug 524251: Move the bug visibility controls to the right of the timetracking and attachments tables Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent fb364fe6
...@@ -59,6 +59,26 @@ table#flags { ...@@ -59,6 +59,26 @@ table#flags {
} }
#bz_big_form_parts td {
vertical-align: top;
}
.bz_group_visibility_section {
margin-left: 1em;
}
.bz_group_visibility_section .instructions {
font-style: italic;
}
#bz_restrict_group_visibility_help .instructions {
margin-top: 0;
}
#bz_enable_role_visibility_help {
margin-top: 1em;
}
.bz_time_tracking_table { .bz_time_tracking_table {
border-collapse: collapse; border-collapse: collapse;
} }
......
...@@ -211,15 +211,13 @@ ...@@ -211,15 +211,13 @@
</tr> </tr>
</table> </table>
<table id="bz_big_form_parts" cellspacing="0" cellpadding="0"><tr>
[% PROCESS section_restrict_visibility %] <td>
[% IF user.is_timetracker %] [% IF user.is_timetracker %]
<br>
[% PROCESS section_timetracking %] [% PROCESS section_timetracking %]
[% END %] [% END %]
[%# *** Attachments *** %]
[%# *** Attachments *** %]
[% PROCESS attachment/list.html.tmpl [% PROCESS attachment/list.html.tmpl
attachments = bug.attachments attachments = bug.attachments
...@@ -228,8 +226,12 @@ ...@@ -228,8 +226,12 @@
show_attachment_flags = bug.show_attachment_flags show_attachment_flags = bug.show_attachment_flags
%] %]
[% PROCESS comment_box %] [% PROCESS comment_box %]
</td>
<td>
[% PROCESS section_restrict_visibility %]
</td>
</tr></table>
[%# *** Additional Comments *** %] [%# *** Additional Comments *** %]
<div id="comments"> <div id="comments">
...@@ -647,6 +649,7 @@ ...@@ -647,6 +649,7 @@
[% BLOCK section_restrict_visibility %] [% BLOCK section_restrict_visibility %]
[% RETURN UNLESS bug.groups.size %] [% RETURN UNLESS bug.groups.size %]
<div class="bz_group_visibility_section">
[% inallgroups = 1 %] [% inallgroups = 1 %]
[% inagroup = 0 %] [% inagroup = 0 %]
[% emitted_description = 0 %] [% emitted_description = 0 %]
...@@ -659,66 +662,45 @@ ...@@ -659,66 +662,45 @@
[% IF NOT emitted_description %] [% IF NOT emitted_description %]
[% emitted_description = 1 %] [% emitted_description = 1 %]
<table class="bz_group_visibility_section">
<tr>
<td class="field_label">
<label id="bz_restrict_group_visibility_label"><b>Restrict Group Visibility</b>:</label>
</td>
<td>
<div id="bz_restrict_group_visibility_help"> <div id="bz_restrict_group_visibility_help">
<b>Only users in all of the selected groups can view this [% terms.bug %]:</b> <b>Only users in all of the selected groups can view this
<br> [%+ terms.bug %]:</b>
<small> <p class="instructions">
(Unchecking all boxes makes this a more public [% terms.bug %].) Unchecking all boxes makes this a more public [% terms.bug %].
</small> </p>
</div> </div>
[% END %] [% END %]
[% IF group.ingroup %] [% IF group.ingroup %]
<input type="hidden" name="defined_bit-[% group.bit %]" value="1"> <input type="hidden" name="defined_bit-[% group.bit %]" value="1">
[% END %] [% END %]
<input type="checkbox" value="1" name="bit-[% group.bit %]" id="bit-[% group.bit %]"
<input type="checkbox" value="1" name="bit-[% group.bit %]"
id="bit-[% group.bit %]"
[% ' checked="checked"' IF group.ison %] [% ' checked="checked"' IF group.ison %]
[% ' disabled="disabled"' IF NOT group.ingroup %]> [% ' disabled="disabled"' IF NOT group.ingroup %]>
<label for="bit-[% group.bit %]">[% group.description FILTER html_light %]</label> <label for="bit-[% group.bit %]">
[%- group.description FILTER html_light %]</label>
<br> <br>
[% END %] [% END %]
[% IF emitted_description %] [% IF emitted_description %]
[% IF NOT inallgroups %] [% IF NOT inallgroups %]
<b>Only members of a group can change the visibility of [% terms.abug %] for that group.</b> <p class="instructions">Only members of a group can change the
<br> visibility of [% terms.abug %] for that group.</p>
[% END %] [% END %]
</td>
</tr>
[% "</table>" IF NOT inagroup %]
[% END %] [% END %]
[% IF inagroup %] [% IF inagroup %]
[% IF NOT emitted_description %]
[% emitted_description = 1 %]
<table class="bz_group_visibility_section">
[% END %]
<tr>
<td class="field_label">
<label id="bz_enable_role_visibility_label"><b>Enable Role Visibility</b>:</label>
</td>
<td>
<div id="bz_enable_role_visibility_help"> <div id="bz_enable_role_visibility_help">
<b>Users in the roles selected below can always view this [% terms.bug %]:</b> <b>Users in the roles selected below can always view
<br> this [% terms.bug %]:</b>
<small>
(The assignee
[% IF (Param('useqacontact')) %]
and QA contact
[% END %]
can always see [% terms.abug %], and this section does not take effect unless
the [% terms.bug %] is restricted to at least one group.)
</small>
</div> </div>
<div id="bz_enable_role_visibility">
<div> <div>
<div> [% user_can_edit_accessible =
[% user_can_edit_accessible = bug.check_can_change_field("reporter_accessible", 0, 1) %] bug.check_can_change_field("reporter_accessible", 0, 1)
%]
[% IF user_can_edit_accessible %] [% IF user_can_edit_accessible %]
<input type="hidden" name="defined_reporter_accessible" value="1"> <input type="hidden" name="defined_reporter_accessible" value="1">
[% END %] [% END %]
...@@ -729,7 +711,9 @@ ...@@ -729,7 +711,9 @@
<label for="reporter_accessible">Reporter</label> <label for="reporter_accessible">Reporter</label>
</div> </div>
<div> <div>
[% user_can_edit_accessible = bug.check_can_change_field("cclist_accessible", 0, 1) %] [% user_can_edit_accessible =
bug.check_can_change_field("cclist_accessible", 0, 1)
%]
[% IF user_can_edit_accessible %] [% IF user_can_edit_accessible %]
<input type="hidden" name="defined_cclist_accessible" value="1"> <input type="hidden" name="defined_cclist_accessible" value="1">
[% END %] [% END %]
...@@ -739,11 +723,18 @@ ...@@ -739,11 +723,18 @@
[% " disabled=\"disabled\"" UNLESS user_can_edit_accessible %]> [% " disabled=\"disabled\"" UNLESS user_can_edit_accessible %]>
<label for="cclist_accessible">CC List</label> <label for="cclist_accessible">CC List</label>
</div> </div>
<p class="instructions">
The assignee
[% IF (Param('useqacontact')) %]
and QA contact
[% END %]
can always see [% terms.abug %], and this section does not
take effect unless the [% terms.bug %] is restricted to at
least one group.
</p>
</div> </div>
</td>
</tr>
</table>
[% END %] [% END %]
</div> [%# bz_group_visibility_section %]
[% 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