Esempio n. 1
0
 public function __construct()
 {
     parent::__construct('forgotPassword');
     $this->add(array('name' => 'email', 'type' => 'Text', 'attributes' => array('id' => 'email', 'class' => 'form-control', 'Placeholder' => 'Enter Email')));
     $this->add(array('name' => 'submit', 'type' => 'Submit', 'attributes' => array('value' => 'Get Password', 'id' => 'btn-signup', 'class' => 'btn btn-success ml20')));
     $this->setInputFilter(new ForgotPasswordInputFilter());
 }
Esempio n. 2
0
 public function __construct($selects = array('services' => array(), 'clinics' => array(), 'doctors' => array(), 'countries' => array()), $name = null)
 {
     parent::__construct();
     $this->setInputFilter(new ClientsInputFilter());
     $this->setAttribute('method', 'post');
     $this->setAttribute('class', 'form');
     $this->setAttribute('enctype', 'multipart/formdata');
     $this->selects['services'] = $selects['services'];
     $this->selects['clinics'] = $selects['clinics'];
     $this->selects['doctors'] = $selects['doctors'];
     $this->selects['countries'] = $selects['countries'];
     $this->add(array('name' => 'fio', 'type' => 'text', 'attributes' => array('class' => 'required', 'placeholder' => '', 'minlength' => 3), 'options' => array('label' => 'ФИО')));
     $this->add(array('name' => 'service', 'type' => 'Zend\\Form\\Element\\Select', 'attributes' => array('class' => 'required form-control', 'placeholder' => ''), 'options' => array('label' => 'Мед. услуга', 'value_options' => $this->selects['services'])));
     $this->add(array('name' => 'diagnosis', 'type' => 'textarea', 'attributes' => array('class' => 'required', 'placeholder' => '', 'minlength' => 6), 'options' => array('label' => 'Диагноз, жалобы')));
     $this->add(array('name' => 'contacts', 'type' => 'text', 'attributes' => array('class' => 'required', 'placeholder' => '', 'minlength' => 6), 'options' => array('label' => 'Контакты')));
     $this->add(array('name' => 'dos', 'type' => 'text', 'attributes' => array('class' => 'required datepicker', 'placeholder' => ''), 'options' => array('label' => 'Дата обращения')));
     $this->add(array('name' => 'status', 'type' => 'Zend\\Form\\Element\\Select', 'attributes' => array('class' => 'required form-control', 'placeholder' => ''), 'options' => array('label' => 'Статус', 'value_options' => array('Не обработан' => 'Не обработан', 'В работе' => 'В работе', 'Согласование' => 'Согласование', 'Думает' => 'Думает', 'Архив' => 'Архив', 'Пролечен' => 'Пролечен', 'Записан в календарь' => 'Записан в календарь'))));
     $this->add(array('name' => 'comments', 'type' => 'textarea', 'attributes' => array('class' => 'required', 'placeholder' => '', 'minlength' => 6), 'options' => array('label' => 'Комментарии')));
     $this->add(array('name' => 'country', 'type' => 'Zend\\Form\\Element\\Select', 'attributes' => array('class' => 'required form-control', 'placeholder' => ''), 'options' => array('label' => 'Страна', 'value_options' => $this->selects['countries'])));
     $this->add(array('name' => 'newCountry', 'type' => 'text', 'attributes' => array('class' => '', 'placeholder' => 'Новая страна'), 'options' => array()));
     $this->add(array('name' => 'nextContactDate', 'type' => 'text', 'attributes' => array('class' => 'datepicker', 'placeholder' => '', 'minlength' => 6, 'placeholder' => 'Дата'), 'options' => array('label' => 'Следующий<br>запланированный контакт')));
     $this->add(array('name' => 'nextContactComment', 'type' => 'text', 'attributes' => array('class' => '', 'placeholder' => 'Комментарий'), 'options' => array()));
     $this->add(array('name' => 'attachments[]', 'type' => 'Zend\\Form\\Element\\File', 'attributes' => array(), 'options' => array('label' => 'Документы')));
     $this->add(array('name' => 'clinic', 'type' => 'Zend\\Form\\Element\\Select', 'attributes' => array('class' => 'required form-control', 'placeholder' => ''), 'options' => array('label' => 'Клиника', 'value_options' => $this->selects['clinics'])));
     $this->add(array('name' => 'newClinic', 'type' => 'text', 'attributes' => array('class' => '', 'placeholder' => 'Новая клиника'), 'options' => array()));
     $this->add(array('name' => 'doctor', 'type' => 'Zend\\Form\\Element\\Select', 'attributes' => array('class' => 'required form-control', 'placeholder' => ''), 'options' => array('label' => 'Врач', 'value_options' => $this->selects['doctors'])));
     $this->add(array('name' => 'newDoctor', 'type' => 'text', 'attributes' => array('class' => '', 'placeholder' => 'Новый врач'), 'options' => array()));
     $this->add(array('name' => 'conclusions[]', 'type' => 'Zend\\Form\\Element\\File', 'attributes' => array(), 'options' => array('label' => 'Заключение (PDF)')));
     $this->add(array('name' => 'payment', 'type' => 'text', 'attributes' => array('class' => 'required', 'placeholder' => '', 'minlength' => 6), 'options' => array('label' => 'Способ оплаты')));
     $this->add(array('name' => 'informed', 'type' => 'Zend\\Form\\Element\\Checkbox', 'attributes' => array('required' => false), 'options' => array('use_hidden_element' => false, 'checked_value' => 1, 'unchecked_value' => 0, 'label' => 'О подготовке проинформирован')));
     $this->add(array('name' => 'submit', 'type' => 'submit', 'attributes' => array('value' => 'Войти', 'id' => 'submitbutton')));
 }
