From dfa63026620220b2f252291ae41c6bd7e966e0a9 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 7 Apr 2006 05:49:29 +0000 Subject: Bug 323525: Style the group table as all other admin tables in Bugzilla - Patch by Colin Ogilvie r=LpSolit a=justdave --- template/en/default/admin/groups/list.html.tmpl | 122 ++++++++++++++++-------- 1 file changed, 80 insertions(+), 42 deletions(-) (limited to 'template') diff --git a/template/en/default/admin/groups/list.html.tmpl b/template/en/default/admin/groups/list.html.tmpl index b7897c5e7..f32e715d6 100644 --- a/template/en/default/admin/groups/list.html.tmpl +++ b/template/en/default/admin/groups/list.html.tmpl @@ -37,53 +37,91 @@ h2 = "This lets you edit the groups available to put users in." %] +[% edit_contentlink = "editgroups.cgi?action=changeform&group=%%id%%" %] +[% del_contentlink = "editgroups.cgi?action=del&group=%%id%%" %] - - - - - - - - - - - [% FOREACH group = groups %] - - - - +[% columns = + [{name => 'name' + heading => 'Name' + contentlink => edit_contentlink + } + {name => 'description' + heading => 'Description' + } + {name => 'userregexp' + heading => 'User RegExp' + } + {name => 'use_for' + heading => "Use For $terms.Bugs" + align => 'center' + } + {name => 'type' + heading => 'Type' + align => 'center' + } + {name => 'action' + heading => 'Action' + } + ] +%] - +[% overrides.use_for = [ { + match_value => "0" + match_field => 'use_for' + override_content => 1 + content => " " + }, + { + match_value => "1" + match_field => 'use_for' + override_content => 1 + content => "X" + }] + overrides.userregexp = [ { + match_value => "" + match_field => 'userregexp' + override_content => 1 + content => " " + }] + overrides.action = [ { + match_value => "0" + match_field => 'isbuggroup' + override_content => 1 + content => " " + }, + { + 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" + }] +%] - +[% FOREACH group = groups %] + [% group.use_for = (group.isactive != 0) && (group.isbuggroup) %] +[% END %] - - - [% END %] +[% PROCESS admin/table.html.tmpl + columns = columns + data = groups + overrides = overrides +%] - - - - -
NameDescriptionUser RegExpUse For [% terms.Bugs %]TypeAction
- - [% group.name FILTER html %] - [% group.description FILTER html %][% group.userregexp FILTER html %]  - [% IF (group.isactive != 0) && (group.isbuggroup) %] - X - [% ELSE %] -   - [% END %] - - [% (group.isbuggroup) ? "user" : "system" %] - - [% IF (group.isbuggroup) %] - Delete - [% ELSE %] -   - [% END %] -
Add Group
+

Add Group

Name is what is used with the UserInGroup() function in any -- cgit v1.2.3-24-g4f1b