// Fields resizing

This commit is contained in:
Damien Metzger committed 2013-10-25 11:25:13 +02:00
1 parent d59c83e64d
commit 087d0d8206
9 files changed
+90 -29

No files matched your search

@@ -85,7 +85,7 @@
}); });
</script> </script>
<div class="col-lg-9"> <div class="col-lg-4">
<input type="text" id="email" name="email" value="{$fields_value[$input.name]|escape:'htmlall':'UTF-8'}"/> <input type="text" id="email" name="email" value="{$fields_value[$input.name]|escape:'htmlall':'UTF-8'}"/>
</div> </div>
{/if} {/if}
@@ -76,7 +76,7 @@
{/block} {/block}
{block name="field"} {block name="field"}
<div class="col-lg-{if isset($input.col)}{$input.col|intval}{else}9{/if}{if !isset($input.label)} col-lg-offset-3{/if}"> <div class="col-lg-{if isset($input.col)}{$input.col|intval}{else}9{/if} {if !isset($input.label)}col-lg-offset-3{/if}">
{block name="input"} {block name="input"}
{if $input.type == 'text' || $input.type == 'tags'} {if $input.type == 'text' || $input.type == 'tags'}
{if isset($input.lang) AND $input.lang} {if isset($input.lang) AND $input.lang}
@@ -516,7 +516,7 @@
{elseif $input.type == 'birthday'} {elseif $input.type == 'birthday'}
<div class="form-group"> <div class="form-group">
{foreach $input.options as $key => $select} {foreach $input.options as $key => $select}
<div class="col-lg-4"> <div class="col-lg-2">
<select name="{$key}" class="{if isset($input.class)}{$input.class}{/if}"> <select name="{$key}" class="{if isset($input.class)}{$input.class}{/if}">
<option value="">-</option> <option value="">-</option>
{if $key == 'months'} {if $key == 'months'}
@@ -114,6 +114,7 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('Identification Number'), 'label' => $this->l('Identification Number'),
'name' => 'dni', 'name' => 'dni',
'required' => false, 'required' => false,
'col' => '4',
'hint' => $this->l('DNI / NIF / NIE') 'hint' => $this->l('DNI / NIF / NIE')
), ),
array( array(
@@ -121,6 +122,7 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('Address alias'), 'label' => $this->l('Address alias'),
'name' => 'alias', 'name' => 'alias',
'required' => true, 'required' => true,
'col' => '4',
'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}'
), ),
array( array(
@@ -128,6 +130,7 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('Home phone'), 'label' => $this->l('Home phone'),
'name' => 'phone', 'name' => 'phone',
'required' => false, 'required' => false,
'col' => '4',
'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number')) : '' 'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number')) : ''
), ),
array( array(
@@ -135,6 +138,7 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('Mobile phone'), 'label' => $this->l('Mobile phone'),
'name' => 'phone_mobile', 'name' => 'phone_mobile',
'required' => false, 'required' => false,
'col' => '4',
'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number')) : '' 'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number')) : ''
), ),
array( array(
@@ -182,11 +186,13 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('Company'), 'label' => $this->l('Company'),
'name' => 'company', 'name' => 'company',
'required' => false, 'required' => false,
'col' => '4',
'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}'
); );
$temp_fields[] = array( $temp_fields[] = array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('VAT number'), 'label' => $this->l('VAT number'),
'col' => '2',
'name' => 'vat_number' 'name' => 'vat_number'
); );
} }
@@ -205,6 +211,7 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('Last Name'), 'label' => $this->l('Last Name'),
'name' => 'lastname', 'name' => 'lastname',
'required' => true, 'required' => true,
'col' => '4',
'hint' => $this->l('Invalid characters:').' 0-9!&amp;lt;&amp;gt;,;?=+()@#"�{}_$%:', 'hint' => $this->l('Invalid characters:').' 0-9!&amp;lt;&amp;gt;,;?=+()@#"�{}_$%:',
'default_value' => $default_value, 'default_value' => $default_value,
); );
@@ -224,6 +231,7 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('First Name'), 'label' => $this->l('First Name'),
'name' => 'firstname', 'name' => 'firstname',
'required' => true, 'required' => true,
'col' => '4',
'hint' => $this->l('Invalid characters:').' 0-9!&amp;lt;&amp;gt;,;?=+()@#"�{}_$%:', 'hint' => $this->l('Invalid characters:').' 0-9!&amp;lt;&amp;gt;,;?=+()@#"�{}_$%:',
'default_value' => $default_value, 'default_value' => $default_value,
); );
@@ -234,6 +242,7 @@ class AdminAddressesControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Address'), 'label' => $this->l('Address'),
'name' => 'address1', 'name' => 'address1',
'col' => '6',
'required' => true, 'required' => true,
); );
} }
@@ -243,6 +252,7 @@ class AdminAddressesControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Address').' (2)', 'label' => $this->l('Address').' (2)',
'name' => 'address2', 'name' => 'address2',
'col' => '6',
'required' => false, 'required' => false,
); );
} }
@@ -252,6 +262,7 @@ class AdminAddressesControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Zip/Postal Code'), 'label' => $this->l('Zip/Postal Code'),
'name' => 'postcode', 'name' => 'postcode',
'col' => '2',
'required' => true, 'required' => true,
); );
} }
@@ -261,6 +272,7 @@ class AdminAddressesControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('City'), 'label' => $this->l('City'),
'name' => 'city', 'name' => 'city',
'col' => '4',
'required' => true, 'required' => true,
); );
} }
@@ -271,6 +283,7 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('Country'), 'label' => $this->l('Country'),
'name' => 'id_country', 'name' => 'id_country',
'required' => false, 'required' => false,
'col' => '4',
'default_value' => (int)$this->context->country->id, 'default_value' => (int)$this->context->country->id,
'options' => array( 'options' => array(
'query' => Country::getCountries($this->context->language->id), 'query' => Country::getCountries($this->context->language->id),
@@ -283,6 +296,7 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('State'), 'label' => $this->l('State'),
'name' => 'id_state', 'name' => 'id_state',
'required' => false, 'required' => false,
'col' => '4',
'options' => array( 'options' => array(
'query' => array(), 'query' => array(),
'id' => 'id_state', 'id' => 'id_state',
@@ -60,6 +60,7 @@ class AdminContactsControllerCore extends AdminController
'name' => 'name', 'name' => 'name',
'required' => true, 'required' => true,
'lang' => true, 'lang' => true,
'col' => 4,
'hint' => $this->l('Contact name (e.g. Customer Support)'), 'hint' => $this->l('Contact name (e.g. Customer Support)'),
), ),
array( array(
@@ -67,6 +68,7 @@ class AdminContactsControllerCore extends AdminController
'label' => $this->l('Email address'), 'label' => $this->l('Email address'),
'name' => 'email', 'name' => 'email',
'required' => false, 'required' => false,
'col' => 4,
'hint' => $this->l('Emails will be sent to this address'), 'hint' => $this->l('Emails will be sent to this address'),
), ),
array( array(
@@ -96,6 +98,7 @@ class AdminContactsControllerCore extends AdminController
'name' => 'description', 'name' => 'description',
'required' => false, 'required' => false,
'lang' => true, 'lang' => true,
'col' => 6,
'hint' => $this->l('Further information regarding this contact'), 'hint' => $this->l('Further information regarding this contact'),
), ),
), ),
+31 -24
View File
@@ -284,6 +284,7 @@ class AdminCustomersControllerCore extends AdminController
'label' => $this->l('First name:'), 'label' => $this->l('First name:'),
'name' => 'firstname', 'name' => 'firstname',
'required' => true, 'required' => true,
'col' => '4',
'hint' => $this->l('Forbidden characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:' 'hint' => $this->l('Forbidden characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:'
), ),
array( array(
@@ -291,12 +292,14 @@ class AdminCustomersControllerCore extends AdminController
'label' => $this->l('Last name:'), 'label' => $this->l('Last name:'),
'name' => 'lastname', 'name' => 'lastname',
'required' => true, 'required' => true,
'col' => '4',
'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:' 'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:'
), ),
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Email address:'), 'label' => $this->l('Email address:'),
'name' => 'email', 'name' => 'email',
'col' => '4',
'required' => true 'required' => true
), ),
array( array(
@@ -304,6 +307,7 @@ class AdminCustomersControllerCore extends AdminController
'label' => $this->l('Password:'), 'label' => $this->l('Password:'),
'name' => 'passwd', 'name' => 'passwd',
'required' => ($obj->id ? false : true), 'required' => ($obj->id ? false : true),
'col' => '4',
'hint' => ($obj->id ? $this->l('Leave this field blank if there\'s no change') : $this->l('Minimum of five characters (only letters and numbers).').' -_') 'hint' => ($obj->id ? $this->l('Leave this field blank if there\'s no change') : $this->l('Minimum of five characters (only letters and numbers).').' -_')
), ),
array( array(
@@ -392,32 +396,35 @@ class AdminCustomersControllerCore extends AdminController
unset($groups[$key]); unset($groups[$key]);
} }
$this->fields_form['input'] = array_merge($this->fields_form['input'], $this->fields_form['input'] = array_merge(
$this->fields_form['input'],
array(
array( array(
array( 'type' => 'group',
'type' => 'group', 'label' => $this->l('Group access:'),
'label' => $this->l('Group access:'), 'name' => 'groupBox',
'name' => 'groupBox', 'values' => $groups,
'values' => $groups, 'required' => true,
'required' => true, 'col' => '6',
'hint' => $this->l('Select all the groups that you would like to apply to this customer.') 'hint' => $this->l('Select all the groups that you would like to apply to this customer.')
), ),
array( array(
'type' => 'select', 'type' => 'select',
'label' => $this->l('Default customer group:'), 'label' => $this->l('Default customer group:'),
'name' => 'id_default_group', 'name' => 'id_default_group',
'options' => array( 'options' => array(
'query' => $groups, 'query' => $groups,
'id' => 'id_group', 'id' => 'id_group',
'name' => 'name' 'name' => 'name'
), ),
'hint' => array( 'col' => '4',
$this->l('The group will be as applied by default.'), 'hint' => array(
$this->l('Apply the discount\'s price of this group.') $this->l('The group will be as applied by default.'),
) $this->l('Apply the discount\'s price of this group.')
)
) )
); )
)
);
// if customer is a guest customer, password hasn't to be there // if customer is a guest customer, password hasn't to be there
if ($obj->id && ($obj->is_guest && $obj->id_default_group == Configuration::get('PS_GUEST_GROUP'))) if ($obj->id && ($obj->is_guest && $obj->id_default_group == Configuration::get('PS_GUEST_GROUP')))
@@ -110,6 +110,7 @@ class AdminGendersControllerCore extends AdminController
'label' => $this->l('Name:'), 'label' => $this->l('Name:'),
'name' => 'name', 'name' => 'name',
'lang' => true, 'lang' => true,
'col' => 4,
'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:', 'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:',
'required' => true 'required' => true
), ),
@@ -141,18 +142,21 @@ class AdminGendersControllerCore extends AdminController
'type' => 'file', 'type' => 'file',
'label' => $this->l('Image:'), 'label' => $this->l('Image:'),
'name' => 'image', 'name' => 'image',
'col' => 6,
'value' => true 'value' => true
), ),
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Image Width:'), 'label' => $this->l('Image Width:'),
'name' => 'img_width', 'name' => 'img_width',
'col' => 2,
'hint' => $this->l('Image width in pixels. Enter "0" to use the original size.') 'hint' => $this->l('Image width in pixels. Enter "0" to use the original size.')
), ),
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Image Height:'), 'label' => $this->l('Image Height:'),
'name' => 'img_height', 'name' => 'img_height',
'col' => 2,
'hint' => $this->l('Image height in pixels. Enter "0" to use the original size.') 'hint' => $this->l('Image height in pixels. Enter "0" to use the original size.')
) )
), ),
+4 -1
View File
@@ -240,7 +240,7 @@ class AdminGroupsControllerCore extends AdminController
'icon' => 'icon-group' 'icon' => 'icon-group'
), ),
'submit' => array( 'submit' => array(
'title' => $this->l('Save '), 'title' => $this->l('Save'),
'class' => 'btn btn-default' 'class' => 'btn btn-default'
), ),
'input' => array( 'input' => array(
@@ -250,18 +250,21 @@ class AdminGroupsControllerCore extends AdminController
'name' => 'name', 'name' => 'name',
'required' => true, 'required' => true,
'lang' => true, 'lang' => true,
'col' => 4,
'hint' => $this->l('Forbidden characters:').' 0-9!&amp;lt;&amp;gt;,;?=+()@#"�{}_$%:' 'hint' => $this->l('Forbidden characters:').' 0-9!&amp;lt;&amp;gt;,;?=+()@#"�{}_$%:'
), ),
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Discount (%):'), 'label' => $this->l('Discount (%):'),
'name' => 'reduction', 'name' => 'reduction',
'col' => 2,
'hint' => $this->l('Automatically apply this value as a discount on all products for members of this customer group.') 'hint' => $this->l('Automatically apply this value as a discount on all products for members of this customer group.')
), ),
array( array(
'type' => 'select', 'type' => 'select',
'label' => $this->l('Price display method:'), 'label' => $this->l('Price display method:'),
'name' => 'price_display_method', 'name' => 'price_display_method',
'col' => 2,
'hint' => $this->l('How prices are displayed in the order summary for this customer group.'), 'hint' => $this->l('How prices are displayed in the order summary for this customer group.'),
'options' => array( 'options' => array(
'query' => array( 'query' => array(
@@ -279,6 +279,7 @@ class AdminManufacturersControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Name:'), 'label' => $this->l('Name:'),
'name' => 'name', 'name' => 'name',
'col' => 4,
'required' => true, 'required' => true,
'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}'
), ),
@@ -290,6 +291,7 @@ class AdminManufacturersControllerCore extends AdminController
'cols' => 60, 'cols' => 60,
'rows' => 10, 'rows' => 10,
'autoload_rte' => 'rte', //Enable TinyMCE editor for short description 'autoload_rte' => 'rte', //Enable TinyMCE editor for short description
'col' => 6,
'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}'
), ),
array( array(
@@ -299,6 +301,7 @@ class AdminManufacturersControllerCore extends AdminController
'lang' => true, 'lang' => true,
'cols' => 60, 'cols' => 60,
'rows' => 10, 'rows' => 10,
'col' => 6,
'autoload_rte' => 'rte', //Enable TinyMCE editor for description 'autoload_rte' => 'rte', //Enable TinyMCE editor for description
'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}'
), ),
@@ -307,6 +310,7 @@ class AdminManufacturersControllerCore extends AdminController
'label' => $this->l('Logo:'), 'label' => $this->l('Logo:'),
'name' => 'logo', 'name' => 'logo',
'display_image' => true, 'display_image' => true,
'col' => 6,
'hint' => $this->l('Upload a manufacturer logo from your computer.') 'hint' => $this->l('Upload a manufacturer logo from your computer.')
), ),
array( array(
@@ -314,6 +318,7 @@ class AdminManufacturersControllerCore extends AdminController
'label' => $this->l('Meta title:'), 'label' => $this->l('Meta title:'),
'name' => 'meta_title', 'name' => 'meta_title',
'lang' => true, 'lang' => true,
'col' => 4,
'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}'
), ),
array( array(
@@ -321,6 +326,7 @@ class AdminManufacturersControllerCore extends AdminController
'label' => $this->l('Meta description:'), 'label' => $this->l('Meta description:'),
'name' => 'meta_description', 'name' => 'meta_description',
'lang' => true, 'lang' => true,
'col' => 6,
'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}'
), ),
array( array(
@@ -328,6 +334,7 @@ class AdminManufacturersControllerCore extends AdminController
'label' => $this->l('Meta keywords:'), 'label' => $this->l('Meta keywords:'),
'name' => 'meta_keywords', 'name' => 'meta_keywords',
'lang' => true, 'lang' => true,
'col' => 6,
'hint' => array( 'hint' => array(
$this->l('Forbidden characters:').' &lt;&gt;;=#{}', $this->l('Forbidden characters:').' &lt;&gt;;=#{}',
$this->l('To add "tags," click inside the field, write something, and then press "Enter."') $this->l('To add "tags," click inside the field, write something, and then press "Enter."')
@@ -432,6 +439,7 @@ class AdminManufacturersControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Manufacturer:'), 'label' => $this->l('Manufacturer:'),
'name' => 'name', 'name' => 'name',
'col' => 4,
'disabled' => true, 'disabled' => true,
); );
@@ -456,6 +464,7 @@ class AdminManufacturersControllerCore extends AdminController
'label' => $this->l('Last name:'), 'label' => $this->l('Last name:'),
'name' => 'lastname', 'name' => 'lastname',
'required' => true, 'required' => true,
'col' => 4,
'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:' 'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:'
); );
$form['input'][] = array( $form['input'][] = array(
@@ -463,24 +472,28 @@ class AdminManufacturersControllerCore extends AdminController
'label' => $this->l('First name:'), 'label' => $this->l('First name:'),
'name' => 'firstname', 'name' => 'firstname',
'required' => true, 'required' => true,
'col' => 4,
'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:' 'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:'
); );
$form['input'][] = array( $form['input'][] = array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Address:'), 'label' => $this->l('Address:'),
'name' => 'address1', 'name' => 'address1',
'col' => 6,
'required' => true, 'required' => true,
); );
$form['input'][] = array( $form['input'][] = array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Address (2):'), 'label' => $this->l('Address (2):'),
'name' => 'address2', 'name' => 'address2',
'col' => 6,
'required' => false, 'required' => false,
); );
$form['input'][] = array( $form['input'][] = array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Zip Code/Postal Code'), 'label' => $this->l('Zip Code/Postal Code'),
'name' => 'postcode', 'name' => 'postcode',
'col' => 2,
'required' => true, 'required' => true,
'required' => false, 'required' => false,
); );
@@ -488,6 +501,7 @@ class AdminManufacturersControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('City:'), 'label' => $this->l('City:'),
'name' => 'city', 'name' => 'city',
'col' => 4,
'required' => true, 'required' => true,
); );
$form['input'][] = array( $form['input'][] = array(
@@ -496,6 +510,7 @@ class AdminManufacturersControllerCore extends AdminController
'name' => 'id_country', 'name' => 'id_country',
'required' => false, 'required' => false,
'default_value' => (int)$this->context->country->id, 'default_value' => (int)$this->context->country->id,
'col' => 4,
'options' => array( 'options' => array(
'query' => Country::getCountries($this->context->language->id), 'query' => Country::getCountries($this->context->language->id),
'id' => 'id_country', 'id' => 'id_country',
@@ -507,6 +522,7 @@ class AdminManufacturersControllerCore extends AdminController
'label' => $this->l('State:'), 'label' => $this->l('State:'),
'name' => 'id_state', 'name' => 'id_state',
'required' => false, 'required' => false,
'col' => 4,
'options' => array( 'options' => array(
'query' => array(), 'query' => array(),
'id' => 'id_state', 'id' => 'id_state',
@@ -517,12 +533,14 @@ class AdminManufacturersControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Home phone:'), 'label' => $this->l('Home phone:'),
'name' => 'phone', 'name' => 'phone',
'col' => 4,
'required' => false, 'required' => false,
); );
$form['input'][] = array( $form['input'][] = array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Mobile phone:'), 'label' => $this->l('Mobile phone:'),
'name' => 'phone_mobile', 'name' => 'phone_mobile',
'col' => 4,
'required' => false, 'required' => false,
); );
$form['input'][] = array( $form['input'][] = array(
@@ -532,7 +550,8 @@ class AdminManufacturersControllerCore extends AdminController
'required' => false, 'required' => false,
'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}', 'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}',
'rows' => 2, 'rows' => 2,
'cols' => 10 'cols' => 10,
'col' => 6,
); );
$form['submit'] = array( $form['submit'] = array(
'title' => $this->l('Save '), 'title' => $this->l('Save '),
@@ -103,6 +103,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Name'), 'label' => $this->l('Name'),
'name' => 'name', 'name' => 'name',
'required' => true, 'required' => true,
'col' => 4,
'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}', 'hint' => $this->l('Invalid characters:').' &lt;&gt;;=#{}',
), ),
array( array(
@@ -121,6 +122,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Phone:'), 'label' => $this->l('Phone:'),
'name' => 'phone', 'name' => 'phone',
'maxlength' => 16, 'maxlength' => 16,
'col' => 4,
'hint' => $this->l('Phone number for this supplier') 'hint' => $this->l('Phone number for this supplier')
), ),
array( array(
@@ -128,12 +130,14 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Address:'), 'label' => $this->l('Address:'),
'name' => 'address', 'name' => 'address',
'maxlength' => 128, 'maxlength' => 128,
'col' => 6,
'required' => true 'required' => true
), ),
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Address:').' (2)', 'label' => $this->l('Address:').' (2)',
'name' => 'address2', 'name' => 'address2',
'col' => 6,
'maxlength' => 128, 'maxlength' => 128,
), ),
array( array(
@@ -141,6 +145,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Postal Code/Zip Code:'), 'label' => $this->l('Postal Code/Zip Code:'),
'name' => 'postcode', 'name' => 'postcode',
'maxlength' => 12, 'maxlength' => 12,
'col' => 2,
'required' => true, 'required' => true,
), ),
array( array(
@@ -148,6 +153,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('City:'), 'label' => $this->l('City:'),
'name' => 'city', 'name' => 'city',
'maxlength' => 32, 'maxlength' => 32,
'col' => 4,
'required' => true, 'required' => true,
), ),
array( array(
@@ -155,6 +161,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Country:'), 'label' => $this->l('Country:'),
'name' => 'id_country', 'name' => 'id_country',
'required' => true, 'required' => true,
'col' => 4,
'default_value' => (int)$this->context->country->id, 'default_value' => (int)$this->context->country->id,
'options' => array( 'options' => array(
'query' => Country::getCountries($this->context->language->id, false), 'query' => Country::getCountries($this->context->language->id, false),
@@ -166,6 +173,7 @@ class AdminSuppliersControllerCore extends AdminController
'type' => 'select', 'type' => 'select',
'label' => $this->l('State'), 'label' => $this->l('State'),
'name' => 'id_state', 'name' => 'id_state',
'col' => 4,
'options' => array( 'options' => array(
'id' => 'id_state', 'id' => 'id_state',
'query' => array(), 'query' => array(),
@@ -184,6 +192,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Meta title:'), 'label' => $this->l('Meta title:'),
'name' => 'meta_title', 'name' => 'meta_title',
'lang' => true, 'lang' => true,
'col' => 4,
'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}'
), ),
array( array(
@@ -191,6 +200,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Meta description:'), 'label' => $this->l('Meta description:'),
'name' => 'meta_description', 'name' => 'meta_description',
'lang' => true, 'lang' => true,
'col' => 6,
'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}' 'hint' => $this->l('Forbidden characters:').' &lt;&gt;;=#{}'
), ),
array( array(
@@ -198,6 +208,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Meta keywords:'), 'label' => $this->l('Meta keywords:'),
'name' => 'meta_keywords', 'name' => 'meta_keywords',
'lang' => true, 'lang' => true,
'col' => 6,
'hint' => array( 'hint' => array(
$this->l('To add "tags" click in the field, write something and then press "Enter"'), $this->l('To add "tags" click in the field, write something and then press "Enter"'),
$this->l('Forbidden characters:').' &lt;&gt;;=#{}' $this->l('Forbidden characters:').' &lt;&gt;;=#{}'