Esempio n. 3
0
 public function __construct(EntityManager $objectManager)
 {
     parent::__construct('ligue');
     $this->setAttributes(array('method' => 'post', 'id' => 'auth', 'role' => 'form'));
     $this->setInputFilter(new LigueFilter($objectManager));
     $this->setHydrator(new DoctrineObject($objectManager));
     // Id
     $id = new Hidden('id');
     $this->add($id);
     // Nom
     $nom = new Text('nom');
     $nom->setLabel('Nom')->setLabelAttributes(array('class', 'control-label'));
     $nom->setAttributes(array('id' => 'nom', 'class' => 'form-control', 'placeholder' => 'Nom', 'required' => true));
     $this->add($nom);
     // Image
     $image = new File('image');
     $image->setLabel('Image')->setLabelAttributes(array('class', 'control-label'));
     $image->setAttributes(array('id' => 'image', 'class' => 'form-control', 'placeholder' => 'Image'));
     $this->add($image);
     // Date début
     $dateDebut = new Text('dateDebut');
     $dateDebut->setLabel('Début de la ligue')->setLabelAttributes(array('class', 'control-label'));
     $dateDebut->setAttributes(array('id' => 'dateDebut', 'class' => 'form-control'));
     //$this->add($dateDebut);
     // Date fin
     $dateFin = new Text('dateFin');
     $dateFin->setLabel('Fin de la ligue')->setLabelAttributes(array('class', 'control-label'));
     $dateFin->setAttributes(array('id' => 'dateFin', 'class' => 'form-control'));
     //$this->add($dateFin);
     // Submit
     $submit = new Submit('submit');
     $submit->setValue('Enregistrer');
     $submit->setAttributes(array('class' => 'btn btn-primary'));
     $this->add($submit);
 }
Esempio n. 4
0
 public function init()
 {
     parent::init();
     $this->add(array('name' => 'full_name', 'type' => 'text', 'options' => array('label' => $this->translate('Full name'))));
     $this->add(array('name' => 'company', 'type' => 'text', 'options' => array('label' => $this->translate('Company'))));
     $this->add(array('name' => 'email', 'options' => array('label' => $this->translate('Email')), 'attributes' => array('type' => 'text')));
     $this->add(array('name' => 'password', 'type' => 'password', 'options' => array('label' => $this->translate('Password')), 'attributes' => array('type' => 'password')));
     $this->add(array('name' => 'submit', 'type' => 'submit', 'attributes' => array('value' => $this->translate('Register'))));
 }
