order setting tab

Sebastien Robin <[email protected]> Fri, 28 Jan 2005 15:20:33 +0100
Newsgroups gmane.comp.web.zope.formulator.devel
Message-ID <[email protected]>
--Boundary-00=_yok+ByzIk8TLS81
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

Each time I show the order settings of a Form into the ZMI, people love it 
except one thing : they don't like how long it is to move a field from 
the bottom to the top.

Indeed, actually we need to :
- click the checkbox,
- move the mouse
- click MoveUp
- move the mouse
- click the checkbox,
- move the mouse
- click MoveUp
... and so on.


So... since I'm a bit lasy :) , I have updated a little the formOrder.dtml 
page, so the checkbox is still on, so I just need to click 10 times on 
MoveUp, and this is so great...

I hope you will like it. You will find with this email my patch.

Seb.


-- 
Sebastien Robin, Nexedi Technical Director
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Free / Open Source ERP Software for small and medium companies
http://www.erp5.org
Storever: OpenBrick, WiFi infrastructure, notebooks and servers
http://www.storever.com

--Boundary-00=_yok+ByzIk8TLS81
Content-Type: text/x-diff; charset="iso-8859-1";
	name="formOrder.dtml-formulator-1.8.0-checkbox.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="formOrder.dtml-formulator-1.8.0-checkbox.diff"

diff -ru /home/seb/download/Formulator/dtml/formOrder.dtml Formulator/dtml/formOrder.dtml
--- /home/seb/download/Formulator/dtml/formOrder.dtml	2004-02-18 20:19:18.000000000 +0100
+++ Formulator/dtml/formOrder.dtml	2005-01-28 15:02:26.085080640 +0100
@@ -31,7 +31,11 @@
     <dtml-let field=sequence-item field_id="field.id">
       <tr><td height="25">
           <div class="list-item">
-          <input type="checkbox" name="&dtml-field_id;">&nbsp;<a href="&dtml-field_id;/manage_main"><img src="&dtml-BASEPATH1;/&dtml-icon;" alt="&dtml-meta_type;" title="&dtml-meta_type;" border="0"></a>&nbsp;<a href="&dtml-field_id;/manage_main"><dtml-var field_id></a>
+           <dtml-if expr="REQUEST.has_key(field_id)"><input type="checkbox" name="&dtml-field_id;" checked="checked">
+           <dtml-else><input type="checkbox" name="&dtml-field_id;">
+           </dtml-if>
+            &nbsp;<a href="&dtml-field_id;/manage_main"><img src="&dtml-BASEPATH1;/&dtml-icon;" alt="&dtml-meta_type;" title="&dtml-meta_type;" border="0"></a>&nbsp;<a href="&dtml-field_id;/manage_main"><dtml-var field_id></a>
+
 	  </div>
 	  </td></tr>
     </dtml-let>

--Boundary-00=_yok+ByzIk8TLS81
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
formulator-dev mailing list
formulator-dev-IAPFreCvJWM6s/[email protected]
http://lists.infrae.com/mailman/listinfo/formulator-dev

--Boundary-00=_yok+ByzIk8TLS81--