Commit 50cdda2d authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Part 3 of bug 182083: add Help for more admin pages - Patch by me, r=Colin

parent a730795d
...@@ -1692,7 +1692,7 @@ foo: ENTRY, MANDATORY/MANDATORY, CANEDIT ...@@ -1692,7 +1692,7 @@ foo: ENTRY, MANDATORY/MANDATORY, CANEDIT
and un-checking the box next to either 'Reporter' or 'CC List' (or both). and un-checking the box next to either 'Reporter' or 'CC List' (or both).
</para> </para>
</note> </note>
<section> <section id="create-groups">
<title>Creating Groups</title> <title>Creating Groups</title>
<para>To create Groups:</para> <para>To create Groups:</para>
...@@ -1748,7 +1748,7 @@ foo: ENTRY, MANDATORY/MANDATORY, CANEDIT ...@@ -1748,7 +1748,7 @@ foo: ENTRY, MANDATORY/MANDATORY, CANEDIT
</orderedlist> </orderedlist>
</section> </section>
<section> <section id="edit-groups">
<title>Assigning Users to Groups</title> <title>Assigning Users to Groups</title>
<para>Users can become a member of a group in several ways.</para> <para>Users can become a member of a group in several ways.</para>
<orderedlist> <orderedlist>
......
...@@ -112,6 +112,10 @@ my $cgi = Bugzilla->cgi; ...@@ -112,6 +112,10 @@ my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template; my $template = Bugzilla->template;
my $vars = {}; my $vars = {};
# Replace this entry by separate entries in templates when
# the documentation about legal values becomes bigger.
$vars->{'doc_section'} = 'edit-values.html';
print $cgi->header(); print $cgi->header();
exists Bugzilla->user->groups->{'admin'} || exists Bugzilla->user->groups->{'admin'} ||
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = "Add a new Custom Field" title = "Add a new Custom Field"
onload = "document.getElementById('new_bugmail').disabled = true;" %] onload = "document.getElementById('new_bugmail').disabled = true;"
doc_section = "custom-fields.html#add-custom-fields"
%]
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
......
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = title title = title
onload = "toggleCheckbox(document.getElementById('enter_bug'), 'new_bugmail');" %] onload = "toggleCheckbox(document.getElementById('enter_bug'), 'new_bugmail');"
doc_section = "custom-fields.html#edit-custom-fields"
%]
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
......
...@@ -19,7 +19,10 @@ ...@@ -19,7 +19,10 @@
[% PROCESS "global/field-descs.none.tmpl" %] [% PROCESS "global/field-descs.none.tmpl" %]
[% PROCESS global/header.html.tmpl title = "Custom Fields" %] [% PROCESS global/header.html.tmpl
title = "Custom Fields"
doc_section = "custom-fields.html"
%]
[% columns = [ [% columns = [
{ {
......
...@@ -33,7 +33,10 @@ ...@@ -33,7 +33,10 @@
[% title = "Confirm: Remove All Explicit Members?" %] [% title = "Confirm: Remove All Explicit Members?" %]
[% END %] [% END %]
[% PROCESS global/header.html.tmpl %] [% PROCESS global/header.html.tmpl
title = title
doc_section = "groups.html"
%]
[% IF regexp %] [% IF regexp %]
<p>This option will remove all users from '[% group.name FILTER html %]' <p>This option will remove all users from '[% group.name FILTER html %]'
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = "Add group" title = "Add group"
subheader = "This page allows you to define a new user group." subheader = "This page allows you to define a new user group."
doc_section = "groups.html#create-groups"
%] %]
<form method="post" action="editgroups.cgi"> <form method="post" action="editgroups.cgi">
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = "Delete group" title = "Delete group"
doc_section = "groups.html"
%] %]
<table border="1"> <table border="1">
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
[% title = BLOCK %]Change Group: [% group.name FILTER html %][% END %] [% title = BLOCK %]Change Group: [% group.name FILTER html %][% END %]
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = title
doc_section = "groups.html#edit-groups"
style = " style = "
.grant_table { border-collapse: collapse; } .grant_table { border-collapse: collapse; }
.grant_table td, .grant_table th { .grant_table td, .grant_table th {
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = "Edit Groups" title = "Edit Groups"
subheader = "This lets you edit the groups available to put users in." subheader = "This lets you edit the groups available to put users in."
doc_section = "groups.html"
%] %]
[% edit_contentlink = "editgroups.cgi?action=changeform&amp;group=%%id%%" %] [% edit_contentlink = "editgroups.cgi?action=changeform&amp;group=%%id%%" %]
......
...@@ -35,7 +35,10 @@ ...@@ -35,7 +35,10 @@
[% PROCESS global/variables.none.tmpl %] [% PROCESS global/variables.none.tmpl %]
[% title = "Set up whining" %] [% title = "Set up whining" %]
[% PROCESS global/header.html.tmpl %] [% PROCESS global/header.html.tmpl
title = title
doc_section = "whining.html"
%]
<p> <p>
"Whining" is when [% terms.Bugzilla %] executes a saved query at a regular interval "Whining" is when [% terms.Bugzilla %] executes a saved query at a regular interval
......
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