Esempio n. 5
0
 public function __construct()
 {
     // we want to ignore the name passed
     parent::__construct('login');
     $this->add(array('name' => 'email', 'type' => 'Text', 'attributes' => array('id' => 'email', 'class' => 'form-control', 'Placeholder' => 'Enter Email')));
     $this->add(array('name' => 'password', 'type' => 'Password', 'attributes' => array('id' => 'password', 'class' => 'form-control', 'Placeholder' => 'Enter Password')));
     $this->add(array('name' => 'submit', 'type' => 'Submit', 'attributes' => array('value' => 'Login', 'id' => 'btn-login', 'class' => 'btn btn-success mr5')));
     $this->setInputFilter(new LogInInputFilter());
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct('validation');
     $yes = new Submit('yes');
     $yes->setValue('Oui')->setAttributes(array('id' => 'yes', 'class' => 'btn btn-success', 'style' => 'width: 200px;'));
     $this->add($yes);
     $no = new Submit('no');
     $no->setValue('Non')->setAttributes(array('id' => 'no', 'class' => 'btn btn-danger', 'style' => 'width: 200px;'));
     $this->add($no);
 }
Esempio n. 7
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->setAttribute('class', 'form-inline');
     $this->add(array('name' => 'email', 'options' => array('glyphicon' => 'envelope', 'feedback' => TRUE), 'attributes' => array('type' => 'text', 'placeholder' => $this->translate('Email'), 'class' => 'form-control', 'id' => 'email')));
     $this->add(array('name' => 'password', 'type' => 'password', 'options' => array('feedback' => TRUE, 'glyphicon' => 'lock'), 'attributes' => array('type' => 'password', 'placeholder' => $this->translate('Password'), 'class' => 'form-control', 'id' => 'password')));
     $this->add(array('name' => 'remember_me', 'type' => 'checkbox', 'options' => array('use_hidden_element' => false, 'label' => $this->translate('Remember me'), 'label_options' => array('always_wrap' => true))));
     $this->add(array('name' => 'csrf', 'type' => 'csrf'));
     $this->add(array('name' => 'submit', 'type' => 'submit', 'attributes' => array('value' => $this->translate('Sign in'))));
 }
Esempio n. 8
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->setAttribute('class', 'form-horizontal');
     $this->add(array('name' => 'title', 'type' => 'text', 'options' => array('label' => $this->translate('Title'), 'label_attributes' => array('class' => 'col-sm-1 control-label'), 'wrapper_class' => 'col-sm-10', 'help' => $this->translate('Article title')), 'attributes' => array('id' => 'title', 'class' => 'form-control')));
     $this->add(array('name' => 'thumbnail', 'type' => 'imageFile', 'options' => array('label' => $this->translate('Thumbnail'), 'label_attributes' => array('class' => 'col-sm-1 control-label'), 'wrapper_class' => 'col-sm-10', 'help' => $this->translate('Article main image')), 'attributes' => array('id' => 'thumbnail', 'class' => 'js-upload-files')));
     $this->add(array('name' => 'text', 'type' => 'textarea', 'options' => array('label' => $this->translate('Content'), 'label_attributes' => array('class' => 'col-sm-1 control-label'), 'wrapper_class' => 'col-sm-10', 'help' => $this->translate('Article main content')), 'attributes' => array('id' => 'editor', 'class' => 'form-control')));
     $this->add(array('name' => 'author', 'type' => 'DoctrineModule\\Form\\Element\\ObjectSelect', 'options' => array('label' => $this->translate('Author'), 'label_attributes' => array('class' => 'col-sm-1 control-label'), 'wrapper_class' => 'col-sm-1', 'object_manager' => $this->getObjectManager(), 'target_class' => 'User\\Entity\\User', 'property' => 'fullName'), 'attributes' => array('id' => 'author', 'class' => 'form-control')));
     $this->add((new Fieldset('actions'))->add(array('name' => 'submit', 'type' => 'submit', 'options' => array('disable_group_wrapper' => true), 'attributes' => array('value' => $this->translate('Save'), 'class' => 'btn btn-primary')))->setAttribute('class', 'form-group')->setOption('wrapper_class', 'col-sm-offset-1 col-sm-10 btn-group btn-group-lg'));
 }
