[-] Install : Add gender durring install
[*] FO : Add gender_type "neutral" // Normalization git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8733 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
a3fb583b98
commit
a127911a7f
2 files changed
+25
-1
No files matched your search
@@ -44,7 +44,7 @@ class AdminGenders extends AdminTab
|
|||||||
'width' => 100,
|
'width' => 100,
|
||||||
'orderby' => false,
|
'orderby' => false,
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'select' => array(0 => $this->l('Male'), 1 => $this->l('Female')),
|
'select' => array(0 => $this->l('Male'), 1 => $this->l('Female'), 2 => $this->l('Neutral')),
|
||||||
'filter_key' => 'a!type',
|
'filter_key' => 'a!type',
|
||||||
'callback' => 'displayGenderType',
|
'callback' => 'displayGenderType',
|
||||||
'callback_object' => $this,
|
'callback_object' => $this,
|
||||||
@@ -88,6 +88,8 @@ class AdminGenders extends AdminTab
|
|||||||
<label class="t" for="type_male"> '.$this->l('Male').'</label>
|
<label class="t" for="type_male"> '.$this->l('Male').'</label>
|
||||||
<input type="radio" name="type" id="type_female" value="1" '.($this->getFieldValue($obj, 'type') == 1 ? 'checked="checked" ' : '').'/>
|
<input type="radio" name="type" id="type_female" value="1" '.($this->getFieldValue($obj, 'type') == 1 ? 'checked="checked" ' : '').'/>
|
||||||
<label class="t" for="type_female"> '.$this->l('Female').'</label>
|
<label class="t" for="type_female"> '.$this->l('Female').'</label>
|
||||||
|
<input type="radio" name="type" id="type_neutral" value="2" '.($this->getFieldValue($obj, 'type') == 2 ? 'checked="checked" ' : '').'/>
|
||||||
|
<label class="t" for="type_neutral"> '.$this->l('Neutral').'</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>';
|
<div class="clear"></div>';
|
||||||
|
|
||||||
|
|||||||
@@ -1307,3 +1307,25 @@ State:name
|
|||||||
Country:name
|
Country:name
|
||||||
phone' where `id_country`=10;
|
phone' where `id_country`=10;
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO `PREFIX_gender` (`id_gender`, `type`) VALUES
|
||||||
|
(1, 0),
|
||||||
|
(2, 1),
|
||||||
|
(3, 1);
|
||||||
|
|
||||||
|
INSERT INTO `PREFIX_gender_lang` (`id_gender`, `id_lang`, `name`) VALUES
|
||||||
|
(1, 1, 'Mr.'),
|
||||||
|
(1, 2, 'M.'),
|
||||||
|
(1, 3, 'Sr.'),
|
||||||
|
(1, 4, 'Herr'),
|
||||||
|
(1, 5, 'Sig.'),
|
||||||
|
(2, 1, 'Ms.'),
|
||||||
|
(2, 2, 'Mme'),
|
||||||
|
(2, 3, 'Sra.'),
|
||||||
|
(2, 4, 'Frau'),
|
||||||
|
(2, 5, 'Sig.ra'),
|
||||||
|
(3, 1, 'Miss'),
|
||||||
|
(3, 2, 'Melle'),
|
||||||
|
(3, 3, 'Miss'),
|
||||||
|
(3, 4, 'Miss'),
|
||||||
|
(3, 5, 'Miss');
|
||||||
Reference in new issue
Block a user