public function __construct() { parent::__construct(); $this->add(array('name' => 'need', 'type' => 'Zend\\Form\\Element\\Checkbox', 'options' => array('label' => 'You have a need'), 'attributes' => array('type' => 'checkbox', 'class' => 'help'))); $this->add(array('name' => 'want', 'type' => 'Zend\\Form\\Element\\Checkbox', 'options' => array('label' => 'You have a want'), 'attributes' => array('type' => 'checkbox', 'class' => 'help'))); $this->add(array('name' => 'read', 'type' => 'Zend\\Form\\Element\\Checkbox', 'options' => array('label' => 'You have a want'), 'attributes' => array('type' => 'checkbox', 'class' => 'read'))); $this->add(array('name' => 'username', 'options' => array('label' => 'Username'), 'attributes' => array('type' => 'text', 'class' => 'form-control', 'id' => 'name', 'placeholder' => 'Full Name e.g:00 000 000'))); $this->add(['name' => "phone", 'options' => ['label' => 'Mobile number'], 'attributes' => ['type' => 'text', 'class' => 'form-control', 'id' => 'phone', 'placeholder' => 'Mobile Number e.g:00 000 000']]); $this->add(array('name' => 'email', 'options' => array('label' => 'Email'), 'attributes' => array('type' => 'text', 'class' => 'form-control', 'id' => 'email', 'placeholder' => 'Email ID'))); $this->add(array('name' => 'display_name', 'options' => array('label' => 'Display Name'), 'attributes' => array('type' => 'text', 'class' => 'form-control'))); $this->add(array('name' => 'password', 'type' => 'password', 'options' => array('label' => 'Password'), 'attributes' => array('type' => 'password', 'class' => 'form-control', 'id' => 'password', 'placeholder' => 'Password'))); $this->add(array('name' => 'passwordVerify', 'type' => 'password', 'options' => array('label' => 'Password Verify'), 'attributes' => array('type' => 'password', 'class' => 'form-control', 'id' => 'confirm_password', 'placeholder' => 'Confirm Password'))); $this->add(array('name' => 'cvv', 'options' => array('label' => 'CVV'), 'attributes' => array('type' => 'text', 'class' => 'form-control', 'id' => 'cvc', 'placeholder' => 'CVV'))); $this->add(array('name' => 'credit_card', 'options' => array('label' => 'Credit card number'), 'attributes' => array('type' => 'text', 'class' => 'form-control', 'id' => 'card-number', 'placeholder' => 'Credit Card'))); $this->add(array('name' => 'expiration_date', 'options' => array('label' => 'Expiration date'), 'attributes' => array('type' => 'text', 'class' => 'form-control', 'id' => 'date', 'placeholder' => 'Expiration Date e.g: mm/yyyy'))); $this->add(array('type' => 'Zend\\Form\\Element\\Select', 'name' => 'language', 'attributes' => ['options' => ['Select Language' => 'Select Language', 'En' => 'En', 'Fr' => 'Fr'], 'class' => 'form-control', 'id' => 'language'], 'options' => array('label' => 'Which is your mother tongue?'))); $this->add(array('name' => 'postalCode', 'options' => array('label' => 'Postal Code'), 'attributes' => array('type' => 'text', 'class' => 'form-control', 'id' => 'postal_code', 'placeholder' => 'Postal Code e.g: 000 000'))); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Submit')->setAttributes(array('type' => 'submit', 'class' => 'btn_one')); $this->add($submitElement, array('priority' => -100)); $this->add(array('name' => 'userId', 'type' => 'Zend\\Form\\Element\\Hidden', 'attributes' => array('type' => 'hidden'))); // @TODO: Fix this... getValidator() is a protected method. //$csrf = new Element\Csrf('csrf'); //$csrf->getValidator()->setTimeout($this->getRegistrationOptions()->getUserFormTimeout()); //$this->add($csrf); }
public function __construct($name = null, AuthenticationOptionsInterface $options) { $this->setAuthenticationOptions($options); parent::__construct($name); $this->add(array('name' => 'identity', 'options' => array('label' => ''), 'attributes' => array('type' => 'text'))); $emailElement = $this->get('identity'); $label = $emailElement->getLabel('label'); // @TODO: make translation-friendly foreach ($this->getAuthenticationOptions()->getAuthIdentityFields() as $mode) { $label = (!empty($label) ? $label . ' or ' : '') . ucfirst($mode); } $emailElement->setLabel($label); // $this->add(array('name' => 'credential', 'options' => array('label' => 'Password'), 'attributes' => array('type' => 'password'))); // @todo: Fix this // 1) getValidator() is a protected method // 2) i don't believe the login form is actually being validated by the login action // (but keep in mind we don't want to show invalid username vs invalid password or // anything like that, it should just say "login failed" without any additional info) //$csrf = new Element\Csrf('csrf'); //$csrf->getValidator()->setTimeout($options->getLoginFormTimeout()); //$this->add($csrf); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Sign In')->setAttributes(array('type' => 'submit')); $this->add($submitElement, array('priority' => -100)); $this->getEventManager()->trigger('init', $this); }
public function __construct($name, AuthenticationOptionsInterface $options) { $this->setAuthenticationOptions($options); parent::__construct($name); $this->add(array('name' => 'identity', 'options' => array('label' => 'Adresse e-mail'), 'attributes' => array('type' => 'text', 'class' => 'form-control input-lg', 'placeholder' => 'Adresse e-mail ou code client', 'data-validation-engine' => 'validate[required]'))); $emailElement = $this->get('identity'); $label = $emailElement->getLabel('label'); // @TODO: make translation-friendly foreach ($this->getAuthenticationOptions()->getAuthIdentityFields() as $mode) { //$label = (!empty($label) ? $label . ' or ' : '') . ucfirst($mode); $label = (!empty($label) ? $label . ' ou ' : '') . 'code client'; } $emailElement->setLabel($label); // $this->add(array('name' => 'credential', 'options' => array('label' => 'Mot de passe'), 'attributes' => array('type' => 'password', 'class' => 'form-control input-lg', 'placeholder' => 'Mot de passe', 'data-validation-engine' => 'validate[required]'))); // @todo: Fix this // 1) getValidator() is a protected method // 2) i don't believe the login form is actually being validated by the login action // (but keep in mind we don't want to show invalid code vs invalid password or // anything like that, it should just say "login failed" without any additional info) //$csrf = new Element\Csrf('csrf'); //$csrf->getValidator()->setTimeout($options->getLoginFormTimeout()); //$this->add($csrf); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Connexion')->setAttributes(array('type' => 'submit', 'class' => 'btn btn-primary btn-lg btn-block')); $this->add($submitElement, array('priority' => -100)); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null) { parent::__construct($name); $this->setInputFilter(new InputFilter()); $this->add(array('name' => 'identity', 'options' => array('label' => 'Email Address:'), 'attributes' => array('type' => 'text', 'placeholder' => 'Email'))); $this->add(array('name' => 'btnSubmit', 'attributes' => array('type' => 'submit', 'value' => 'Reset Password'))); $this->getEventManager()->trigger('init', $this); }
public function __construct() { parent::__construct(); $this->add(array('name' => 'email_address', 'options' => array('label' => 'Email Address'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'submit', 'attributes' => array('value' => 'Verify Email Address', 'type' => 'submit'))); $this->add(new Csrf('csrf')); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null) { parent::__construct($name); $this->add(array('name' => 'id', 'options' => array('label' => ''), 'attributes' => array('type' => 'hidden'))); $this->add(array('name' => 'newCredential', 'options' => array('label' => 'Nouveau mot de passe'), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'newCredentialVerify', 'options' => array('label' => 'Vérification nouveau mot de passe'), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'submit', 'attributes' => array('value' => 'Enregistrer', 'type' => 'submit', 'class' => 'btn btn-small btn-primary'))); }
/** * {@inheritDoc} */ public function __construct($name = null) { parent::__construct($name); $this->add(['name' => 'email', 'options' => ['label' => 'Email']]); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Request new password')->setAttributes(['type' => 'submit']); $this->add($submitElement, ['priority' => -100]); $this->getEventManager()->trigger('init', $this); }
public function __construct() { parent::__construct('profile_image_upload'); $this->setAttribute('class', 'image_upload_form'); $this->setAttribute('enctype', 'multipart/form-data'); $this->add(['name' => 'image', 'type' => 'File']); $this->add(['name' => 'submit', 'type' => 'Submit', 'attributes' => ['value' => 'Upload', 'class' => 'btn btn-lg btn-success']]); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null) { parent::__construct($name); $this->setInputFilter(new InputFilter()); $this->add(array('name' => 'credential', 'attributes' => array('type' => 'password', 'placeholder' => 'Password'))); $this->add(array('name' => 'confirm', 'attributes' => array('type' => 'password', 'placeholder' => 'Confirm Password'))); $this->add(array('name' => 'btnSubmit', 'attributes' => array('type' => 'submit', 'value' => 'Login'))); $this->getEventManager()->trigger('init', $this); }
/** * {@inheritDoc} */ public function __construct($name = null) { parent::__construct($name); $this->add(['name' => 'newCredential', 'options' => ['label' => 'New Password'], 'attributes' => ['type' => 'password']]); $this->add(['name' => 'newCredentialVerify', 'options' => ['label' => 'Verify New Password'], 'attributes' => ['type' => 'password']]); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Set new password')->setAttributes(['type' => 'submit']); $this->add($submitElement, ['priority' => -100]); $this->getEventManager()->trigger('init', $this); }
public function __construct($name, AuthenticationOptionsInterface $options) { $this->setAuthenticationOptions($options); parent::__construct($name); $this->add(array('name' => 'email', 'options' => array('label' => 'Email Address', 'label_attributes' => array('class' => 'visuallyhidden')), 'attributes' => array('type' => 'text', 'placeholder' => 'Email Address'))); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Submit')->setAttributes(array('type' => 'submit')); $this->add($submitElement, array('priority' => -100)); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null, AuthenticationOptionsInterface $options) { $this->setAuthenticationOptions($options); parent::__construct($name); $this->add(array('name' => 'identity', 'options' => array('label' => ''), 'attributes' => array('type' => 'hidden'))); $this->add(array('name' => 'newIdentity', 'options' => array('label' => 'New Email'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'newIdentityVerify', 'options' => array('label' => 'Verify New Email'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'credential', 'options' => array('label' => 'Password'), 'attributes' => array('type' => 'password'))); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null, ForgotOptionsInterface $options) { $this->setForgotOptions($options); parent::__construct($name); $this->add(array('name' => 'email', 'options' => array('label' => 'Email'))); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Request new password')->setAttributes(array('type' => 'submit')); $this->add($submitElement, array('priority' => -100)); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null, ForgotOptionsInterface $options) { $this->setForgotOptions($options); parent::__construct($name); $this->add(array('name' => 'email', 'options' => array('label' => 'E-Mail'), 'attributes' => array('type' => 'text', 'required' => 'required', 'class' => 'form-control input-md', 'placeholder' => 'email'))); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Request new password')->setAttributes(array('type' => 'submit', 'class' => 'btn btn-tempelle btn-md')); $this->add($submitElement, array('priority' => -100)); $this->getEventManager()->trigger('init', $this); }
/** * @param string|null $name * @param RegistrationOptionsInterface $options */ public function __construct($name = null) { parent::__construct($name); $this->setAttribute('method', 'post'); $this->add(array('name' => 'idoption', 'attributes' => array('type' => 'hidden'))); $this->add(array('name' => 'name', 'attributes' => array('type' => 'text'), 'options' => array('label' => 'Name'))); $this->add(array('name' => 'color', 'attributes' => array('type' => 'color'), 'options' => array('label' => 'Color'))); $this->add(array('name' => 'hashtag', 'attributes' => array('type' => 'text'), 'options' => array('label' => 'Hashtag'))); $this->get('submit')->setLabel('Submit'); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null, ForgotOptionsInterface $forgotOptions) { $this->setForgotOptions($forgotOptions); parent::__construct($name); $this->add(array('name' => 'newCredential', 'options' => array('label' => 'New Password'), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'newCredentialVerify', 'options' => array('label' => 'Verify New Password'), 'attributes' => array('type' => 'password'))); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Set new password')->setAttributes(array('type' => 'submit')); $this->add($submitElement, array('priority' => -100)); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null) { parent::__construct($name); $this->setInputFilter(new InputFilter()); $this->add(array('name' => 'identity', 'options' => array('label' => 'Email Address:'), 'attributes' => array('type' => 'text', 'placeholder' => 'Email'))); $this->add(array('name' => 'credential', 'options' => array('label' => 'Password'), 'attributes' => array('type' => 'password', 'placeholder' => 'Password'))); $this->add(array('name' => 'remember_me', 'options' => array('label' => 'Remember Me?'), 'type' => 'checkbox', 'attributes' => array('value' => 'remember_me'))); $this->add(array('name' => 'btnSubmit', 'attributes' => array('type' => 'submit', 'value' => 'Login'))); $this->add(array('name' => 'btnRegister', 'attributes' => array('type' => 'register', 'value' => 'Register'))); $this->getEventManager()->trigger('init', $this); }
public function __construct($name, AuthenticationOptionsInterface $options) { $this->setAuthenticationOptions($options); parent::__construct($name); $this->add(array('name' => 'identity', 'options' => array('label' => ''), 'attributes' => array('type' => 'hidden'))); $this->add(array('name' => 'credential', 'type' => 'password', 'options' => array('label' => 'Current Password'), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'newCredential', 'options' => array('label' => 'New Password'), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'newCredentialVerify', 'type' => 'password', 'options' => array('label' => 'Verify New Password'), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'submit', 'attributes' => array('value' => 'Submit', 'type' => 'submit'))); $this->getEventManager()->trigger('init', $this); }
public function __construct($name = null) { $this->setInputFilter(new InputFilter()); parent::__construct($name); $this->add(array('name' => 'first_name', 'options' => array('label' => 'First Name*:'), 'attributes' => array('type' => 'text', 'placeholder' => 'First Name', 'required' => 'required'))); $this->add(array('name' => 'last_name', 'options' => array('label' => 'Last Name*:'), 'attributes' => array('type' => 'text', 'placeholder' => 'Last Name', 'required' => 'required'))); $this->add(array('name' => 'email', 'options' => array('label' => 'Email*:'), 'attributes' => array('type' => 'text', 'placeholder' => 'Email Address', 'required' => 'required'))); $this->add(array('name' => 'password', 'options' => array('label' => 'Password*:'), 'attributes' => array('type' => 'password', 'required' => 'required'))); $this->add(array('name' => 'confirm', 'options' => array('label' => 'Confirm Password*:'), 'attributes' => array('type' => 'password', 'required' => 'required'))); $this->add(array('name' => 'btnSubmit', 'attributes' => array('type' => 'submit', 'value' => 'Register'))); $this->getEventManager()->trigger('init', $this); }
/** * @param int|null|string $name * @param AuthenticationOptionsInterface $options */ public function __construct($name, AuthenticationOptionsInterface $options) { $this->setAuthenticationOptions($options); parent::__construct($name); $i = 0; $this->setAttribute('id', $name); $this->add(array('name' => Usuario::FLD_EMAIL, 'tabindex' => $i, 'type' => 'text', 'attributes' => array('class' => ' col-sm-10', 'placeholder' => Usuario::LBL_EMAIL))); ++$i; $this->add(array('name' => Usuario::FLD_BTN_CONFIRMAR, 'type' => 'button', 'tabindex' => $i, 'attributes' => array('id' => Usuario::FLD_BTN_CONFIRMAR, 'class' => 'btn-success pull-right'), 'options' => array('label' => Usuario::LBL_BTN_CONFIRMAR))); ++$i; $this->add(array('name' => Usuario::FLD_BTN_CANCELAR, 'type' => 'button', 'tabindex' => $i, 'attributes' => array('onclick' => 'cancelar(this)', 'class' => 'btn-default pull-right margin-left-right-10px'), 'options' => array('label' => Usuario::LBL_BTN_CANCELAR))); $this->getEventManager()->trigger('init', $this); }
/** * @param int|null|string $name * @param AuthenticationOptionsInterface $options */ public function __construct($name, AuthenticationOptionsInterface $options) { $this->setAuthenticationOptions($options); parent::__construct($name); $i = 0; $this->add(array('name' => 'identity', 'options' => array('label' => ''), 'attributes' => array('type' => 'hidden'))); $this->add(array('name' => 'credential', 'options' => array('label' => Usuario::LBL_SENHA_ANTIGA), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'newCredential', 'options' => array('label' => Usuario::LBL_NOVA_SENHA), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'newCredentialVerify', 'options' => array('label' => Usuario::LBL_CONFIRM_NOVA_SENHA), 'attributes' => array('type' => 'password'))); $this->add(array('name' => Usuario::FLD_BTN_CONFIRMAR, 'type' => 'button', 'tabindex' => $i, 'attributes' => array('id' => Usuario::FLD_BTN_CONFIRMAR, 'class' => 'btn-primary pull-right width-35 btn-sm'), 'options' => array('label' => Usuario::LBL_BTN_CONFIRMAR, 'glyphicon' => 'ok'))); ++$i; $this->add(array('name' => Usuario::FLD_BTN_CANCELAR, 'type' => 'button', 'tabindex' => $i, 'attributes' => array('data-href' => 'login', 'onclick' => 'cancelar(this)', 'class' => 'btn btn-default pull-right margin-left-right-10px width-35 btn-sm'), 'options' => array('label' => Usuario::LBL_BTN_CANCELAR, 'glyphicon' => 'remove'))); $this->getEventManager()->trigger('init', $this); }
/** * @param int|null|string $name * @param AuthenticationOptionsInterface $options */ public function __construct($name, AuthenticationOptionsInterface $options) { $this->setAuthenticationOptions($options); parent::__construct($name); $this->setAttribute('id', $name); $i = 0; $this->add(array('name' => Usuario::FLD_IDENTITY, 'tabindex' => $i, 'type' => '\\Zend\\Form\\Element\\Text', 'attributes' => array('class' => ' col-sm-10', 'placeholder' => Usuario::LBL_IDENTITY))); ++$i; $this->add(array('name' => Usuario::FLD_SENHA, 'tabindex' => $i, 'type' => '\\Zend\\Form\\Element\\Password', 'attributes' => array('class' => '', 'placeholder' => Usuario::LBL_SENHA))); ++$i; $this->add(array('name' => Usuario::FLD_REDIRECT, 'type' => '\\Zend\\Form\\Element\\Hidden')); $this->add(array('name' => Usuario::FLD_ENTRAR, 'type' => 'button', 'tabindex' => $i, 'attributes' => array('type' => 'submit', 'class' => 'btn btn-primary btn-block btn-flat'), 'options' => array('label' => Usuario::LBL_ENTRAR, 'glyphicon' => 'lock'))); $this->getEventManager()->trigger('init', $this); }
public function __construct() { parent::__construct(); $this->add(array('name' => 'username', 'options' => array('label' => 'Username'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'email', 'options' => array('label' => 'Email'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'display_name', 'options' => array('label' => 'Display Name'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'password', 'type' => 'password', 'options' => array('label' => 'Password'), 'attributes' => array('type' => 'password'))); $this->add(array('name' => 'passwordVerify', 'type' => 'password', 'options' => array('label' => 'Password Verify'), 'attributes' => array('type' => 'password'))); $submitElement = new Element\Button('submit'); $submitElement->setLabel('Submit')->setAttributes(array('type' => 'submit')); $this->add($submitElement, array('priority' => -100)); $this->add(array('name' => 'id', 'type' => 'Zend\\Form\\Element\\Hidden', 'attributes' => array('type' => 'hidden'))); // @TODO: Fix this... getValidator() is a protected method. //$csrf = new Element\Csrf('csrf'); //$csrf->getValidator()->setTimeout($this->getRegistrationOptions()->getUserFormTimeout()); //$this->add($csrf); }
public function __construct() { parent::__construct(); $this->add(array('name' => 'username', 'options' => array('label' => '用户名'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'email', 'options' => array('label' => '邮箱'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'display_name', 'options' => array('label' => '昵称'), 'attributes' => array('type' => 'text'))); $this->add(array('name' => 'password', 'options' => array('label' => '登陆密码'), 'attributes' => array('type' => 'password', 'id' => 'password'))); $this->add(array('name' => 'passwordVerify', 'options' => array('label' => '确认密码'), 'attributes' => array('type' => 'password'))); if ($this->getRegistrationOptions()->getUseRegistrationFormCaptcha()) { $captcha_image = new Image(array('font' => './public/captcha/font/4.ttf', 'imgDir' => 'public/captcha/images/', 'imgUrl' => '/captcha/images/', 'dotNoiseLevel' => 0, 'lineNoiseLevel' => 0, 'width' => 100, 'height' => 30, 'fsize' => 16, 'wordLen' => 4)); $this->add(array('name' => 'captcha', 'type' => 'Zend\\Form\\Element\\Captcha', 'options' => array('label' => '验证码', 'captcha' => $captcha_image), 'attributes' => array('maxlength' => '4'))); } $submitElement = new Element\Button('submit'); $submitElement->setLabel('Submit')->setAttributes(array('type' => 'submit')); $this->add($submitElement, array('priority' => -100)); $this->add(array('name' => 'userId', 'type' => 'Zend\\Form\\Element\\Hidden', 'attributes' => array('type' => 'hidden'))); // @TODO: Fix this... getValidator() is a protected method. //$csrf = new Element\Csrf('csrf'); //$csrf->getValidator()->setTimeout($this->getRegistrationOptions()->getUserFormTimeout()); //$this->add($csrf); }
public function __construct($options = null) { parent::__construct($options); $this->events()->trigger('construct.post', $this); }