Esempio n. 9
0
 public function __construct($name = null)
 {
     parent::__construct();
     $this->setInputFilter(new CalendarInputFilter());
     $this->setAttribute('method', 'post');
     $this->setAttribute('class', 'form');
     $this->add(array('name' => 'title', 'type' => 'text', 'attributes' => array('class' => 'required', 'placeholder' => '', 'minlength' => 3), 'options' => array('label' => 'Название события')));
     $this->add(array('name' => 'description', 'type' => 'text', 'attributes' => array('class' => 'required', 'placeholder' => ''), 'options' => array('label' => 'Описание')));
     $this->add(array('name' => 'date', 'type' => 'text', 'attributes' => array('class' => 'required datepicker'), 'options' => array('label' => 'Дата')));
     $this->add(array('name' => 'submit', 'type' => 'submit', 'attributes' => array('value' => 'Войти', 'id' => 'submitbutton')));
 }
Esempio n. 10
0
 public function __construct($name = null)
 {
     parent::__construct();
     $this->setInputFilter(new UserInputFilter());
     $this->setAttribute('method', 'post');
     $this->setAttribute('class', 'form');
     $this->add(array('name' => 'displayName', 'type' => 'text', 'attributes' => array('class' => 'required', 'placeholder' => '', 'minlength' => 3), 'options' => array('label' => 'Имя')));
     $this->add(array('name' => 'email', 'type' => 'text', 'attributes' => array('class' => 'required email', 'placeholder' => ''), 'options' => array('label' => 'Email')));
     $this->add(array('name' => 'password', 'type' => 'text', 'attributes' => array('class' => 'required password', 'placeholder' => '', 'minlength' => 6), 'options' => array('label' => 'Пароль')));
     $this->add(array('name' => 'role', 'type' => 'Zend\\Form\\Element\\Select', 'attributes' => array('class' => 'required form-control', 'placeholder' => ''), 'options' => array('label' => 'Роль', 'value_options' => array(2 => 'Менеджер', 1 => 'Администратор'))));
     $this->add(array('name' => 'submit', 'type' => 'submit', 'attributes' => array('value' => 'Войти', 'id' => 'submitbutton')));
 }
Esempio n. 11
0
 /**
  * Formulaires de suppression
  */
 public function __construct()
 {
     parent::__construct('delete');
     $this->setAttribute('method', 'post');
     $this->setAttributes(array('id' => 'delete', 'role' => 'form'));
     // Non
     $no = new Submit('no');
     $no->setValue('Annuler');
     $no->setAttributes(array('id' => 'no', 'class' => 'btn btn-default'));
     $this->add($no);
     // Oui
     $yes = new Submit('yes');
     $yes->setValue('Supprimer définitivement');
     $yes->setAttributes(array('id' => 'yes', 'class' => 'btn btn-danger'));
     $this->add($yes);
 }
 public function __construct()
 {
     parent::__construct('auth');
     $this->setAttribute('method', 'post');
     $this->setAttributes(array('id' => 'auth', 'role' => 'form'));
     $this->setInputFilter(new AuthForgottenPasswordFilter());
     // Email
     $email = new Email('email');
     $email->setAttributes(array('id' => 'email', 'class' => 'form-control', 'placeholder' => 'Adresse email', 'required' => true, 'autofocus' => true));
     $this->add($email);
     // Submit
     $submit = new Submit('submit');
     $submit->setValue('Valider');
     $submit->setAttributes(array('class' => 'btn btn-primary btn-block'));
     $this->add($submit);
 }
