Example #1
0
 public function getFieldProperties()
 {
     $out = parent::getFieldProperties();
     $out['name'] = array('type' => 'text', 'caption' => 'Название', 'required' => true);
     $out['api_password'] = array('type' => 'text', 'caption' => 'Пароль для API');
     return $out;
 }
Example #2
0
 public function getFieldProperties()
 {
     $out = parent::getFieldProperties();
     $out['type'] = array('type' => 'select', 'caption' => 'Тип', 'required' => true, 'init' => array('set_options' => $this->getTypeOptions(!$this->type ? '-- Не выбран --' : false)));
     $out['ocs_client_id'] = array('type' => 'select', 'caption' => 'Клиент', 'required' => true, 'init' => array('set_options' => $this->getClientOptions(!$this->ocs_client_id ? '-- Не выбран --' : false)));
     $out['ocs_channel_id'] = array('type' => 'select', 'caption' => 'Рекламный канал', 'init' => array('set_options' => $this->getChannelOptions(!$this->ocs_channel_id ? '-- Не выбран --' : false)));
     $out['customer_name'] = array('type' => 'text', 'caption' => 'Имя заказчика');
     $out['customer_phone'] = array('type' => 'text', 'caption' => 'Телефон');
     $out['customer_email'] = array('type' => 'email', 'caption' => 'Email');
     $out['description'] = array('type' => 'textarea', 'caption' => 'Состав заявки');
     $out['price_quote'] = array('type' => 'text', 'caption' => 'Оценочная стоимость заявки');
     return $out;
 }