Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
7b542e50
Commit
7b542e50
authored
Oct 12, 2012
by
Sunil Joshi
Committed by
Frédéric Buclin
Oct 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 297213: Submit button appears without having anything to submit
r/a=LpSolit
parent
c6c0821f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
106 additions
and
113 deletions
+106
-113
edit.html.tmpl
...ate/en/default/admin/products/groupcontrol/edit.html.tmpl
+106
-113
No files found.
template/en/default/admin/products/groupcontrol/edit.html.tmpl
View file @
7b542e50
...
...
@@ -13,122 +13,115 @@
title = title
%]
<form method="post" action="editproducts.cgi">
<input type="hidden" name="action" value="updategroupcontrols">
<input type="hidden" name="product" value="[% product.name FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">
[% 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 %]
<form method="post" action="editproducts.cgi">
<input type="hidden" name="action" value="updategroupcontrols">
<input type="hidden" name="product" value="[% product.name FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">
<table id="form" cellspacing="0" cellpadding="4" border="1">
<tr bgcolor="#6666ff">
<th>Group</th>
<th>Entry</th>
<th>MemberControl</th>
<th>OtherControl</th>
<th>Canedit</th>
<th>editcomponents</th>
<th>canconfirm</th>
<th>editbugs</th>
<th>[% terms.Bugs %]</th>
</tr>
[% FOREACH group = product.group_controls(1).values.sort("name") %]
[% IF !group.group.isactive AND group.bug_count %]
<tr bgcolor="#bbbbbb">
<td>
[% group.group.name FILTER html %]
</td>
<td align="center" colspan=7>
Disabled
</td>
<td>
[% group.bug_count FILTER html %]
</td>
<tr>
[% ELSIF group.group.is_active %]
<tr>
<td>
[% group.group.name FILTER html %]
</td>
<td>
<input type=checkbox value=1 name=entry_[% group.id %]
[% " checked=\"checked\"" IF group.entry %]>
</td>
<td>
<select name="membercontrol_[% group.id %]">
<option value=[% constants.CONTROLMAPNA %]
[% " selected=\"selected\""
IF group.membercontrol == constants.CONTROLMAPNA %]
>NA
</option>
<option value=[% constants.CONTROLMAPSHOWN %]
[% " selected=\"selected\""
IF group.membercontrol == constants.CONTROLMAPSHOWN %]
>Shown
</option>
<option value=[% constants.CONTROLMAPDEFAULT %]
[% " selected=\"selected\""
IF group.membercontrol == constants.CONTROLMAPDEFAULT %]
>Default
</option>
<option value=[% constants.CONTROLMAPMANDATORY %]
[% " selected=\"selected\""
IF group.membercontrol == constants.CONTROLMAPMANDATORY %]
>Mandatory
</option>
</select>
</td>
<td>
<select name="othercontrol_[% group.id %]">
<option value=[% constants.CONTROLMAPNA %]
[% " selected=\"selected\""
IF group.othercontrol == constants.CONTROLMAPNA %]
>NA
</option>
<option value=[% constants.CONTROLMAPSHOWN %]
[% " selected=\"selected\""
IF group.othercontrol == constants.CONTROLMAPSHOWN %]
>Shown
</option>
<option value=[% constants.CONTROLMAPDEFAULT %]
[% " selected=\"selected\""
IF group.othercontrol == constants.CONTROLMAPDEFAULT %]
>Default
</option>
<option value=[% constants.CONTROLMAPMANDATORY %]
[% " selected=\"selected\""
IF group.othercontrol == constants.CONTROLMAPMANDATORY %]
>Mandatory
</option>
</select>
</td>
<td>
<input type=checkbox value=1 name=canedit_[% group.id %]
[% " checked=\"checked\"" IF group.canedit %]>
</td>
<td>
<input type=checkbox value=1 name=editcomponents_[% group.id %]
[% " checked=\"checked\"" IF group.editcomponents %]>
</td>
<td>
<input type=checkbox value=1 name=canconfirm_[% group.id %]
[% " checked=\"checked\"" IF group.canconfirm %]>
</td>
<td>
<input type=checkbox value=1 name=editbugs_[% group.id %]
[% " checked=\"checked\"" IF group.editbugs %]>
</td>
<td>
[% group.bug_count || 0 FILTER html %]
</td>
<table id="form" cellspacing="0" cellpadding="4" border="1">
<tr bgcolor="#6666ff">
<th>Group</th>
<th>Entry</th>
<th>MemberControl</th>
<th>OtherControl</th>
<th>Canedit</th>
<th>editcomponents</th>
<th>canconfirm</th>
<th>editbugs</th>
<th>[% terms.Bugs %]</th>
</tr>
[% END %]
[% END %]
</table>
<br>
<input type=submit name="submit" value="submit">
<br>
</form>
[% END %]
[% IF !group.group.isactive %]
<tr bgcolor="#bbbbbb">
<td>[% group.group.name FILTER html %]</td>
<td align="center" colspan="7">Disabled</td>
<td>[% group.bug_count FILTER html %]</td>
</tr>
[% ELSE %]
<tr>
<td>[% group.group.name FILTER html %]</td>
<td>
<input type=checkbox value=1 name=entry_[% group.id %]
[% " checked='checked'" IF group.entry %]>
</td>
<td>
<select name="membercontrol_[% group.id %]">
<option value=[% constants.CONTROLMAPNA %]
[% " selected='selected'" IF group.membercontrol == constants.CONTROLMAPNA %]
>NA
</option>
<option value=[% constants.CONTROLMAPSHOWN %]
[% " selected='selected'" IF group.membercontrol == constants.CONTROLMAPSHOWN %]
>Shown
</option>
<option value=[% constants.CONTROLMAPDEFAULT %]
[% " selected='selected'" IF group.membercontrol == constants.CONTROLMAPDEFAULT %]
>Default
</option>
<option value=[% constants.CONTROLMAPMANDATORY %]
[% " selected='selected'" IF group.membercontrol == constants.CONTROLMAPMANDATORY %]
>Mandatory
</option>
</select>
</td>
<td>
<select name="othercontrol_[% group.id %]">
<option value=[% constants.CONTROLMAPNA %]
[% " selected='selected'" IF group.othercontrol == constants.CONTROLMAPNA %]
>NA
</option>
<option value=[% constants.CONTROLMAPSHOWN %]
[% " selected='selected'" IF group.othercontrol == constants.CONTROLMAPSHOWN %]
>Shown
</option>
<option value=[% constants.CONTROLMAPDEFAULT %]
[% " selected='selected'" IF group.othercontrol == constants.CONTROLMAPDEFAULT %]
>Default
</option>
<option value=[% constants.CONTROLMAPMANDATORY %]
[% " selected='selected'" IF group.othercontrol == constants.CONTROLMAPMANDATORY %]
>Mandatory
</option>
</select>
</td>
<td>
<input type=checkbox value=1 name=canedit_[% group.id %]
[% " checked='checked'" IF group.canedit %]>
</td>
<td>
<input type=checkbox value=1 name=editcomponents_[% group.id %]
[% " checked='checked'" IF group.editcomponents %]>
</td>
<td>
<input type=checkbox value=1 name=canconfirm_[% group.id %]
[% " checked='checked'" IF group.canconfirm %]>
</td>
<td>
<input type=checkbox value=1 name=editbugs_[% group.id %]
[% " checked='checked'" IF group.editbugs %]>
</td>
<td>[% group.bug_count || 0 FILTER html %]</td>
</tr>
[% END %]
[% END %]
[% IF display_headers %]
<p>No groups are available for products.
[% IF user.in_group('creategroups') %]
<a href="editgroups.cgi?action=add">Create a new group</a>
[% END %]
</p>
[% ELSE %]
</table>
<br>
<input type=submit name="submit" value="submit">
</form>
[% END %]
<p>
These settings control the relationship of the groups to this
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment