From bb0989f6bddd1856943b495eb16673e6a75ef57a Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Mon, 18 Apr 2016 18:31:40 +0100 Subject: [PATCH] Adjust form fields size to give more space and fit better dialog form, fixed few details --- application/views/customers/form.php | 6 +- application/views/employees/form.php | 10 +- application/views/giftcards/form.php | 10 +- application/views/item_kits/form.php | 10 +- application/views/items/form.php | 26 +-- application/views/items/form_bulk.php | 24 +-- .../views/items/form_count_details.php | 12 +- application/views/items/form_inventory.php | 16 +- application/views/partial/stock_locations.php | 3 +- application/views/people/form_basic_info.php | 26 +-- application/views/receivings/form.php | 94 +++++----- application/views/sales/form.php | 170 +++++++++--------- application/views/suppliers/form.php | 6 +- 13 files changed, 204 insertions(+), 209 deletions(-) diff --git a/application/views/customers/form.php b/application/views/customers/form.php index 870213bdb..463ae7815 100644 --- a/application/views/customers/form.php +++ b/application/views/customers/form.php @@ -8,7 +8,7 @@
lang->line('customers_company_name'), 'company_name', array('class' => 'control-label col-xs-3')); ?> -
+
'company_name', 'class'=>'form-control input-sm', @@ -19,7 +19,7 @@
lang->line('customers_account_number'), 'account_number', array('class' => 'control-label col-xs-3')); ?> -
+
'account_number', 'id'=>'account_number', @@ -31,7 +31,7 @@
lang->line('customers_total'), 'total', array('class' => 'control-label col-xs-3')); ?> -
+
config->item('currency_side')): ?> config->item('currency_symbol'); ?> diff --git a/application/views/employees/form.php b/application/views/employees/form.php index 3529b56b4..2e7eba723 100644 --- a/application/views/employees/form.php +++ b/application/views/employees/form.php @@ -26,7 +26,7 @@
lang->line('employees_username'), 'username', array('class'=>'required control-label col-xs-3')); ?> -
+
person_id == "" ? array('class'=>'required') : array(); ?>
- lang->line('employees_password'), 'password', array_merge($password_label_attributes, array('class'=>'col-xs-3 control-label'))); ?> -
+ lang->line('employees_password'), 'password', array_merge($password_label_attributes, array('class'=>'control-label col-xs-3'))); ?> +
- lang->line('employees_repeat_password'), 'repeat_password', array_merge($password_label_attributes, array('class'=>'col-xs-3 control-label'))); ?> -
+ lang->line('employees_repeat_password'), 'repeat_password', array_merge($password_label_attributes, array('class'=>'control-label col-xs-3'))); ?> +
lang->line('giftcards_person_id'), 'name', array('class'=>'control-label col-xs-3')); ?> -
+
'person_name', 'id'=>'person_name', @@ -19,7 +19,7 @@
lang->line('giftcards_giftcard_number'), 'name', array('class'=>'required control-label col-xs-3')); ?> -
+
'giftcard_number', 'id'=>'giftcard_number', @@ -31,10 +31,10 @@
lang->line('giftcards_card_value'), 'name', array('class'=>'required control-label col-xs-3')); ?> -
+
config->item('currency_side')): ?> - config->item('currency_symbol'); ?> + config->item('currency_symbol'); ?> 'value', @@ -43,7 +43,7 @@ 'value'=>to_currency_no_money($giftcard_info->value)) );?> config->item('currency_side')): ?> - config->item('currency_symbol'); ?> + config->item('currency_symbol'); ?>
diff --git a/application/views/item_kits/form.php b/application/views/item_kits/form.php index 7b210e51a..5fcb3a43d 100644 --- a/application/views/item_kits/form.php +++ b/application/views/item_kits/form.php @@ -3,10 +3,10 @@
    item_kit_id, array('id'=>'item_kit_form', 'class'=>'form-horizontal')); ?> -
    +
    - lang->line('item_kits_name'), 'name', array('class'=>'control-label col-xs-3 required')); ?> -
    + lang->line('item_kits_name'), 'name', array('class'=>'required control-label col-xs-3')); ?> +
    'name', 'id'=>'name', @@ -18,7 +18,7 @@
    lang->line('item_kits_description'), 'description', array('class'=>'control-label col-xs-3')); ?> -
    +
    'description', 'id'=>'description', @@ -30,7 +30,7 @@
    lang->line('item_kits_add_item'), 'item', array('class'=>'control-label col-xs-3')); ?> -
    +
    'item', 'id'=>'item', diff --git a/application/views/items/form.php b/application/views/items/form.php index bb46e1889..9d7db0ef9 100644 --- a/application/views/items/form.php +++ b/application/views/items/form.php @@ -6,7 +6,7 @@
    lang->line('items_item_number'), 'item_number', array('class'=>'control-label col-xs-3')); ?> -
    +
    lang->line('items_name'), 'name', array('class'=>'required control-label col-xs-3')); ?> -
    +
    'name', 'id'=>'name', @@ -33,7 +33,7 @@
    lang->line('items_category'), 'category', array('class'=>'required control-label col-xs-3')); ?> -
    +
    lang->line('items_supplier'), 'supplier', array('class'=>'control-label col-xs-3')); ?> -
    +
    'form-control')); ?>
    @@ -95,7 +95,7 @@
    lang->line('items_tax_1'), 'tax_percent_1', array('class'=>'control-label col-xs-3')); ?> -
    +
    'tax_names[]', 'id'=>'tax_name_1', @@ -103,7 +103,7 @@ 'value'=>isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->config->item('default_tax_1_name')) );?>
    -
    +
    'tax_percents[]', @@ -118,7 +118,7 @@
    lang->line('items_tax_2'), 'tax_percent_2', array('class'=>'control-label col-xs-3')); ?> -
    +
    'tax_names[]', 'id'=>'tax_name_2', @@ -126,7 +126,7 @@ 'value'=>isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : $this->config->item('default_tax_2_name')) );?>
    -
    +
    'tax_percents[]', @@ -145,7 +145,7 @@ ?>
    lang->line('items_quantity').' '.$location_detail['location_name'], 'quantity_' . $key, array('class'=>'required control-label col-xs-3')); ?> -
    +
    'quantity_' . $key, 'id'=>'quantity_' . $key, @@ -160,7 +160,7 @@
    lang->line('items_receiving_quantity'), 'receiving_quantity', array('class'=>'required control-label col-xs-3')); ?> -
    +
    'receiving_quantity', 'id'=>'receiving_quantity', @@ -172,7 +172,7 @@
    lang->line('items_reorder_level'), 'reorder_level', array('class'=>'required control-label col-xs-3')); ?> -
    +
    'reorder_level', 'id'=>'reorder_level', @@ -184,7 +184,7 @@
    lang->line('items_description'), 'description', array('class'=>'control-label col-xs-3')); ?> -
    +
    'description', 'id'=>'description', @@ -263,7 +263,7 @@ ?>
    config->item('custom'.$i.'_name'), 'custom'.$i, array('class'=>'control-label col-xs-3')); ?> -
    +
    'custom'.$i, 'id'=>'custom'.$i, diff --git a/application/views/items/form_bulk.php b/application/views/items/form_bulk.php index ab6e3c177..ba97abe9a 100644 --- a/application/views/items/form_bulk.php +++ b/application/views/items/form_bulk.php @@ -3,10 +3,10 @@
      'item_form', 'class'=>'form-horizontal')); ?> -
      +
      lang->line('items_name'), 'name', array('class'=>'control-label col-xs-3')); ?> -
      +
      'name', 'id'=>'name', @@ -17,7 +17,7 @@
      lang->line('items_category'), 'category', array('class'=>'control-label col-xs-3')); ?> -
      +
      lang->line('items_supplier'), 'supplier', array('class'=>'control-label col-xs-3')); ?> -
      +
      'form-control'));?>
      @@ -76,7 +76,7 @@
      lang->line('items_tax_1'), 'tax_percent_1', array('class'=>'control-label col-xs-3')); ?> -
      +
      'tax_names[]', 'id'=>'tax_name_1', @@ -84,7 +84,7 @@ 'value'=>$this->config->item('default_tax_1_name')) );?>
      -
      +
      'tax_percents[]', @@ -99,7 +99,7 @@
      lang->line('items_tax_2'), 'tax_percent_2', array('class'=>'control-label col-xs-3')); ?> -
      +
      'tax_names[]', 'id'=>'tax_name_2', @@ -107,7 +107,7 @@ 'value'=>$this->config->item('default_tax_2_name')) );?>
      -
      +
      'tax_percents[]', @@ -122,7 +122,7 @@
      lang->line('items_reorder_level'), 'reorder_level', array('class'=>'control-label col-xs-3')); ?> -
      +
      'reorder_level', 'id'=>'reorder_level', @@ -133,7 +133,7 @@
      lang->line('items_description'), 'description', array('class'=>'control-label col-xs-3')); ?> -
      +
      'description', 'id'=>'description', @@ -144,14 +144,14 @@
      lang->line('items_allow_alt_description'), 'allow_alt_description', array('class'=>'control-label col-xs-3')); ?> -
      +
      'form-control'));?>
      lang->line('items_is_serialized'), 'is_serialized', array('class'=>'control-label col-xs-3')); ?> -
      +
      'form-control'));?>
      diff --git a/application/views/items/form_count_details.php b/application/views/items/form_count_details.php index a81c7e26a..197c75c02 100644 --- a/application/views/items/form_count_details.php +++ b/application/views/items/form_count_details.php @@ -1,8 +1,8 @@ item_id, array('id'=>'item_form', 'class'=>'form-horizontal')); ?> -
      +
      lang->line('items_item_number'), 'name', array('class'=>'control-label col-xs-3')); ?> -
      +
      lang->line('items_name'), 'name', array('class'=>'control-label col-xs-3')); ?> -
      +
      'name', 'id'=>'name', @@ -31,7 +31,7 @@
      lang->line('items_category'), 'category', array('class'=>'control-label col-xs-3')); ?> -
      +
      lang->line('items_stock_location'), 'stock_location', array('class'=>'control-label col-xs-3')); ?> -
      +
      'display_stock(this.value);', 'class'=>'form-control')); ?>
      lang->line('items_current_quantity'), 'quantity', array('class'=>'control-label col-xs-3')); ?> -
      +
      'quantity', 'id'=>'quantity', diff --git a/application/views/items/form_inventory.php b/application/views/items/form_inventory.php index 908676f3b..91074367e 100644 --- a/application/views/items/form_inventory.php +++ b/application/views/items/form_inventory.php @@ -3,10 +3,10 @@
        item_id, array('id'=>'item_form', 'class'=>'form-horizontal')); ?> -
        +
        lang->line('items_item_number'), 'name', array('class'=>'control-label col-xs-3')); ?> -
        +
        lang->line('items_name'), 'name', array('class'=>'control-label col-xs-3')); ?> -
        +
        'name', 'id'=>'name', @@ -35,7 +35,7 @@
        lang->line('items_category'), 'category', array('class'=>'control-label col-xs-3')); ?> -
        +
        lang->line('items_stock_location'), 'stock_location', array('class'=>'control-label col-xs-3')); ?> -
        +
        'fill_quantity(this.value)', 'class'=>'form-control')); ?>
        lang->line('items_current_quantity'), 'quantity', array('class'=>'control-label col-xs-3')); ?> -
        +
        'quantity', 'id'=>'quantity', @@ -71,7 +71,7 @@
        lang->line('items_add_minus'), 'quantity', array('class'=>'required control-label col-xs-3')); ?> -
        +
        'newquantity', 'id'=>'newquantity', @@ -82,7 +82,7 @@
        lang->line('items_inventory_comments'), 'description', array('class'=>'control-label col-xs-3')); ?> -
        +
        'trans_comment', 'id'=>'trans_comment', diff --git a/application/views/partial/stock_locations.php b/application/views/partial/stock_locations.php index 1a561eeea..3e5042375 100644 --- a/application/views/partial/stock_locations.php +++ b/application/views/partial/stock_locations.php @@ -5,9 +5,10 @@ foreach($stock_locations as $location=>$location_data) { $location_id = $location_data['location_id']; $location_name = $location_data['location_name']; + $i++; ?>
        - lang->line('config_stock_location') . ' ' . ++$i, 'stock_location_' . $i, array('class'=>'control-label col-xs-2 required')); ?> + lang->line('config_stock_location') . ' ' . $i, 'stock_location_' . $i, array('class'=>'required control-label col-xs-2')); ?>
        'stock_location_' . $location_id, diff --git a/application/views/people/form_basic_info.php b/application/views/people/form_basic_info.php index 622e080c3..1bbef2162 100644 --- a/application/views/people/form_basic_info.php +++ b/application/views/people/form_basic_info.php @@ -1,6 +1,6 @@
        lang->line('common_first_name'), 'first_name', array('class'=>'required control-label col-xs-3')); ?> -
        +
        'first_name', 'id'=>'first_name', @@ -11,8 +11,8 @@
        - lang->line('common_last_name'), 'last_name', array('class'=>'required control-label required col-xs-3')); ?> -
        + lang->line('common_last_name'), 'last_name', array('class'=>'required control-label col-xs-3')); ?> +
        'last_name', 'id'=>'last_name', @@ -23,7 +23,7 @@
        - lang->line('common_gender'), 'gender', !empty($basic_version) ? array('class'=>'control-label required col-xs-3') : array('class'=>'control-label col-xs-3')); ?> + lang->line('common_gender'), 'gender', !empty($basic_version) ? array('class'=>'required control-label col-xs-3') : array('class'=>'control-label col-xs-3')); ?>