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,25 +211,27 @@ ...@@ -211,25 +211,27 @@
</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 *** %]
[% PROCESS attachment/list.html.tmpl [%# *** Attachments *** %]
attachments = bug.attachments
bugid = bug.bug_id
num_attachment_flag_types = bug.num_attachment_flag_types
show_attachment_flags = bug.show_attachment_flags
%]
[% PROCESS attachment/list.html.tmpl
attachments = bug.attachments
bugid = bug.bug_id
num_attachment_flag_types = bug.num_attachment_flag_types
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,103 +649,92 @@ ...@@ -647,103 +649,92 @@
[% BLOCK section_restrict_visibility %] [% BLOCK section_restrict_visibility %]
[% RETURN UNLESS bug.groups.size %] [% RETURN UNLESS bug.groups.size %]
[% inallgroups = 1 %] <div class="bz_group_visibility_section">
[% inagroup = 0 %] [% inallgroups = 1 %]
[% emitted_description = 0 %] [% inagroup = 0 %]
[% emitted_description = 0 %]
[% FOREACH group = bug.groups %]
[% SET inallgroups = 0 IF NOT group.ingroup %] [% FOREACH group = bug.groups %]
[% SET inagroup = 1 IF group.ison %] [% SET inallgroups = 0 IF NOT group.ingroup %]
[% SET inagroup = 1 IF group.ison %]
[% NEXT IF group.mandatory %]
[% NEXT IF group.mandatory %]
[% IF NOT emitted_description %]
[% emitted_description = 1 %] [% IF NOT emitted_description %]
<table class="bz_group_visibility_section"> [% emitted_description = 1 %]
<tr> <div id="bz_restrict_group_visibility_help">
<td class="field_label"> <b>Only users in all of the selected groups can view this
<label id="bz_restrict_group_visibility_label"><b>Restrict Group Visibility</b>:</label> [%+ terms.bug %]:</b>
</td> <p class="instructions">
<td> Unchecking all boxes makes this a more public [% terms.bug %].
<div id="bz_restrict_group_visibility_help"> </p>
<b>Only users in all of the selected groups can view this [% terms.bug %]:</b> </div>
<br> [% END %]
<small>
(Unchecking all boxes makes this a more public [% terms.bug %].)
</small>
</div>
[% 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 %]"
[% ' checked="checked"' IF group.ison %]
[% ' disabled="disabled"' IF NOT group.ingroup %]>
<label for="bit-[% group.bit %]">[% group.description FILTER html_light %]</label>
<br>
[% END %]
[% IF emitted_description %] <input type="checkbox" value="1" name="bit-[% group.bit %]"
[% IF NOT inallgroups %] id="bit-[% group.bit %]"
<b>Only members of a group can change the visibility of [% terms.abug %] for that group.</b> [% ' checked="checked"' IF group.ison %]
[% ' disabled="disabled"' IF NOT group.ingroup %]>
<label for="bit-[% group.bit %]">
[%- group.description FILTER html_light %]</label>
<br> <br>
[% END %] [% END %]
</td>
</tr>
[% "</table>" IF NOT inagroup %]
[% END %]
[% IF inagroup %] [% IF emitted_description %]
[% IF NOT emitted_description %] [% IF NOT inallgroups %]
[% emitted_description = 1 %] <p class="instructions">Only members of a group can change the
<table class="bz_group_visibility_section"> visibility of [% terms.abug %] for that group.</p>
[% END %]
[% END %] [% END %]
<tr>
<td class="field_label"> [% IF inagroup %]
<label id="bz_enable_role_visibility_label"><b>Enable Role Visibility</b>:</label> <div id="bz_enable_role_visibility_help">
</td> <b>Users in the roles selected below can always view
<td> this [% terms.bug %]:</b>
<div id="bz_enable_role_visibility_help"> </div>
<b>Users in the roles selected below can always view this [% terms.bug %]:</b> <div id="bz_enable_role_visibility">
<br> <div>
<small> [% user_can_edit_accessible =
(The assignee bug.check_can_change_field("reporter_accessible", 0, 1)
[% IF (Param('useqacontact')) %] %]
and QA contact [% IF user_can_edit_accessible %]
[% END %] <input type="hidden" name="defined_reporter_accessible" value="1">
can always see [% terms.abug %], and this section does not take effect unless [% END %]
the [% terms.bug %] is restricted to at least one group.) <input type="checkbox" value="1"
</small> name="reporter_accessible" id="reporter_accessible"
[% " checked" IF bug.reporter_accessible %]
[% " disabled=\"disabled\"" UNLESS user_can_edit_accessible %]>
<label for="reporter_accessible">Reporter</label>
</div> </div>
<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("cclist_accessible", 0, 1)
[% IF user_can_edit_accessible %] %]
<input type="hidden" name="defined_reporter_accessible" value="1"> [% IF user_can_edit_accessible %]
[% END %] <input type="hidden" name="defined_cclist_accessible" value="1">
<input type="checkbox" value="1" [% END %]
name="reporter_accessible" id="reporter_accessible" <input type="checkbox" value="1"
[% " checked" IF bug.reporter_accessible %] name="cclist_accessible" id="cclist_accessible"
[% " disabled=\"disabled\"" UNLESS user_can_edit_accessible %]> [% " checked" IF bug.cclist_accessible %]
<label for="reporter_accessible">Reporter</label> [% " disabled=\"disabled\"" UNLESS user_can_edit_accessible %]>
</div> <label for="cclist_accessible">CC List</label>
<div>
[% user_can_edit_accessible = bug.check_can_change_field("cclist_accessible", 0, 1) %]
[% IF user_can_edit_accessible %]
<input type="hidden" name="defined_cclist_accessible" value="1">
[% END %]
<input type="checkbox" value="1"
name="cclist_accessible" id="cclist_accessible"
[% " checked" IF bug.cclist_accessible %]
[% " disabled=\"disabled\"" UNLESS user_can_edit_accessible %]>
<label for="cclist_accessible">CC List</label>
</div>
</div> </div>
</td> <p class="instructions">
</tr> The assignee
</table> [% IF (Param('useqacontact')) %]
[% END %] 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>
[% 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