cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/storage form-macros
Date: 6 Oct 2006 22:59:26 -0000	[thread overview]
Message-ID: <20061006225926.23277.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic at sourceware.org	2006-10-06 22:59:26

Modified files:
	luci/storage   : form-macros 

Log message:
	luci storage: display allowed size range

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/form-macros.diff?cvsroot=cluster&r1=1.6&r2=1.7

--- conga/luci/storage/form-macros	2006/10/06 22:08:13	1.6
+++ conga/luci/storage/form-macros	2006/10/06 22:59:26	1.7
@@ -189,10 +189,6 @@
        </td>
        <td>
         <select name="preferred_size_units" onchange="this.form.submit()">
-         <option value="bytes" 
-                 tal:attributes="selected python:preferred_size_units == 'bytes'">Bytes</option>
-         <option value="KB" 
-                 tal:attributes="selected python:preferred_size_units == 'KB'">KB - KiloBytes</option>
          <option value="MB" 
                  tal:attributes="selected python:preferred_size_units == 'MB'">MB - MegaBytes</option>
          <option value="GB" 
@@ -827,13 +823,19 @@
           
           
           
-          <input tal:condition="python:prop_type == 'int' and prop_units != 'bytes'"
-                 tal:attributes="name   p; 
-                                 type   string:text; 
-                                 value  prop/value;
-                                 onblur python:'validate_int(this, 2, ' + str(prop['validation']['min']) + ', ' + str(prop['validation']['max']) + ', ' + str(prop['validation']['step']) + ', \'' + prop_units + '\', \'' + form_submit_button_id + '\')'"
-                 onkeypress="return validate_int_keypress(this, event, 2)"/>
-          <span tal:condition="python:prop_type == 'int' and prop_units == 'bytes'">
+          <span tal:omit-tag=""
+                tal:condition="python:prop_type == 'int' and prop_units != 'bytes'">
+           <input tal:attributes="name   p; 
+                                  type   string:text; 
+                                  size   string:15; 
+                                  value  prop/value;
+                                  onblur python:'validate_int(this, 2, ' + str(prop['validation']['min']) + ', ' + str(prop['validation']['max']) + ', ' + str(prop['validation']['step']) + ', \'' + prop_units + '\', \'' + form_submit_button_id + '\')'"
+                  onkeypress="return validate_int_keypress(this, event, 2)"/>
+           (<span tal:replace="prop/validation/min"/> - <span tal:replace="prop/validation/max"/>)
+           <span tal:replace="prop_units"/>
+          </span>
+          <span tal:omit-tag=""
+                tal:condition="python:prop_type == 'int' and prop_units == 'bytes'">
            <span tal:define="bytes  prop/value;
                              dummy  python:here.bytes_to_value_prefunits(bytes);
                              value  python:dummy[0];
@@ -841,11 +843,13 @@
                              minim  python:here.convert_bytes(prop['validation']['min'], units);
                              maxim  python:here.convert_bytes(prop['validation']['max'], units);
                              step   python:here.convert_bytes(prop['validation']['step'], units)">
-            <input tal:attributes="name   p; 
-                                   type   string:text; 
+            <input tal:attributes="name   p;
+                                   type   string:text;
+                                   size   string:15; 
                                    value  value;
                                    onblur python:'validate_float(this, 2, ' + str(minim) + ', ' + str(maxim) + ', ' + str(step) + ', \'' + units + '\', \'' + form_submit_button_id + '\')'"
                    onkeypress="return validate_float_keypress(this, event, 2)"/>
+            (<span tal:replace="minim"/> - <span tal:replace="maxim"/>)
             <span tal:replace="units"/>
            </span>
           </span>



             reply	other threads:[~2006-10-06 22:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-06 22:59 kupcevic [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-16 20:57 [Cluster-devel] conga/luci/storage form-macros kupcevic
2006-10-25 16:03 kupcevic
2006-10-25 16:26 kupcevic
2007-08-08 22:35 rmccabe
2007-10-20  1:36 rmccabe
2007-10-22 19:30 rmccabe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061006225926.23277.qmail@sourceware.org \
    --to=kupcevic@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).