diff --git a/application/views/configs/barcode_config.php b/application/views/configs/barcode_config.php index ed2951727..8621ed0e5 100644 --- a/application/views/configs/barcode_config.php +++ b/application/views/configs/barcode_config.php @@ -1,34 +1,35 @@
lang->line('config_barcode_configuration'); ?>
-'barcode_config_form')); ?> +'barcode_config_form', 'class' => 'form-horizontal')); ?>
lang->line('common_fields_required_message'); ?>
- lang->line('config_barcode_type').':', 'barcode_type',array('class'=>'control-label col-xs-3')); ?> -
- config->item('barcode_type'));?> + lang->line('config_barcode_type'), 'barcode_type',array('class'=>'control-label col-xs-3')); ?> +
+ config->item('barcode_type'), "class='form-control'");?>
- lang->line('config_barcode_quality').':', 'barcode_quality',array('class'=>'control-label col-xs-3 required')); ?> -
+ lang->line('config_barcode_quality'), 'barcode_quality',array('class'=>'control-label col-xs-3 required')); ?> +
'100', 'min'=>'10', 'type'=>'number', 'name'=>'barcode_quality', 'id'=>'barcode_quality', + 'class'=>'form-control', 'value'=>$this->config->item('barcode_quality')));?>
- lang->line('config_barcode_width').':', 'barcode_width',array('class'=>'control-label col-xs-3 required')); ?> -
+ lang->line('config_barcode_width'), 'barcode_width',array('class'=>'control-label col-xs-3 required')); ?> +
'5', 'max'=>'350', @@ -36,132 +37,153 @@ 'type'=>'number', 'name'=>'barcode_width', 'id'=>'barcode_width', + 'class'=>'form-control', 'value'=>$this->config->item('barcode_width')));?>
- lang->line('config_barcode_height').':', 'barcode_height',array('class'=>'control-label col-xs-3 required')); ?> -
+ lang->line('config_barcode_height'), 'barcode_height',array('class'=>'control-label col-xs-3 required')); ?> +
'number', 'min' => 10, 'max' => 120, 'name'=>'barcode_height', 'id'=>'barcode_height', + 'class'=>'form-control', 'value'=>$this->config->item('barcode_height')));?>
- lang->line('config_barcode_font').':', 'barcode_font',array('class'=>'control-label col-xs-3 required')); ?> -
+ lang->line('config_barcode_font'), 'barcode_font',array('class'=>'control-label col-xs-3 required')); ?> +
barcode_lib->listfonts("fonts"), - $this->config->item('barcode_font')); + $this->config->item('barcode_font'), "class='form-control'"); ?> - - 'number', - 'min' => '1', - 'max' => '30', - 'name'=>'barcode_font_size', - 'id'=>'barcode_font_size', - 'value'=>$this->config->item('barcode_font_size')));?> +
+
+ 'number', + 'min' => '1', + 'max' => '30', + 'name'=>'barcode_font_size', + 'id'=>'barcode_font_size', + 'class'=>'form-control', + 'value'=>$this->config->item('barcode_font_size')));?>
- lang->line('config_barcode_content').':', 'barcode_content',array('class'=>'control-label col-xs-3')); ?> + lang->line('config_barcode_content'), 'barcode_content',array('class'=>'control-label col-xs-3')); ?>
- 'barcode_content', - 'value'=>'id', - 'checked'=>$this->config->item('barcode_content') === "id")); ?> - lang->line('config_barcode_id'); ?> - 'barcode_content', - 'value'=>'number', - 'checked'=>$this->config->item('barcode_content') === "number")); ?> - lang->line('config_barcode_number'); ?> - 'barcode_generate_if_empty', - 'value'=>'barcode_generate_if_empty', - 'checked'=>$this->config->item('barcode_generate_if_empty'))); ?> - lang->line('config_barcode_generate_if_empty'); ?> + + +
- lang->line('config_barcode_layout').':', 'barcode_layout',array('class'=>'control-label col-xs-3')); ?> -
- lang->line('config_barcode_first_row').' '; ?> - lang->line('config_barcode_layout'), 'barcode_layout',array('class'=>'control-label col-xs-3')); ?> +
+ lang->line('config_barcode_first_row').' '; ?> + 'Not show', + 'name' => 'Name', + 'category' => 'Category', + 'cost_price' => 'Cost price', + 'unit_price' => 'Unit price', + 'company_name' => 'Company Name' + ), + $this->config->item('barcode_first_row'), "class='form-control'"); + ?> +
+
+ lang->line('config_barcode_second_row').' '; ?> + 'Not show', + 'name' => 'Name', + 'category' => 'Category', + 'cost_price' => 'Cost price', + 'unit_price' => 'Unit price', + 'item_code' => 'Item code', + 'company_name' => 'Company Name' + ), + $this->config->item('barcode_second_row'), "class='form-control'"); + ?> +
+
+ lang->line('config_barcode_third_row').' '; ?> + 'Not show', 'name' => 'Name', 'category' => 'Category', 'cost_price' => 'Cost price', 'unit_price' => 'Unit price', - 'company_name' => 'Company Name' - ), - $this->config->item('barcode_first_row')); - ?> - lang->line('config_barcode_second_row').' '; ?> - 'Not show', - 'name' => 'Name', - 'category' => 'Category', - 'cost_price' => 'Cost price', - 'unit_price' => 'Unit price', - 'item_code' => 'Item code', - 'company_name' => 'Company Name' - ), - $this->config->item('barcode_second_row')); - ?> - lang->line('config_barcode_third_row').' '; ?> - 'Not show', - 'name' => 'Name', - 'category' => 'Category', - 'cost_price' => 'Cost price', - 'unit_price' => 'Unit price', - 'item_code' => 'Item code', - 'company_name' => 'Company Name' - ), - $this->config->item('barcode_third_row')); + 'item_code' => 'Item code', + 'company_name' => 'Company Name' + ), + $this->config->item('barcode_third_row'), "class='form-control'"); ?>
- lang->line('config_barcode_number_in_row').':', 'barcode_num_in_row',array('class'=>'control-label col-xs-3 required')); ?> -
+ lang->line('config_barcode_number_in_row'), 'barcode_num_in_row',array('class'=>'control-label col-xs-3 required')); ?> +
'barcode_num_in_row', 'id'=>'barcode_num_in_row', + 'class'=>'form-control', 'value'=>$this->config->item('barcode_num_in_row')));?>
- lang->line('config_barcode_page_width').':', 'barcode_page_width',array('class'=>'control-label col-xs-3 required')); ?> -
- 'barcode_page_width', - 'id'=>'barcode_page_width', - 'value'=>$this->config->item('barcode_page_width')));?> - % + lang->line('config_barcode_page_width'), 'barcode_page_width',array('class'=>'control-label col-xs-3 required')); ?> +
+
+ 'barcode_page_width', + 'id'=>'barcode_page_width', + 'class'=>'form-control', + 'value'=>$this->config->item('barcode_page_width')));?> + % +
- lang->line('config_barcode_page_cellspacing').':', 'barcode_page_cellspacing',array('class'=>'control-label col-xs-3 required')); ?> -
- 'barcode_page_cellspacing', - 'id'=>'barcode_page_cellspacing', - 'value'=>$this->config->item('barcode_page_cellspacing')));?> - px + lang->line('config_barcode_page_cellspacing'), 'barcode_page_cellspacing',array('class'=>'control-label col-xs-3 required')); ?> +
+
+ 'barcode_page_cellspacing', + 'id'=>'barcode_page_cellspacing', + 'class'=>'form-control', + 'value'=>$this->config->item('barcode_page_cellspacing')));?> + px +
diff --git a/application/views/configs/receipt_config.php b/application/views/configs/receipt_config.php index a68612194..7add1fc8e 100644 --- a/application/views/configs/receipt_config.php +++ b/application/views/configs/receipt_config.php @@ -1,14 +1,14 @@
lang->line('config_receipt_configuration'); ?>
-'receipt_config_form')); ?> +'receipt_config_form', 'class'=>'form-horizontal')); ?>
lang->line('common_fields_required_message'); ?>
    -
    - lang->line('config_use_invoice_template').':', 'use_invoice_template',array('class'=>'wide')); ?> -
    +
    + lang->line('config_use_invoice_template'), 'use_invoice_template',array('class'=>'control-label col-xs-3')); ?> +
    'use_invoice_template', 'value'=>'use_invoice_template', @@ -17,33 +17,31 @@
    -
    - lang->line('config_invoice_default_comments').':', 'invoice_default_comments',array('class'=>'wide')); ?> -
    +
    + lang->line('config_invoice_default_comments'), 'invoice_default_comments',array('class'=>'control-label col-xs-3')); ?> +
    'invoice_default_comments', 'id'=>'invoice_default_comments', - 'rows'=>4, - 'cols'=>25, + 'class'=>'form-control', 'value'=>$this->config->item('invoice_default_comments')));?>
    -
    - lang->line('config_invoice_email_message').':', 'invoice_email_message',array('class'=>'wide')); ?> -
    +
    + lang->line('config_invoice_email_message'), 'invoice_email_message',array('class'=>'control-label col-xs-3')); ?> +
    'invoice_email_message', 'id'=>'invoice_email_message', - 'rows'=>4, - 'cols'=>25, + 'class'=>'form-control', 'value'=>$this->config->item('invoice_email_message')));?>
    -
    - lang->line('config_receipt_show_taxes').':', 'receipt_show_taxes',array('class'=>'wide')); ?> -
    +
    + lang->line('config_receipt_show_taxes'), 'receipt_show_taxes',array('class'=>'control-label col-xs-3')); ?> +
    'receipt_show_taxes', 'value'=>'receipt_show_taxes', @@ -52,9 +50,9 @@
    -
    - lang->line('config_show_total_discount').':', 'show_total_discount',array('class'=>'wide')); ?> -
    +
    + lang->line('config_show_total_discount'), 'show_total_discount',array('class'=>'control-label col-xs-3')); ?> +
    'show_total_discount', 'value'=>'show_total_discount', @@ -63,9 +61,9 @@
    -
    - lang->line('config_print_silently').':', 'print_silently',array('class'=>'wide')); ?> -
    +
    + lang->line('config_print_silently'), 'print_silently',array('class'=>'control-label col-xs-3')); ?> +
    'print_silently', 'id'=>'print_silently', @@ -74,9 +72,9 @@
    -
    - lang->line('config_print_header').':', 'print_header',array('class'=>'wide')); ?> -
    +
    + lang->line('config_print_header'), 'print_header',array('class'=>'control-label col-xs-3')); ?> +
    'print_header', 'id'=>'print_header', @@ -85,9 +83,9 @@
    -
    - lang->line('config_print_footer').':', 'print_footer',array('class'=>'wide')); ?> -
    +
    + lang->line('config_print_footer'), 'print_footer',array('class'=>'control-label col-xs-3')); ?> +
    'print_footer', 'id'=>'print_footer', @@ -96,80 +94,91 @@
    -
    - lang->line('config_receipt_printer').':', 'config_receipt_printer',array('class'=>'wide')); ?> -
    +
    + lang->line('config_receipt_printer'), 'config_receipt_printer',array('class'=>'control-label col-xs-3')); ?> +
    + '','id="receipt_printer" class="form-control"');?>
    -
    - lang->line('config_invoice_printer').':', 'config_invoice_printer',array('class'=>'wide')); ?> -
    - +
    + lang->line('config_invoice_printer'), 'config_invoice_printer',array('class'=>'control-label col-xs-3')); ?> +
    +
    -
    - lang->line('config_print_top_margin').':', 'print_top_margin',array('class'=>'wide required')); ?> -
    - 'number', - 'min'=>'0', - 'max'=>'20', - 'name'=>'print_top_margin', - 'id'=>'print_top_margin', - 'value'=>$this->config->item('print_top_margin')));?> - px +
    + lang->line('config_print_top_margin'), 'print_top_margin',array('class'=>'control-label col-xs-3 required')); ?> +
    +
    + 'number', + 'min'=>'0', + 'max'=>'20', + 'name'=>'print_top_margin', + 'id'=>'print_top_margin', + 'class'=>'form-control', + 'value'=>$this->config->item('print_top_margin')));?> + px +
    -
    - lang->line('config_print_left_margin').':', 'print_left_margin',array('class'=>'wide required')); ?> -
    - 'number', - 'min'=>'0', - 'max'=>'20', - 'name'=>'print_left_margin', - 'id'=>'print_left_margin', - 'value'=>$this->config->item('print_left_margin')));?> - px +
    + lang->line('config_print_left_margin'), 'print_left_margin',array('class'=>'control-label col-xs-3 required')); ?> +
    +
    + 'number', + 'min'=>'0', + 'max'=>'20', + 'name'=>'print_left_margin', + 'id'=>'print_left_margin', + 'class'=>'form-control', + 'value'=>$this->config->item('print_left_margin')));?> + px +
    -
    - lang->line('config_print_bottom_margin').':', 'print_bottom_margin',array('class'=>'wide required')); ?> -
    - 'number', - 'min'=>'0', - 'max'=>'20', - 'name'=>'print_bottom_margin', - 'id'=>'print_bottom_margin', - 'value'=>$this->config->item('print_bottom_margin')));?> - px +
    + lang->line('config_print_bottom_margin'), 'print_bottom_margin',array('class'=>'control-label col-xs-3 required')); ?> +
    +
    + 'number', + 'min'=>'0', + 'max'=>'20', + 'name'=>'print_bottom_margin', + 'id'=>'print_bottom_margin', + 'class'=>'form-control', + 'value'=>$this->config->item('print_bottom_margin')));?> + px +
    -
    - lang->line('config_print_right_margin').':', 'print_right_margin',array('class'=>'wide required')); ?> -
    - 'number', - 'min'=>'0', - 'max'=>'20', - 'name'=>'print_right_margin', - 'id'=>'print_right_margin', - 'value'=>$this->config->item('print_right_margin')));?> - px +
    + lang->line('config_print_right_margin'), 'print_right_margin',array('class'=>'control-label col-xs-3 required')); ?> +
    +
    + 'number', + 'min'=>'0', + 'max'=>'20', + 'name'=>'print_right_margin', + 'id'=>'print_right_margin', + 'class'=>'form-control', + 'value'=>$this->config->item('print_right_margin')));?> + px +
    - 'submit_form', diff --git a/application/views/configs/stock_config.php b/application/views/configs/stock_config.php index a82c33225..c2b248268 100644 --- a/application/views/configs/stock_config.php +++ b/application/views/configs/stock_config.php @@ -1,6 +1,6 @@
    lang->line('config_location_configuration'); ?>
    -'location_config_form')); ?> +'location_config_form', 'class'=>'form-horizontal')); ?>
    lang->line('common_fields_required_message'); ?>
    @@ -49,8 +49,8 @@ $(document).ready(function() var block = $(this).parent().clone(true); var new_block = block.insertAfter($(this).parent()); var new_block_id = 'stock_location_' + ++id; - $(new_block).find('label').html("lang->line('config_stock_location'); ?> " + ++location_count + ": ").attr('for', new_block_id); - $(new_block).find('input').attr('id', new_block_id).removeAttr('disabled').attr('name', new_block_id).val(''); + $(new_block).find('label').html("lang->line('config_stock_location'); ?> " + ++location_count).attr('for', new_block_id).attr('class', 'control-label col-xs-3'); + $(new_block).find('input').attr('id', new_block_id).removeAttr('disabled').attr('name', new_block_id).attr('class', 'form-control').val(''); hide_show_remove(); }; diff --git a/application/views/items/form.php b/application/views/items/form.php index 7a1556c86..606f2b60f 100644 --- a/application/views/items/form.php +++ b/application/views/items/form.php @@ -81,7 +81,7 @@
    - lang->line('items_tax_1'), 'tax_percent_1',array('class'=>'wide control-label col-xs-3')); ?> + lang->line('items_tax_1'), 'tax_percent_1',array('class'=>'control-label col-xs-3')); ?>
    'tax_names[]', @@ -103,7 +103,7 @@
    - lang->line('items_tax_2'), 'tax_percent_2',array('class'=>'wide control-label col-xs-3')); ?> + lang->line('items_tax_2'), 'tax_percent_2',array('class'=>'control-label col-xs-3')); ?>
    'tax_names[]', @@ -130,7 +130,7 @@
    lang->line('items_quantity').' '.$location_detail['location_name'] , $key.'_quantity', - array('class'=>'required wide control-label col-xs-3')); ?> + array('class'=>'required control-label col-xs-3')); ?>
    $key.'_quantity', diff --git a/application/views/partial/stock_locations.php b/application/views/partial/stock_locations.php index c6de78f9d..e0990adbe 100644 --- a/application/views/partial/stock_locations.php +++ b/application/views/partial/stock_locations.php @@ -2,13 +2,13 @@ $location_data ) { ?> -
    - lang->line('config_stock_location').' ' .++$i. ':', 'stock_location_'.$i ,array('class'=>'required wide')); ?> -
    +
    + lang->line('config_stock_location').' ' .++$i, 'stock_location_'.$i ,array('class'=>'required control-label col-xs-3')); ?> +
    'stock_location_'.$location_id, 'id'=>'stock_location_'.$location_id, - 'class'=>'stock_location valid_chars required', + 'class'=>'stock_location valid_chars required form-control', 'value'=>$location_name); $location_data['deleted'] && $form_data['disabled'] = 'disabled'; echo form_input($form_data);