]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 266143: If Param("usevotes") is off, editing a product should mention it - Patch...
authorlpsolit%gmail.com <>
Thu, 27 Oct 2005 00:14:31 +0000 (00:14 +0000)
committerlpsolit%gmail.com <>
Thu, 27 Oct 2005 00:14:31 +0000 (00:14 +0000)
skins/standard/admin.css
template/en/default/admin/products/create.html.tmpl
template/en/default/admin/products/edit-common.html.tmpl
template/en/default/admin/products/edit.html.tmpl

index ef02f69d9ad1d728ae8e62c66226721c6e6a4a9b..48bf3fed8035df22844cddba6606e1ea130e5cb5 100644 (file)
@@ -34,3 +34,7 @@ p.areyoureallyreallysure {
     font-size: 120%;
     font-weight: bold;
 }
+
+tr.param_disabled {
+    background-color: lightgrey;
+}
index dc60299b8d5c1a54d24fdcd8cbdf4768a9aa4361..fd1ed34cc89a13950ffbc0443095cf32b9408c42 100644 (file)
@@ -25,6 +25,7 @@
 
 [% PROCESS global/header.html.tmpl
   title = title
+  style_urls = ['skins/standard/admin.css']
 %]
 
 [% DEFAULT
index f6b0d53ce03b1d8f164671f718b715b938c61fa0..2bfabcbf7beedf3a5b1dcff57442b80a8e5e39ed 100644 (file)
              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
index 089ce4c8db54d745be5b111881878efccbd3eaf2..4e8cc7b1955272bb70efc8bb2cc04d7137e56e1c 100644 (file)
@@ -31,6 +31,7 @@
 
 [% PROCESS global/header.html.tmpl
   title = title
+  style_urls = ['skins/standard/admin.css']
 %]
 
 <form method="post" action="editproducts.cgi">