Esempio n. 13
0
 public function __construct(EntityManager $objectManager, $type = self::TYPE_EDIT)
 {
     parent::__construct('auth');
     $this->setAttributes(array('method' => 'post', 'id' => 'auth', 'role' => 'form'));
     $this->setInputFilter(new UtilisateurFilter($objectManager, $type));
     $this->setHydrator(new DoctrineObject($objectManager));
     // Id
     $id = new Hidden('id');
     $this->add($id);
     // Prénom
     $firtname = new Text('prenom');
     $firtname->setAttributes(array('id' => 'prenom', 'class' => 'form-control', 'placeholder' => 'Prénom', 'required' => true, 'autofocus' => true));
     $this->add($firtname);
     // Nom
     $lastname = new Text('nom');
     $lastname->setAttributes(array('id' => 'nom', 'class' => 'form-control', 'placeholder' => 'Nom', 'required' => true, 'autofocus' => true));
     $this->add($lastname);
     // Email
     $email = new Email('email');
     $email->setAttributes(array('id' => 'email', 'class' => 'form-control', 'placeholder' => 'Adresse email', 'required' => true));
     $this->add($email);
     // Password
     $password = new Password('password');
     $password->setAttributes(array('id' => 'password', 'class' => 'form-control', 'placeholder' => 'Mot de passe', 'required' => $type == self::TYPE_ADD, 'autocomplete' => false));
     $this->add($password);
     // Password
     $password = new Password('passwordConfirmation');
     $password->setAttributes(array('id' => 'passwordConfirmation', 'class' => 'form-control', 'placeholder' => 'Confirmation du mot de passe', 'required' => $type == self::TYPE_ADD, 'autocomplete' => false));
     $this->add($password);
     $role = new Select('role');
     $role->setValueOptions(Utilisateur::getStaticRoleList())->setAttributes(array('id' => 'role', 'class' => 'form-control', 'required' => true));
     $this->add($role);
     // Submit
     $submit = new Submit('submit');
     $submit->setValue('Enregistrer');
     $submit->setAttributes(array('class' => 'btn btn-primary'));
     $this->add($submit);
 }
Esempio n. 14
0
 public function __construct(EntityManager $objectManager)
 {
     parent::__construct('auth');
     $this->setAttribute('method', 'post');
     $this->setAttributes(array('id' => 'auth', 'role' => 'form'));
     $this->setInputFilter(new UtilisateurForm($objectManager, UtilisateurForm::TYPE_EDIT));
     // Email
     $email = new Email('email');
     $email->setLabel('Adresse email')->setLabelAttributes(array('class' => 'control-label'))->setAttributes(array('id' => 'email', 'class' => 'form-control', 'placeholder' => 'Adresse email', 'required' => true));
     $this->add($email);
     // Password
     $password = new Password('password');
     $password->setLabel('Mot de passe')->setLabelAttributes(array('class' => 'control-label'))->setAttributes(array('id' => 'password', 'class' => 'form-control', 'placeholder' => 'Mot de passe', 'required' => true));
     $this->add($password);
     // Password
     $password = new Password('passwordConfirmation');
     $password->setLabel('Confirmation du mot de passe')->setLabelAttributes(array('class' => 'control-label'))->setAttributes(array('id' => 'passwordConfirmation', 'class' => 'form-control', 'placeholder' => 'Mot de passe', 'required' => true));
     $this->add($password);
     // Submit
     $submit = new Submit('submit');
     $submit->setValue('Modifier');
     $submit->setAttributes(array('class' => 'btn btn-lg btn-primary btn-block'));
     $this->add($submit);
 }
Esempio n. 15
0
 public function __construct()
 {
     parent::__construct('leadEditForm');
 }
Esempio n. 16
0
 public function __construct($name = null, $options = [])
 {
     parent::__construct($name, $options);
     $this->setAttribute('method', 'post');
     //        $this->setAttribute('class', 'form-horizontal');
 }
Esempio n. 17
0
 public function __construct()
 {
     parent::__construct('attributeMergeForm');
 }
Esempio n. 18
0
 public function __construct($sources = [])
 {
     parent::__construct('sourceMergeForm');
     $this->setSources($sources);
     $this->init();
 }
Esempio n. 19
0
 public function __construct()
 {
     parent::__construct('reportAddForm');
 }
Esempio n. 20
0
 public function __construct()
 {
     parent::__construct('leadSearchForm');
 }