From 3d463f780fd2051751f276f71e27bb47e96dc2aa Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 2 Sep 2015 14:40:56 +0800 Subject: Bug 1196618 - add support for group owners --- template/en/default/admin/groups/create.html.tmpl | 13 +++++++++++++ template/en/default/admin/groups/edit.html.tmpl | 14 ++++++++++++++ template/en/default/admin/users/edit.html.tmpl | 16 ++++++++++++++++ 3 files changed, 43 insertions(+) (limited to 'template/en/default/admin') diff --git a/template/en/default/admin/groups/create.html.tmpl b/template/en/default/admin/groups/create.html.tmpl index b3ac72372..e5ffb7819 100644 --- a/template/en/default/admin/groups/create.html.tmpl +++ b/template/en/default/admin/groups/create.html.tmpl @@ -29,6 +29,8 @@ title = "Add group" subheader = "This page allows you to define a new user group." doc_section = "groups.html#create-groups" + generate_api_token = 1 + javascript_urls = [ "js/field.js" ] %]
@@ -47,6 +49,17 @@ Icon URL: + + Owner: + + [% INCLUDE global/userselect.html.tmpl + name => "owner" + id => "owner" + size => 30 + %] + + + [% Hook.process('field') %] diff --git a/template/en/default/admin/groups/edit.html.tmpl b/template/en/default/admin/groups/edit.html.tmpl index 9403c076d..fb54c2c0d 100644 --- a/template/en/default/admin/groups/edit.html.tmpl +++ b/template/en/default/admin/groups/edit.html.tmpl @@ -45,6 +45,8 @@ padding-right: .5em; } " + generate_api_token = 1 + javascript_urls = [ "js/field.js" ] %] @@ -97,6 +99,18 @@ + + Owner: + + [% INCLUDE global/userselect.html.tmpl + id => "owner" + name => "owner" + value => group.owner.login + size => 30 + %] + + + [% IF group.is_bug_group %] Use For [% terms.Bugs %]: diff --git a/template/en/default/admin/users/edit.html.tmpl b/template/en/default/admin/users/edit.html.tmpl index fbf283574..64eece345 100644 --- a/template/en/default/admin/users/edit.html.tmpl +++ b/template/en/default/admin/users/edit.html.tmpl @@ -136,6 +136,22 @@ $(function() { + [% IF otheruser.groups_owned.size %] + + Groups Owned: + + [% can_edit_groups = user.in_group('creategroups') %] + [% FOREACH group = otheruser.groups_owned %] + [% IF can_edit_groups %] + + [% END %] + [% group.name FILTER html %] + [% '' IF can_edit_groups %]
+ [% END %] + + + [% END %] + Last Login: -- cgit v1.2.3-24-g4f1b