cosmetic
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 01:46:21 +0000 (01:46 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 01:46:21 +0000 (01:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2489 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bill_details.xul

index ecc88e1..21b43e8 100644 (file)
@@ -47,6 +47,7 @@
                                var mbts_id = g.cgi.param('mbts_id');
                                var session = g.cgi.param('session');
 
+                               var rows = document.getElementById('g_rows');
 
                                var mb_list = g.network.request(
                                        api.fm_mb_retrieve_via_mbts_id.app,
                                        [ session, mbts_id ]
                                );
 
-                               var rows = document.getElementById('bill_rows');
                                for (var i = 0; i < mb_list.length; i++) {
 
                                        var row = document.createElement('row');
-                                       rows.appendChild(row);
+                                       rows.insertBefore( row, document.getElementById('ref0') );
+
+                                               var c0 = document.createElement('spacer');
+                                               row.appendChild(c0);
 
                                                var c1 = document.createElement('label');
                                                row.appendChild(c1);
                                        [ session, mbts_id ]
                                );
 
-                               var rows = document.getElementById('pay_rows');
                                for (var i = 0; i < mp_list.length; i++) {
 
                                        var row = document.createElement('row');
-                                       rows.appendChild(row);
+                                       rows.insertBefore( row, document.getElementById('ref1') );
+
+                                               var c0 = document.createElement('spacer');
+                                               row.appendChild(c0);
 
                                                var c1 = document.createElement('label');
                                                row.appendChild(c1);
        <vbox flex="1" class="my_overflow">
                <groupbox orient="vertical" flex="1">
                        <caption label="Full Details"/>
-                       <grid>
-                               <columns> <column /> <column /> </columns>
-                               <rows>
+                       <grid flex="1">
+                               <columns> <column flex="0" /><column flex="1" /> <column flex="1" /> <column flex="1" /> <column flex="1" /> </columns>
+                               <rows id="g_rows">
                                        <row>
                                                <label value="Bills" class="header" style="color: red;" />
-                                               <grid>
-                                                       <columns> <column /> <column /> <column /> <column /> </columns>
-                                                       <rows id="bill_rows">
-                                                               <row>
-                                                                       <label value="Voided" class="header" />
-                                                                       <label value="When" class="header" />
-                                                                       <label value="Type" class="header" />
-                                                                       <label value="Amount" class="header" />
-                                                                       <label value="Note" class="header" />
-                                                               </row>
-                                                       </rows>
-                                               </grid>
                                        </row>
                                        <row>
+                                               <spacer />
+                                               <label value="Voided" class="header" />
+                                               <label value="When" class="header" />
+                                               <label value="Type" class="header" />
+                                               <label value="Amount" class="header" />
+                                               <label value="Note" class="header" />
+                                       </row>
+                                       <row id="ref0">
                                                <label value="Payments" class="header" style="color: green;" />
-                                               <grid>
-                                                       <columns> <column /> <column /> <column /> <column /> </columns>
-                                                       <rows id="pay_rows">
-                                                               <row>
-                                                                       <label value="Voided" class="header" />
-                                                                       <label value="When" class="header" />
-                                                                       <label value="Type" class="header" />
-                                                                       <label value="Amount" class="header" />
-                                                                       <label value="Note" class="header" />
-                                                               </row>
-                                                       </rows>
-                                               </grid>
                                        </row>
+                                       <row>
+                                               <spacer />
+                                               <label value="Voided" class="header" />
+                                               <label value="When" class="header" />
+                                               <label value="Type" class="header" />
+                                               <label value="Amount" class="header" />
+                                               <label value="Note" class="header" />
+                                       </row>
+                                       <row id="ref1" />
                                </rows>
                        </grid>
                </groupbox>