Commit dfa63026 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 323525: Style the group table as all other admin tables in Bugzilla - Patch…

Bug 323525: Style the group table as all other admin tables in Bugzilla - Patch by Colin Ogilvie <colin.ogilvie@gmail.com> r=LpSolit a=justdave
parent 6ce5f4a8
...@@ -37,53 +37,91 @@ ...@@ -37,53 +37,91 @@
h2 = "This lets you edit the groups available to put users in." h2 = "This lets you edit the groups available to put users in."
%] %]
[% edit_contentlink = "editgroups.cgi?action=changeform&amp;group=%%id%%" %]
[% del_contentlink = "editgroups.cgi?action=del&amp;group=%%id%%" %]
<table border="1"> [% columns =
<tr> [{name => 'name'
<th>Name</th> heading => 'Name'
<th>Description</th> contentlink => edit_contentlink
<th>User RegExp</th> }
<th>Use For [% terms.Bugs %]</th> {name => 'description'
<th>Type</th> heading => 'Description'
<th>Action</th> }
</tr> {name => 'userregexp'
heading => 'User RegExp'
[% FOREACH group = groups %] }
<tr> {name => 'use_for'
<td> heading => "Use For $terms.Bugs"
<a href="editgroups.cgi?action=changeform&amp;group=[% group.id FILTER url_quote %]"> align => 'center'
[% group.name FILTER html %]</a> }
</td> {name => 'type'
<td>[% group.description FILTER html %]</td> heading => 'Type'
<td>[% group.userregexp FILTER html %]&nbsp;</td> align => 'center'
}
{name => 'action'
heading => 'Action'
}
]
%]
<td align="center"> [% overrides.use_for = [ {
[% IF (group.isactive != 0) && (group.isbuggroup) %] match_value => "0"
X match_field => 'use_for'
[% ELSE %] override_content => 1
&nbsp; content => "&nbsp;"
[% END %] },
</td> {
match_value => "1"
match_field => 'use_for'
override_content => 1
content => "X"
}]
overrides.userregexp = [ {
match_value => ""
match_field => 'userregexp'
override_content => 1
content => "&nbsp;"
}]
overrides.action = [ {
match_value => "0"
match_field => 'isbuggroup'
override_content => 1
content => "&nbsp;"
},
{
match_value => "1"
match_field => 'isbuggroup'
override_content => 1
content => "Delete"
override_contentlink => 1
contentlink => del_contentlink
}]
overrides.type = [ {
match_value => "0"
match_field => 'isbuggroup'
override_content => 1
content => "system"
},
{
match_value => "1"
match_field => 'isbuggroup'
override_content => 1
content => "user"
}]
%]
<td align="center"> [% FOREACH group = groups %]
[% (group.isbuggroup) ? "user" : "system" %] [% group.use_for = (group.isactive != 0) && (group.isbuggroup) %]
</td> [% END %]
<td align="center" valign="middle"> [% PROCESS admin/table.html.tmpl
[% IF (group.isbuggroup) %] columns = columns
<a href="editgroups.cgi?action=del&amp;group=[% group.id FILTER url_quote %]">Delete</a> data = groups
[% ELSE %] overrides = overrides
&nbsp; %]
[% END %]
</td>
</tr>
[% END %]
<tr> <p><a href="editgroups.cgi?action=add">Add Group</a></p>
<td colspan="5"></td>
<td><a href="editgroups.cgi?action=add">Add Group</a></td>
</tr>
</table>
<p> <p>
<b>Name</b> is what is used with the UserInGroup() function in any <b>Name</b> is what is used with the UserInGroup() function in any
......
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