[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5182] branches/1.3/UI/Contact/contact.html



Revision: 5182
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5182&view=rev
Author:   ehuelsmann
Date:     2012-11-10 13:10:24 +0000 (Sat, 10 Nov 2012)
Log Message:
-----------
Hide drop downs for taxform, business type and price group
instead of showing them empty; less busy interface when possible.

Modified Paths:
--------------
    branches/1.3/UI/Contact/contact.html

Modified: branches/1.3/UI/Contact/contact.html
===================================================================
--- branches/1.3/UI/Contact/contact.html	2012-11-10 10:13:26 UTC (rev 5181)
+++ branches/1.3/UI/Contact/contact.html	2012-11-10 13:10:24 UTC (rev 5182)
@@ -560,7 +560,8 @@
            </td>
         </tr>
         <tr id="business-threshold-row">
-           <td> <?lsmb business_types.unshift({});
+           <td> <?lsmb IF business_types.size > 0 ?>
+                <?lsmb business_types.unshift({});
                        INCLUDE select element_data = {
 			name = "business_id"
 			options = business_types
@@ -569,6 +570,7 @@
 			value_attr = "id"
 			label = text('Business Type') #'
 			} ?> 
+                <?lsmb END ?>
 	  </td>
           <td> <?lsmb INCLUDE input element_data = {
 			name = "threshold"
@@ -578,7 +580,8 @@
 			label = text('Threshold')
 			class = "numeric"
                } ?>
-          <td><?lsmb pricegroups.unshift({});
+          <td> <?lsmb IF pricegroups.size > 0 ?>
+               <?lsmb pricegroups.unshift({});
                 INCLUDE select element_data = {
                      default_values = [pricegroup_id],
                                name = 'pricegroup_id'
@@ -586,20 +589,24 @@
                               label = text('Pricegroup')
                          value_attr = 'id'
                           text_attr = 'pricegroup'
-                } ?></td>
+                } ?>
+               <?lsmb END ?></td>
 	</tr>
 
 	<tr id="taxform-threshold-row">
-        <?lsmb taxform_list.unshift({}) ?>
+
 	
-	 <td> <?lsmb INCLUDE select element_data = {
+	 <td><?lsmb IF taxform_list.size > 0 ?>
+             <?lsmb taxform_list.unshift({});
+                    INCLUDE select element_data = {
 			name = "taxform_id"
 			options = taxform_list
 			default_values = [taxform_id]
 			text_attr = "form_name"
 			value_attr = "id"
 			label = text('Taxforms') 
-			} ?> 
+			} ?>
+             <?lsmb END ?>
 	  </td>
         <td> <?lsmb INCLUDE select element_data = {
 		label = text("Language")

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.