Commit 05ec759c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 266143: If Param("usevotes") is off, editing a product should mention it -…

Bug 266143: If Param("usevotes") is off, editing a product should mention it - Patch by GavinS <bugzilla@chimpychompy.org> r=LpSolit a=myk
parent 7ef9d5bb
......@@ -34,3 +34,7 @@ p.areyoureallyreallysure {
font-size: 120%;
font-weight: bold;
}
tr.param_disabled {
background-color: lightgrey;
}
......@@ -25,6 +25,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
%]
[% DEFAULT
......
......@@ -64,13 +64,22 @@
checked="checked"[% END %]>
</td>
</tr>
<tr>
[% IF !Param('usevotes') %]
<tr class="param_disabled">
<td colspan="2"
style="font-family: arial; font-style: italic; font-size: 0.7em; text-align: center;">
The 'usevotes' parameter is currently 'off'. These voting
settings will take effect when the parameter is next enabled.</td>
</tr>
[% END %]
<tr [% IF !Param('usevotes') %]class="param_disabled" [% END %]>
<th align="right">Maximum votes per person:</th>
<td><input size="5" maxlength="5" name="votesperuser"
value="[% product.votesperuser FILTER html %]">
</td>
</tr>
<tr>
<tr [% IF !Param('usevotes') %]class="param_disabled" [% END %]>
<th align="right">
Maximum votes a person can put on a single [% terms.bug %]:
</th>
......@@ -78,7 +87,7 @@
value="[% product.maxvotesperbug FILTER html %]">
</td>
</tr>
<tr>
<tr [% IF !Param('usevotes') %]class="param_disabled" [% END %]>
<th align="right">
Number of votes [% terms.abug %] in this product needs to
automatically get out of the
......
......@@ -31,6 +31,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
%]
<form method="post" action="editproducts.cgi">
......
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