[+] BO Customers > Addresses // Helper > Required Fields
This commit is contained in:
@@ -40,9 +40,9 @@
|
|||||||
{block name="field"}
|
{block name="field"}
|
||||||
{if $input.type == 'text_customer'}
|
{if $input.type == 'text_customer'}
|
||||||
{if isset($customer)}
|
{if isset($customer)}
|
||||||
<div>
|
<div class="col-lg-9">
|
||||||
<a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={$tokenCustomer}">
|
<a class="btn btn-default" href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={$tokenCustomer}">
|
||||||
{$customer->lastname} {$customer->firstname} ({$customer->email})
|
<i class="icon-eye-open"></i> {$customer->lastname} {$customer->firstname} ({$customer->email})
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="id_customer" value="{$customer->id}" />
|
<input type="hidden" name="id_customer" value="{$customer->id}" />
|
||||||
|
|||||||
@@ -39,7 +39,9 @@
|
|||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
{foreach from=$languages item=language}
|
{foreach from=$languages item=language}
|
||||||
<li><a href="javascript:hideOtherLanguage({$language.id_lang});"><img src="{$base_url}/img/l/{$language.id_lang|intval}.jpg" alt=""> {$language.iso_code}</a></li>
|
<li>
|
||||||
|
<a href="javascript:hideOtherLanguage({$language.id_lang});"><img src="{$base_url}/img/l/{$language.id_lang|intval}.jpg" alt=""> {$language.iso_code}</a>
|
||||||
|
</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,16 +23,20 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
|
|
||||||
<br />
|
<a class="btn btn-default" href="#" onclick="if ($('.requiredFieldsParameters:visible').length == 0) $('.requiredFieldsParameters').slideDown('slow'); else $('.requiredFieldsParameters').slideUp('slow'); return false;">
|
||||||
<p>
|
<i class="icon-plus-sign"></i> {l s='Set required fields for this section'}
|
||||||
<a class="button" href="#" onclick="if ($('.requiredFieldsParameters:visible').length == 0) $('.requiredFieldsParameters').slideDown('slow'); else $('.requiredFieldsParameters').slideUp('slow'); return false;"><img src="../img/admin/duplicate.gif" alt="" /> {l s='Set required fields for this section'}</a>
|
</a>
|
||||||
</p>
|
|
||||||
<fieldset style="display:none" class="width1 requiredFieldsParameters">
|
<fieldset style="display:none" class="requiredFieldsParameters">
|
||||||
<legend>{l s='Required Fields'}</legend>
|
<h3><i class="icon-asterisk"></i> {l s='Required Fields'}</h3>
|
||||||
<form name="updateFields" action="{$current}&submitFields=1&token={$token}" method="post">
|
<form name="updateFields" action="{$current}&submitFields=1&token={$token}" method="post">
|
||||||
<p>
|
|
||||||
<b>{l s='Select the fields you would like to be required for this section.'}</b><br />
|
<div class="alert alert-info">
|
||||||
<table cellspacing="0" cellpadding="0" class="table width1 clear">
|
{l s='Select the fields you would like to be required for this section.'}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table class="table">
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><input type="checkbox" onclick="checkDelBoxes(this.form, 'fieldsBox[]', this.checked)" class="noborder" name="checkme"></th>
|
<th><input type="checkbox" onclick="checkDelBoxes(this.form, 'fieldsBox[]', this.checked)" class="noborder" name="checkme"></th>
|
||||||
@@ -49,10 +53,9 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table><br />
|
</table>
|
||||||
<center>
|
|
||||||
<input style="margin-left:15px;" class="button" type="submit" value="{l s='Save'}" name="submitFields" />
|
<button class="btn btn-primary pull-right" type="submit" name="submitFields"><i class="icon-save"></i> {l s='Save'}</button>
|
||||||
</center>
|
|
||||||
</p>
|
|
||||||
</form>
|
</form>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
@@ -109,27 +109,28 @@ class AdminAddressesControllerCore extends AdminController
|
|||||||
'label' => $this->l('Address alias'),
|
'label' => $this->l('Address alias'),
|
||||||
'name' => 'alias',
|
'name' => 'alias',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'hint' => $this->l('Invalid characters:').' <>;=#{}'
|
'hint' => $this->l('Invalid characters:').' <>;=#{}'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'label' => $this->l('Home phone'),
|
'label' => $this->l('Home phone'),
|
||||||
'name' => 'phone',
|
'name' => 'phone',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number')) : ''
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'label' => $this->l('Mobile phone'),
|
'label' => $this->l('Mobile phone'),
|
||||||
'name' => 'phone_mobile',
|
'name' => 'phone_mobile',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST')? sprintf($this->l('You must register at least one phone number %s')) : ''
|
'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number')) : ''
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
'label' => $this->l('Other'),
|
'label' => $this->l('Other'),
|
||||||
'name' => 'other',
|
'name' => 'other',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'hint' => $this->l('Forbidden characters:').' <>;=#{}<span class="hint-pointer"> </span>'
|
'hint' => $this->l('Forbidden characters:').' <>;=#{}'
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'submit' => array(
|
'submit' => array(
|
||||||
@@ -190,7 +191,7 @@ class AdminAddressesControllerCore extends AdminController
|
|||||||
'label' => $this->l('Last Name'),
|
'label' => $this->l('Last Name'),
|
||||||
'name' => 'lastname',
|
'name' => 'lastname',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:',
|
'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:',
|
||||||
'default_value' => $default_value,
|
'default_value' => $default_value,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -209,7 +210,7 @@ class AdminAddressesControllerCore extends AdminController
|
|||||||
'label' => $this->l('First Name'),
|
'label' => $this->l('First Name'),
|
||||||
'name' => 'firstname',
|
'name' => 'firstname',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:',
|
'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:',
|
||||||
'default_value' => $default_value,
|
'default_value' => $default_value,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user