From d642d81c9c3438b3778e8d03d00804bc4f7732b0 Mon Sep 17 00:00:00 2001 From: Sunil Joshi Date: Fri, 12 Oct 2012 19:39:38 +0200 Subject: Bug 297213: Submit button appears without having anything to submit r/a=LpSolit --- .../admin/products/groupcontrol/edit.html.tmpl | 219 ++++++++++----------- 1 file changed, 106 insertions(+), 113 deletions(-) diff --git a/template/en/default/admin/products/groupcontrol/edit.html.tmpl b/template/en/default/admin/products/groupcontrol/edit.html.tmpl index cd738960e..889647e7e 100644 --- a/template/en/default/admin/products/groupcontrol/edit.html.tmpl +++ b/template/en/default/admin/products/groupcontrol/edit.html.tmpl @@ -13,122 +13,115 @@ title = title %] -
- - - +[% display_headers = 1 %] +[% FOREACH group = product.group_controls(1).values.sort("name") %] + [% NEXT UNLESS group.group.isactive OR group.bug_count %] + [% IF display_headers %] + [% display_headers = 0 %] + + + + - - - - - - - - - - - - - [% FOREACH group = product.group_controls(1).values.sort("name") %] - [% IF !group.group.isactive AND group.bug_count %] - - - - - - [% ELSIF group.group.is_active %] - - - - - - - - - - +
GroupEntryMemberControlOtherControlCanediteditcomponentscanconfirmeditbugs[% terms.Bugs %]
- [% group.group.name FILTER html %] - - Disabled - - [% group.bug_count FILTER html %] -
- [% group.group.name FILTER html %] - - - - - - - - - - - - - - - - [% group.bug_count || 0 FILTER html %] -
+ + + + + + + + + + - [% END %] - [% END %] - -
GroupEntryMemberControlOtherControlCanediteditcomponentscanconfirmeditbugs[% terms.Bugs %]
-
- -
-
+ [% END %] + [% IF !group.group.isactive %] + + [% group.group.name FILTER html %] + Disabled + [% group.bug_count FILTER html %] + + [% ELSE %] + + [% group.group.name FILTER html %] + + + + + + + + + + + + + + + + + + + + + + [% group.bug_count || 0 FILTER html %] + + [% END %] +[% END %] +[% IF display_headers %] +

No groups are available for products. + [% IF user.in_group('creategroups') %] + Create a new group + [% END %] +

+[% ELSE %] + +
+ + +[% END %]

These settings control the relationship of the groups to this -- cgit v1.2.3-24-g4f1b