Layout improvements
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 10 Sep 2010 08:47:06 +0000 (08:47 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 10 Sep 2010 08:47:06 +0000 (08:47 +0000)
CHANGELOG.txt
gl/inquiry/gl_account_inquiry.php
includes/ui/contacts_view.inc
includes/ui/ui_view.inc
manufacturing/manage/bom_edit.php

index 3fc9747f5f1a8622e5d0225e8fe225918797b6a2..e09b4252ebcba50332a5c8675b5260fe56ffdb84 100644 (file)
@@ -19,6 +19,13 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+10-Sep-2010 Joe Hunt
+! Layout improvements
+$ /gl/inquiry/gl_account_inquiry.php
+  /includes/ui/contacts_view.inc
+  /includes/ui/ui_view.inc
+  /manufacturing/manage/bom_edit.php
+
 09-Sep-2010 Janusz Dobrowolski
 # Missing focus on sales entry page
 $ /sales/includes/ui/sales_order_ui.inc
index 8d414a5411d40d1195b648472d50b5921e00bd0b..6c66b08d6f1ce3e972693cbc85d08847149c2471 100644 (file)
@@ -79,8 +79,8 @@ function gl_inquiry_controls()
        if ($dim > 1)
                dimensions_list_cells(_("Dimension")." 2:", 'Dimension2', null, true, " ", false, 2);
 
-       small_amount_cells(_("Amount min:"), 'amount_min', null);
-       small_amount_cells(_("Amount max:"), 'amount_max', null);
+       small_amount_cells(_("Amount min:"), 'amount_min', null, " ");
+       small_amount_cells(_("Amount max:"), 'amount_max', null, " ");
        submit_cells('Show',_("Show"),'','', 'default');
        end_row();
        end_table();
@@ -159,7 +159,7 @@ function show_results()
            $bfw = get_gl_balance_from_to($begin, $_POST['TransFromDate'], $_POST["account"], $_POST['Dimension'], $_POST['Dimension2']);
        start_row("class='inquirybg'");
        label_cell("<b>"._("Opening Balance")." - ".$_POST['TransFromDate']."</b>", "colspan=$colspan");
-       display_debit_or_credit_cells($bfw);
+       display_debit_or_credit_cells($bfw, true);
        label_cell("");
        label_cell("");
        end_row();
@@ -208,7 +208,7 @@ function show_results()
        if ($show_balances) {
        start_row("class='inquirybg'");
        label_cell("<b>" . _("Ending Balance") ." - ".$_POST['TransToDate']. "</b>", "colspan=$colspan");
-       display_debit_or_credit_cells($running_total);
+       display_debit_or_credit_cells($running_total, true);
        label_cell("");
        label_cell("");
        end_row();
index 9ad82aec4c0224e5f9bacde9522b7f4ec7fc0fd3..c2ff889df0acb124c5416dac9559d1ee548df58d 100644 (file)
@@ -73,7 +73,7 @@ class contacts extends simple_crud {
        {
                br();
 
-               start_outer_table(TABLESTYLE, "width=80%");
+               start_outer_table(TABLESTYLE);
 
                table_section(1);
                table_section_title(_("Contact data"));
@@ -94,6 +94,7 @@ class contacts extends simple_crud {
                email_row(_("E-mail:"), 'email', @$this->data['email'], 35, 55);
 
                table_section(2);
+               table_section_title("&nbsp;");
                textarea_row(_("Address:"), 'address', @$this->data['address'], 30, 4);
                languages_list_row( _("Document Language:"), 'lang', @$this->data['lang'], _("Customer default"));
 
index a798586e63f3c3f4b4ec0ceff04eabe5f4cac079..0bc4ac06d794b6ef0a5bc3d818838a691c631cb6 100644 (file)
@@ -368,18 +368,18 @@ function view_stock_status_cell($stock_id, $description=null)
 
 //--------------------------------------------------------------------------------------
 
-function display_debit_or_credit_cells($value)
+function display_debit_or_credit_cells($value, $bold=false)
 {
        $value = round2($value, user_price_dec());
        if ($value >= 0)
        {
-               amount_cell($value);
+               amount_cell($value, $bold);
                label_cell("");
        }
        elseif ($value < 0)
        {
                label_cell("");
-               amount_cell(abs($value));
+               amount_cell(abs($value), $bold);
        }
 }
 
index 1593ee28db29f7219653a867625298c2e572526d..9734dfa4d23c0af24f63d58493214569d8d5db9c 100644 (file)
@@ -166,7 +166,9 @@ start_form();
 
 start_form(false, true);
 start_table(TABLESTYLE_NOBORDER);
-stock_manufactured_items_list_row(_("Select a manufacturable item:"), 'stock_id', null, false, true);
+start_row();
+stock_manufactured_items_list_cells(_("Select a manufacturable item:"), 'stock_id', null, false, true);
+end_row();
 if (list_updated('stock_id'))
        $Ajax->activate('_page_body');
 end_table();
@@ -206,7 +208,7 @@ start_form();
        else
        {
                start_row();
-               label_cell(_("Component:"));
+               label_cell(_("Component:"), "class='label'");
 
                echo "<td>";
                echo stock_component_items_list('component', $selected_parent, null, false, true);