diff --git a/app/Views/attributes/form.php b/app/Views/attributes/form.php index 43f68c730..1459cc028 100644 --- a/app/Views/attributes/form.php +++ b/app/Views/attributes/form.php @@ -17,7 +17,7 @@
- 'required control-label col-xs-3']) ?> + 'control-label col-xs-3 text-danger required']) ?>
'definition_name', @@ -29,7 +29,7 @@
- 'required control-label col-xs-3']) ?> + 'control-label col-xs-3 text-danger required']) ?>
definition_type, DEFINITION_TYPES), 'id="definition_type" class="form-control"') ?>
diff --git a/app/Views/cashups/form.php b/app/Views/cashups/form.php index cbfe8f757..b16fb01ea 100644 --- a/app/Views/cashups/form.php +++ b/app/Views/cashups/form.php @@ -19,7 +19,7 @@
- 'required control-label col-xs-3']) ?> + 'control-label col-xs-3 text-danger required']) ?>
@@ -83,7 +83,7 @@
- 'required control-label col-xs-3']) ?> + 'control-label col-xs-3 text-danger required']) ?>
diff --git a/app/Views/configs/barcode_config.php b/app/Views/configs/barcode_config.php index 0a30f505a..a2577ce8e 100644 --- a/app/Views/configs/barcode_config.php +++ b/app/Views/configs/barcode_config.php @@ -14,8 +14,8 @@
    - 'control-label col-xs-2']) ?> -
    + 'control-label col-xs-3 col-sm-2']) ?> +
    - 'control-label col-xs-2 required']) ?> -
    + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
    '5', 'max' => '350', @@ -42,8 +42,8 @@
    - 'control-label col-xs-2 required']) ?> -
    + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
    'number', 'min' => 10, @@ -57,8 +57,8 @@
    - 'control-label col-xs-2 required']) ?> -
    + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
    -
    +
    'number', 'min' => '1', @@ -80,8 +80,8 @@
    - 'control-label col-xs-2']) ?> -
    + 'control-label col-xs-3 col-sm-2']) ?> +
    'allow_duplicate_barcodes', 'id' => 'allow_duplicate_barcodes', @@ -96,8 +96,8 @@
    - 'control-label col-xs-2']) ?> -
    + 'control-label col-xs-3 col-sm-2']) ?> +
    - 'control-label col-xs-2']) ?> -
    + 'control-label col-xs-3 col-sm-2']) ?> +
    settings['barcode_formats']); echo form_dropdown([ @@ -143,66 +143,68 @@
    - 'control-label col-xs-2']) ?> -
    -
    - -
    - lang('Config.none'), - 'name' => lang('Items.name'), - 'category' => lang('Items.category'), - 'cost_price' => lang('Items.cost_price'), - 'unit_price' => lang('Items.unit_price'), - 'company_name' => lang('Suppliers.company_name') - ], - $config['barcode_first_row'], - ['class' => 'form-control input-sm'] - ); ?> -
    - -
    - lang('Config.none'), - 'name' => lang('Items.name'), - 'category' => lang('Items.category'), - 'cost_price' => lang('Items.cost_price'), - 'unit_price' => lang('Items.unit_price'), - 'item_code' => lang('Items.item_number'), - 'company_name' => lang('Suppliers.company_name') - ], - $config['barcode_second_row'], - ['class' => 'form-control input-sm'] - ) ?> -
    - -
    - lang('Config.none'), - 'name' => lang('Items.name'), - 'category' => lang('Items.category'), - 'cost_price' => lang('Items.cost_price'), - 'unit_price' => lang('Items.unit_price'), - 'item_code' => lang('Items.item_number'), - 'company_name' => lang('Suppliers.company_name') - ], - $config['barcode_third_row'], - ['class' => 'form-control input-sm'] - ) ?> -
    + 'control-label col-xs-3 col-sm-2']) ?> +
    +
    + + lang('Config.none'), + 'name' => lang('Items.name'), + 'category' => lang('Items.category'), + 'cost_price' => lang('Items.cost_price'), + 'unit_price' => lang('Items.unit_price'), + 'company_name' => lang('Suppliers.company_name') + ], + $config['barcode_first_row'], + ['class' => 'form-control input-sm'] + ); ?> +
    +
    +
    +
    + + lang('Config.none'), + 'name' => lang('Items.name'), + 'category' => lang('Items.category'), + 'cost_price' => lang('Items.cost_price'), + 'unit_price' => lang('Items.unit_price'), + 'item_code' => lang('Items.item_number'), + 'company_name' => lang('Suppliers.company_name') + ], + $config['barcode_second_row'], + ['class' => 'form-control input-sm'] + ) ?> +
    +
    +
    +
    + + lang('Config.none'), + 'name' => lang('Items.name'), + 'category' => lang('Items.category'), + 'cost_price' => lang('Items.cost_price'), + 'unit_price' => lang('Items.unit_price'), + 'item_code' => lang('Items.item_number'), + 'company_name' => lang('Suppliers.company_name') + ], + $config['barcode_third_row'], + ['class' => 'form-control input-sm'] + ) ?>
    - 'control-label col-xs-2 required']) ?> -
    + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
    'number', 'name' => 'barcode_num_in_row', @@ -214,8 +216,8 @@
    - 'control-label col-xs-2 required']) ?> -
    + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
    'number', @@ -232,8 +234,8 @@
    - 'control-label col-xs-2 required']) ?> -
    + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
    'number', diff --git a/app/Views/configs/email_config.php b/app/Views/configs/email_config.php index 46d0f26b1..52e838efd 100644 --- a/app/Views/configs/email_config.php +++ b/app/Views/configs/email_config.php @@ -13,8 +13,8 @@
      - 'control-label col-xs-2']) ?> -
      + 'control-label col-xs-3 col-sm-2']) ?> +
      - 'control-label col-xs-2']) ?> -
      + 'control-label col-xs-3 col-sm-2']) ?> +
      'mailpath', 'id' => 'mailpath', @@ -41,8 +41,8 @@
      - 'control-label col-xs-2']) ?> -
      + 'control-label col-xs-3 col-sm-2']) ?> +
      'smtp_host', 'id' => 'smtp_host', @@ -53,8 +53,8 @@
      - 'control-label col-xs-2']) ?> -
      + 'control-label col-xs-3 col-sm-2']) ?> +
      'number', 'name' => 'smtp_port', @@ -66,8 +66,8 @@
      - 'control-label col-xs-2']) ?> -
      + 'control-label col-xs-3 col-sm-2']) ?> +
      - 'control-label col-xs-2']) ?> -
      + 'control-label col-xs-3 col-sm-2']) ?> +
      'number', 'name' => 'smtp_timeout', @@ -95,8 +95,8 @@
      - 'control-label col-xs-2']) ?> -
      + 'control-label col-xs-3 col-sm-2']) ?> +
      @@ -112,8 +112,8 @@
      - 'control-label col-xs-2']) ?> -
      + 'control-label col-xs-3 col-sm-2']) ?> +
      diff --git a/app/Views/configs/general_config.php b/app/Views/configs/general_config.php index df7ef179b..dd9c4e940 100644 --- a/app/Views/configs/general_config.php +++ b/app/Views/configs/general_config.php @@ -17,30 +17,28 @@
        - 'control-label col-xs-2']) ?> -
        -
        -
        - -
        - -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        + +
        +
        +

        + + + + +

        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        - 'control-label col-xs-2 required']) ?> -
        + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
        'default_sales_discount', @@ -72,10 +70,10 @@ 'name' => 'default_sales_discount_type', 'value' => 1, 'data-toggle' => 'toggle', - 'data-size' => 'normal', + 'data-size' => 'small', 'data-onstyle' => 'success', - 'data-on' => '' . $config['currency_symbol'] . '', - 'data-off' => '%', + 'data-on' => '' . $config['currency_symbol'] . '', + 'data-off' => '%', 'checked' => $config['default_sales_discount_type'] == 1 ]) ?> @@ -84,8 +82,8 @@
        - 'control-label col-xs-2 required']) ?> -
        + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
        'default_receivings_discount', @@ -102,7 +100,7 @@ 'name' => 'default_receivings_discount_type', 'value' => 1, 'data-toggle' => 'toggle', - 'data-size' => 'normal', + 'data-size' => 'small', 'data-onstyle' => 'success', 'data-on' => '' . $config['currency_symbol'] . '', 'data-off' => '%', @@ -114,8 +112,8 @@
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        'enforce_privacy', 'id' => 'enforce_privacy', @@ -130,8 +128,8 @@
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        'receiving_calculate_average_price', 'id' => 'receiving_calculate_average_price', @@ -142,8 +140,8 @@
        - 'control-label col-xs-2 required']) ?> -
        + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
        'lines_per_page', 'id' => 'lines_per_page', @@ -157,126 +155,119 @@
        - 'control-label col-xs-2']) ?> -
        -
        -
        - lang('Config.top'), - 'bottom' => lang('Config.bottom') - ], - $config['notify_vertical_position'], - 'class="form-control input-sm"' - ) ?> -
        -
        - lang('Config.left'), - 'center' => lang('Config.center'), - 'right' => lang('Config.right') - ], - $config['notify_horizontal_position'], - 'class="form-control input-sm"' - ) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        + lang('Config.top'), + 'bottom' => lang('Config.bottom') + ], + $config['notify_vertical_position'], + 'class="form-control input-sm"' + ) ?> +
        +
        + lang('Config.left'), + 'center' => lang('Config.center'), + 'right' => lang('Config.right') + ], + $config['notify_horizontal_position'], + 'class="form-control input-sm"' + ) ?> +
        +
        + +
        + 'control-label col-xs-3 col-sm-2']) ?> +
        +
        + + + + 'image_max_width', + 'id' => 'image_max_width', + 'class' => 'form-control input-sm required', + 'type' => 'number', + 'min' => 128, + 'max' => 3840, + 'value' => $config['image_max_width'], + 'data-toggle' => 'tooltip', + 'data-placement' => 'top', + 'title' => lang('Config.image_max_width_tooltip') + ]) ?> +
        +
        +
        +
        + + + + 'image_max_height', + 'id' => 'image_max_height', + 'class' => 'form-control input-sm required', + 'type' => 'number', + 'min' => 128, + 'max' => 3840, + 'value' => $config['image_max_height'], + 'data-toggle' => 'tooltip', + 'data-placement' => 'top', + 'title' => lang('Config.image_max_height_tooltip') + ]) ?> +
        +
        +
        +
        + + + + 'image_max_size', + 'id' => 'image_max_size', + 'class' => 'form-control input-sm required', + 'type' => 'number', + 'min' => 128, + 'max' => 2048, + 'value' => $config['image_max_size'], + 'data-toggle' => 'tooltip', + 'data-placement' => 'top', + 'title' => lang('Config.image_max_size_tooltip') + ]) ?> +
        +
        +
        +
        + + 'image_allowed_types[]', + 'options' => $image_allowed_types, + 'selected' => $selected_image_allowed_types, + 'id' => 'image_allowed_types', + 'class' => 'selectpicker show-menu-arrow', + 'data-none-selected-text' => lang('Common.none_selected_text'), + 'data-selected-text-format' => 'count > 1', + 'data-style' => 'btn-default btn-sm', + 'data-width' => '100%' + ]) ?>
        - 'control-label col-xs-2']) ?> -
        -
        -
        -
        - - - - 'image_max_width', - 'id' => 'image_max_width', - 'class' => 'form-control input-sm required', - 'type' => 'number', - 'min' => 128, - 'max' => 3840, - 'value' => $config['image_max_width'], - 'data-toggle' => 'tooltip', - 'data-placement' => 'top', - 'title' => lang('Config.image_max_width_tooltip') - ]) ?> -
        -
        -
        -
        - - - - 'image_max_height', - 'id' => 'image_max_height', - 'class' => 'form-control input-sm required', - 'type' => 'number', - 'min' => 128, - 'max' => 3840, - 'value' => $config['image_max_height'], - 'data-toggle' => 'tooltip', - 'data-placement' => 'top', - 'title' => lang('Config.image_max_height_tooltip') - ]) ?> -
        -
        -
        -
        - - - - 'image_max_size', - 'id' => 'image_max_size', - 'class' => 'form-control input-sm required', - 'type' => 'number', - 'min' => 128, - 'max' => 2048, - 'value' => $config['image_max_size'], - 'data-toggle' => 'tooltip', - 'data-placement' => 'top', - 'title' => lang('Config.image_max_size_tooltip') - ]) ?> -
        -
        -
        -
        - - 'image_allowed_types[]', - 'options' => $image_allowed_types, - 'selected' => $selected_image_allowed_types, - 'id' => 'image_allowed_types', - 'class' => 'selectpicker show-menu-arrow', - 'data-none-selected-text' => lang('Common.none_selected_text'), - 'data-selected-text-format' => 'count > 1', - 'data-style' => 'btn-default btn-sm', - 'data-width' => '100%' - ]) ?> -
        -
        -
        -
        -
        - -
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        'gcaptcha_enable', 'id' => 'gcaptcha_enable', 'value' => 'gcaptcha_enable', 'checked' => $config['gcaptcha_enable'] == 1 ]) ?> +  
        - 'required control-label col-xs-2', 'id' => 'config_gcaptcha_site_key']) ?> -
        + 'control-label col-xs-3 col-sm-2 required', 'id' => 'config_gcaptcha_site_key']) ?> +
        'gcaptcha_site_key', 'id' => 'gcaptcha_site_key', @@ -298,8 +289,8 @@
        - 'required control-label col-xs-2', 'id' => 'config_gcaptcha_secret_key']) ?> -
        + 'control-label col-xs-3 col-sm-2 required', 'id' => 'config_gcaptcha_secret_key']) ?> +
        'gcaptcha_secret_key', 'id' => 'gcaptcha_secret_key', @@ -310,66 +301,62 @@
        - 'control-label col-xs-2']) ?> -
        -
        -
        -
        - - lang('Items.name'), - 'item_number' => lang('Items.number_information'), - 'unit_price' => lang('Items.unit_price'), - 'cost_price' => lang('Items.cost_price') - ], - $config['suggestions_first_column'], - 'class="form-control input-sm"' - ) ?> -
        -
        -
        -
        - - lang('Config.none'), - 'name' => lang('Items.name'), - 'item_number' => lang('Items.number_information'), - 'unit_price' => lang('Items.unit_price'), - 'cost_price' => lang('Items.cost_price') - ], - $config['suggestions_second_column'], - 'class="form-control input-sm"' - ) ?> -
        -
        -
        -
        - - lang('Config.none'), - 'name' => lang('Items.name'), - 'item_number' => lang('Items.number_information'), - 'unit_price' => lang('Items.unit_price'), - 'cost_price' => lang('Items.cost_price') - ], - $config['suggestions_third_column'], - 'class="form-control input-sm"' - ) ?> -
        -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        +
        + + lang('Items.name'), + 'item_number' => lang('Items.number_information'), + 'unit_price' => lang('Items.unit_price'), + 'cost_price' => lang('Items.cost_price') + ], + $config['suggestions_first_column'], + 'class="form-control input-sm"' + ) ?> +
        +
        +
        +
        + + lang('Config.none'), + 'name' => lang('Items.name'), + 'item_number' => lang('Items.number_information'), + 'unit_price' => lang('Items.unit_price'), + 'cost_price' => lang('Items.cost_price') + ], + $config['suggestions_second_column'], + 'class="form-control input-sm"' + ) ?> +
        +
        +
        +
        + + lang('Config.none'), + 'name' => lang('Items.name'), + 'item_number' => lang('Items.number_information'), + 'unit_price' => lang('Items.unit_price'), + 'cost_price' => lang('Items.cost_price') + ], + $config['suggestions_third_column'], + 'class="form-control input-sm"' + ) ?>
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        'derive_sale_quantity', 'id' => 'derive_sale_quantity', @@ -406,8 +393,8 @@
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        'show_office_group', 'id' => 'show_office_group', @@ -418,8 +405,8 @@
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        'multi_pack_enabled', 'id' => 'multi_pack_enabled', @@ -430,8 +417,8 @@
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        'include_hsn', 'id' => 'include_hsn', @@ -442,8 +429,8 @@
        - 'control-label col-xs-2']) ?> -
        + 'control-label col-xs-3 col-sm-2']) ?> +
        'category_dropdown', 'id' => 'category_dropdown', @@ -470,11 +457,11 @@ const enable_disable_gcaptcha_enable = (function() { const gcaptcha_enable = $("#gcaptcha_enable").is(":checked"); if (gcaptcha_enable) { - $("#gcaptcha_site_key, #gcaptcha_secret_key").prop("disabled", !gcaptcha_enable).addClass("required"); - $("#config_gcaptcha_site_key, #config_gcaptcha_secret_key").addClass("required"); + $("#gcaptcha_site_key, #gcaptcha_secret_key").prop("disabled", !gcaptcha_enable).addClass("text-danger required"); + $("#config_gcaptcha_site_key, #config_gcaptcha_secret_key").addClass("text-danger required"); } else { - $("#gcaptcha_site_key, #gcaptcha_secret_key").prop("disabled", gcaptcha_enable).removeClass("required"); - $("#config_gcaptcha_site_key, #config_gcaptcha_secret_key").removeClass("required"); + $("#gcaptcha_site_key, #gcaptcha_secret_key").prop("disabled", gcaptcha_enable).removeClass("text-danger required"); + $("#config_gcaptcha_site_key, #config_gcaptcha_secret_key").removeClass("text-danger required"); } return arguments.callee; diff --git a/app/Views/configs/info_config.php b/app/Views/configs/info_config.php index 1a7051844..9be7bd177 100644 --- a/app/Views/configs/info_config.php +++ b/app/Views/configs/info_config.php @@ -14,8 +14,8 @@
          - 'control-label col-xs-2 required']) ?> -
          + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
          @@ -31,8 +31,8 @@
          - 'control-label col-xs-2']) ?> -
          + 'control-label col-xs-3 col-sm-2']) ?> +
          @@ -51,20 +51,21 @@
          - 'control-label col-xs-2 required']) ?> -
          + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
          'address', 'id' => 'address', 'class' => 'form-control input-sm required', + 'style' => 'resize: vertical', 'value' => $config['address'] ]) ?>
          - 'control-label col-xs-2']) ?> -
          + 'control-label col-xs-3 col-sm-2']) ?> +
          @@ -80,8 +81,8 @@
          - 'control-label col-xs-2']) ?> -
          + 'control-label col-xs-3 col-sm-2']) ?> +
          @@ -98,8 +99,8 @@
          - 'control-label col-xs-2 required']) ?> -
          + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
          @@ -116,8 +117,8 @@
          - 'control-label col-xs-2']) ?> -
          + 'control-label col-xs-3 col-sm-2']) ?> +
          @@ -134,12 +135,13 @@
          - 'control-label col-xs-2 required']) ?> -
          + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
          'return_policy', 'id' => 'return_policy', 'class' => 'form-control input-sm required', + 'style' => 'resize: vertical', 'value' => $config['return_policy'] ]) ?>
          diff --git a/app/Views/configs/integrations_config.php b/app/Views/configs/integrations_config.php index 7e8f24909..3e9463026 100644 --- a/app/Views/configs/integrations_config.php +++ b/app/Views/configs/integrations_config.php @@ -14,8 +14,8 @@
            - 'control-label col-xs-2']) ?> -
            + 'control-label col-xs-3 col-sm-2']) ?> +
            @@ -29,18 +29,18 @@ autocomplete="off">
            -
            -
            - 'control-label col-xs-2']) ?> -
            + 'control-label col-xs-3 col-sm-2']) ?> +
            diff --git a/app/Views/configs/invoice_config.php b/app/Views/configs/invoice_config.php index 128855739..1f0822e3a 100644 --- a/app/Views/configs/invoice_config.php +++ b/app/Views/configs/invoice_config.php @@ -14,8 +14,8 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'invoice_enable', 'value' => 'invoice_enable', @@ -26,8 +26,8 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'recv_invoice_format', 'id' => 'recv_invoice_format', @@ -50,32 +50,34 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'invoice_default_comments', 'id' => 'invoice_default_comments', 'class' => 'form-control input-sm', + 'style' => 'resize: vertical', 'value' => $config['invoice_default_comments'] ]) ?>
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'invoice_email_message', 'id' => 'invoice_email_message', 'class' => 'form-control input-sm', + 'style' => 'resize: vertical', 'value' => $config['invoice_email_message'] ]) ?>
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'sales_invoice_format', 'id' => 'sales_invoice_format', @@ -98,8 +100,8 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'number', 'name' => 'last_used_invoice_number', @@ -111,8 +113,8 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'sales_quote_format', 'id' => 'sales_quote_format', @@ -123,8 +125,8 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'number', 'name' => 'last_used_quote_number', @@ -136,20 +138,21 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'quote_default_comments', 'id' => 'quote_default_comments', 'class' => 'form-control input-sm', + 'style' => 'resize: vertical', 'value' => $config['quote_default_comments'] ]) ?>
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'work_order_enable', 'value' => 'work_order_enable', @@ -160,8 +163,8 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'work_order_format', 'id' => 'work_order_format', @@ -172,8 +175,8 @@
              - 'control-label col-xs-2']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'number', 'name' => 'last_used_work_order_number', diff --git a/app/Views/configs/license_config.php b/app/Views/configs/license_config.php index 0d5584b1e..6dbf70e1b 100644 --- a/app/Views/configs/license_config.php +++ b/app/Views/configs/license_config.php @@ -13,12 +13,13 @@ foreach ($licenses as $license) { ?>
              - 'control-label col-xs-3']) ?> -
              + 'control-label col-xs-3 col-sm-2']) ?> +
              'license', 'id' => 'license_' . $counter++, // TODO: String Interpolation 'class' => 'form-control font-monospace', + 'style' => 'resize: vertical', 'rows' => '14', 'readonly' => '', 'value' => $license['text'] diff --git a/app/Views/configs/locale_config.php b/app/Views/configs/locale_config.php index 52159f85d..3265d497c 100644 --- a/app/Views/configs/locale_config.php +++ b/app/Views/configs/locale_config.php @@ -15,8 +15,8 @@
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'number_locale', 'id' => 'number_locale', @@ -25,21 +25,21 @@ ]) ?> 'save_number_locale', 'value' => $config['number_locale']]) ?>
                -
                -
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'thousands_separator', 'id' => 'thousands_separator', @@ -50,8 +50,8 @@
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'currency_symbol', 'id' => 'currency_symbol', @@ -62,8 +62,8 @@
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'currency_code', 'id' => 'currency_code', @@ -74,8 +74,8 @@
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'form-control input-sm'] ) ?>
                -
                -
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                - 'control-label col-xs-2', 'style' => 'padding-top:0; line-height:1.4; margin-top:-8px']) ?> -
                + 'control-label col-xs-3 col-sm-2', 'style' => 'padding-top:0; line-height:1.4; margin-top:-8px']) ?> +
                @@ -196,26 +196,26 @@
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'country_codes', 'class' => 'form-control input-sm', 'value' => $config['country_codes'] ]) ?>
                -
                -
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'form-control input-sm'] ) ?>
                -
                +
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'date_or_time_format', 'id' => 'date_or_time_format', @@ -270,8 +270,8 @@
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                - 'control-label col-xs-2 required']) ?> -
                + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
                @@ -30,8 +30,8 @@
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                @@ -47,8 +47,8 @@
                - 'control-label col-xs-2 required']) ?> -
                + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
                @@ -64,13 +64,14 @@
                - 'control-label col-xs-2']) ?> -
                + 'control-label col-xs-3 col-sm-2']) ?> +
                'msg_msg', 'id' => 'msg_msg', 'class' => 'form-control input-sm', 'value' => $config['msg_msg'], + 'style' => 'resize: vertical', 'placeholder' => lang('Config.msg_msg_placeholder') ]) ?>
                diff --git a/app/Views/configs/receipt_config.php b/app/Views/configs/receipt_config.php index 2b916b767..46b1c8a0e 100644 --- a/app/Views/configs/receipt_config.php +++ b/app/Views/configs/receipt_config.php @@ -12,8 +12,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  - 'control-label col-xs-2 required']) ?> -
                  + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
                  'number', @@ -45,8 +45,8 @@
                  - 'control-label col-xs-2 required']) ?> -
                  + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
                  'number', @@ -63,8 +63,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'receipt_show_company_name', 'value' => 'receipt_show_company_name', @@ -135,8 +135,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'receipt_show_taxes', 'value' => 'receipt_show_taxes', @@ -147,8 +147,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'receipt_show_tax_ind', 'value' => 'receipt_show_tax_ind', @@ -159,8 +159,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'receipt_show_total_discount', 'value' => 'receipt_show_total_discount', @@ -171,8 +171,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'receipt_show_description', 'value' => 'receipt_show_description', @@ -183,8 +183,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'receipt_show_serialnumber', 'value' => 'receipt_show_serialnumber', @@ -195,8 +195,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'print_silently', 'id' => 'print_silently', @@ -207,8 +207,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'print_header', 'id' => 'print_header', @@ -219,8 +219,8 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  'print_footer', 'id' => 'print_footer', @@ -231,29 +231,29 @@
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  - 'control-label col-xs-2']) ?> -
                  + 'control-label col-xs-3 col-sm-2']) ?> +
                  - 'control-label col-xs-2 required']) ?> -
                  + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
                  'number', @@ -270,8 +270,8 @@
                  - 'control-label col-xs-2 required']) ?> -
                  + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
                  'number', @@ -288,8 +288,8 @@
                  - 'control-label col-xs-2 required']) ?> -
                  + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
                  'number', @@ -306,8 +306,8 @@
                  - 'control-label col-xs-2 required']) ?> -
                  + 'control-label col-xs-3 col-sm-2 text-danger required']) ?> +
                  'number', diff --git a/app/Views/configs/reward_config.php b/app/Views/configs/reward_config.php index db533e830..de8f6c8fd 100644 --- a/app/Views/configs/reward_config.php +++ b/app/Views/configs/reward_config.php @@ -13,8 +13,8 @@
                    - 'control-label col-xs-2']) ?> -
                    + 'control-label col-xs-3 col-sm-2']) ?> +
                    'customer_reward_enable', 'value' => 'customer_reward_enable', @@ -76,9 +76,9 @@ const new_block = block.insertAfter($(this).parent()); const new_block_id = 'customer_reward_' + ++id; const new_block_id_next = 'reward_points_' + id; - $(new_block).find('label').html(" " + ++table_count).attr('for', new_block_id).attr('class', 'control-label col-xs-2'); - $(new_block).find("input[id='" + previous_id + "']").attr('id', new_block_id).removeAttr('disabled').attr('name', new_block_id).attr('class', 'form-control input-sm').val(''); - $(new_block).find("input[id='" + previous_id_next + "']").attr('id', new_block_id_next).removeAttr('disabled').attr('name', new_block_id_next).attr('class', 'form-control input-sm').val(''); + $(new_block).find('label').html(" " + ++table_count).attr('for', new_block_id).attr('class', 'control-label col-xs-3 col-sm-2 text-danger required'); + $(new_block).find("input[id='" + previous_id + "']").attr('id', new_block_id).removeAttr('disabled').attr('name', new_block_id).attr('class', 'form-control input-sm required').val(''); + $(new_block).find("input[id='" + previous_id_next + "']").attr('id', new_block_id_next).removeAttr('disabled').attr('name', new_block_id_next).attr('class', 'form-control input-sm required').val(''); hide_show_remove(); }; diff --git a/app/Views/configs/shortcuts_config.php b/app/Views/configs/shortcuts_config.php index 8ccb356f6..2f0d65547 100644 --- a/app/Views/configs/shortcuts_config.php +++ b/app/Views/configs/shortcuts_config.php @@ -25,38 +25,33 @@ $shortcutLabels = [ 'shortcuts_config_form', 'class' => 'form-horizontal']) ?>
                    -
                    -
                    -
                    -
                    -
                      +
                      - $label): ?> -
                      - 'control-label col-xs-3']) ?> -
                      - - -
                      -
                      - +
                      +
                        -
                        - 'submit_shortcuts', - 'id' => 'submit_shortcuts', - 'value' => lang('Common.submit'), - 'class' => 'btn btn-primary btn-sm pull-right' - ]) ?> + $label): ?> +
                        + 'control-label col-xs-6 col-sm-5 col-md-4 col-lg-3']) ?> +
                        + +
                        -
                        -
                        + + + 'submit_shortcuts', + 'id' => 'submit_shortcuts', + 'value' => lang('Common.submit'), + 'class' => 'btn btn-primary btn-sm pull-right' + ]) ?> +
                        diff --git a/app/Views/configs/stock_config.php b/app/Views/configs/stock_config.php index af0e15a7a..75aafe77a 100644 --- a/app/Views/configs/stock_config.php +++ b/app/Views/configs/stock_config.php @@ -43,8 +43,8 @@ const block = $(this).parent().clone(true); const new_block = block.insertAfter($(this).parent()); const new_block_id = 'stock_location[]'; - $(new_block).find('label').html(" " + ++location_count).attr('for', new_block_id).attr('class', 'control-label col-xs-2'); - $(new_block).find('input').attr('id', new_block_id).removeAttr('disabled').attr('name', new_block_id).attr('class', 'form-control input-sm').val(''); + $(new_block).find('label').html(" " + ++location_count).attr('for', new_block_id).attr('class', 'control-label col-xs-3 col-sm-2 text-danger required'); + $(new_block).find('input').attr('id', new_block_id).removeAttr('disabled').attr('name', new_block_id).attr('class', 'form-control input-sm required').val(''); hide_show_remove(); }; diff --git a/app/Views/configs/system_config.php b/app/Views/configs/system_config.php index db97abc1c..a8935c84b 100644 --- a/app/Views/configs/system_config.php +++ b/app/Views/configs/system_config.php @@ -1,7 +1,6 @@ -
                        -
                        -