Dev#12996 formation ajout zone groupe utilisateur
Merge request reports
Activity
Filter activity
54 62 55 63 56 64 public function getFieldTypeLabel() { 57 $field_type_array = 58 [Class_CustomField_Meta::TEXT_INPUT => $this->_('Champ texte'), 59 Class_CustomField_Meta::TEXT_AREA => $this->_('Champ zone de texte'), 60 Class_CustomField_Meta::SELECT => $this->_("Liste d'options")]; 61 return $field_type_array[$this->getFieldType()]; 65 return $this->getFieldTypes()[$this->getFieldType()]; 35 35 'size' => 50, 36 36 'required' => true, 37 37 'allowEmpty' => false]) 38 ->addElement('select', 38 ->addElement('select', 39 39 'field_type', 40 40 ['label' => $this->_('Type de champ'), 41 'multioptions' => $this->_getFieldTypes(), 41 'multioptions' => (new Class_CustomField_Meta())->getFieldTypes(), 51 51 52 protected function _getFieldTypes() { 53 return [Class_CustomField_Meta::TEXT_INPUT => $this->_('champ texte'), 54 Class_CustomField_Meta::TEXT_AREA => $this->_('champ zone de texte'), 55 Class_CustomField_Meta::SELECT => $this->_("liste d'options")]; 56 } 57 52 58 53 59 54 protected function _toggleOptionsList() { 60 55 return Class_ScriptLoader::getInstance() 61 56 ->addJQueryBackEnd('formSelectToggleVisibilityForElement("#field_type", "#fieldset-options", "'.Class_CustomField_Meta::SELECT.'");'); 62 57 } 63 58 59 public function getFieldTypeLabel($fieldType) { 60 return (new Class_CustomField_Meta())->getFieldTypes()[$fieldType];
Please register or sign in to reply