/** * @see \Zend\Form\Form::prepare() */ public function prepare() { if ($this->isPrepared) { return $this; } $oHtmlAttrEscaper = new \Zend\View\Helper\EscapeHtmlAttr(); $this->add(array('name' => 'new_auth_access_credential', 'attributes' => array('id' => 'auth_access_credential', 'type' => 'password', 'required' => true, 'class' => 'required maxLength:32', 'autocomplete' => 'off', 'data-behavior' => 'Form.PasswordStrength'), 'options' => array('label' => 'credential')))->add(array('name' => 'auth_access_credential_confirm', 'attributes' => array('type' => 'password', 'class' => 'required validate-match matchInput:\'new_auth_access_credential\' matchName:\'' . $oHtmlAttrEscaper('"' . $this->getTranslator()->translate('credential') . '"') . '\'', 'required' => true, 'autocomplete' => 'off'), 'options' => array('label' => 'confirm_credential')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'change_credential', 'class' => 'btn-large btn-primary'), 'options' => array('twb' => array('formAction' => true)))); return parent::prepare(); }
/** * @see \Zend\Form\Form::prepare() */ public function prepare() { if ($this->isPrepared) { return $this; } $oHtmlAttrEscaper = new \Zend\View\Helper\EscapeHtmlAttr(); $this->add(array('name' => 'auth_access_email_identity', 'type' => 'email', 'attributes' => array('required' => true, 'autocomplete' => 'off', 'autofocus' => 'autofocus', 'class' => 'required validate-email emailIsAvailable', 'onchange' => 'oController.checkEmailIdentityAvailability(document.id(this));'), 'options' => array('label' => 'email')))->add(array('name' => 'auth_access_username_identity', 'attributes' => array('required' => true, 'autocomplete' => 'off', 'class' => 'required validate-nospace maxLength:255 usernameIsAvailable', 'onchange' => 'oController.checkUsernameIdentityAvailability(document.id(this));'), 'options' => array('label' => 'username')))->add(array('name' => 'auth_access_credential', 'attributes' => array('id' => 'auth_access_credential', 'type' => 'password', 'required' => true, 'class' => 'required maxLength:32', 'autocomplete' => 'off', 'data-behavior' => 'Form.PasswordStrength'), 'options' => array('label' => 'credential')))->add(array('name' => 'auth_access_credential_confirm', 'attributes' => array('type' => 'password', 'class' => 'required validate-match matchInput:\'auth_access_credential\' matchName:\'' . $oHtmlAttrEscaper('"' . $this->getTranslator()->translate('credential') . '"') . '\'', 'required' => true, 'autocomplete' => 'off'), 'options' => array('label' => 'confirm_credential')))->add(array('name' => 'auth_access_captcha', 'type' => 'Zend\\Form\\Element\\Captcha', 'attributes' => array('required' => true, 'placeholder' => sprintf($this->getTranslator()->translate('enter_the_x_characters'), $this->getCaptcha()->getWordlen()), 'autocomplete' => 'off'), 'options' => array('label' => 'im_not_a_robot', 'captcha' => $this->getCaptcha(), 'class' => 'required')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'register', 'class' => 'btn-large btn-primary', 'disabled' => true), 'options' => array('ignore' => true, 'twb' => array('formAction' => true)))); return parent::prepare(); }
/** * Constructor * @param string $sName * @param array $aOptions */ public function __construct($sName = null, $aOptions = null) { parent::__construct($sName, $aOptions); $this->add(array('name' => 'new_auth_access_email_identity', 'attributes' => array('required' => true, 'autofocus' => 'autofocus', 'class' => 'required validate-email emailIsAvailable', 'onchange' => 'oController.checkEmailIdentityAvailability(document.id(this));', 'autocomplete' => 'off'), 'options' => array('label' => 'email')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'change_email', 'class' => 'btn-large btn-primary'), 'options' => array('twb' => array('formAction' => true)))); }
/** * Constructor * @param string $sName * @param array $aOptions */ public function __construct($sName = null, $aOptions = null) { parent::__construct($sName, $aOptions); $this->add(array('name' => 'auth_access_credential', 'attributes' => array('type' => 'password', 'required' => true, 'class' => 'required', 'autofocus' => 'autofocus'), 'options' => array('label' => 'credential', 'twb' => array('help-block' => 'please_type_in_your_credential_to_confirm'))))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'remove_auth_access', 'class' => 'btn-large btn-primary'), 'options' => array('ignore' => true, 'twb' => array('formAction' => true)))); }
/** * Constructor * @param string $sName * @param array $aOptions */ public function __construct($sName = null, $aOptions = null) { parent::__construct($sName, $aOptions); $this->add(array('name' => 'new_user_display_name', 'attributes' => array('required' => true, 'class' => 'required displayNameIsAvailable', 'autofocus' => 'autofocus', 'onchange' => 'oController.checkDisplayNameAvailability(document.id(this));', 'autocomplete' => 'off'), 'options' => array('label' => 'display_name')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'change_display_name', 'class' => 'btn-large btn-primary'), 'options' => array('twb' => array('formAction' => true)))); }
/** * Constructor * @param string $sName * @param array $aOptions */ public function __construct($sName = null, $aOptions = null) { parent::__construct($sName, $aOptions); $this->add(array('name' => 'new_user_avatar', 'type' => 'Zend\\Form\\Element\\File', 'attributes' => array('required' => true, 'class' => 'required validate-file-extension:\'png,jpg,gif,jpeg\'', 'autofocus' => 'autofocus'), 'options' => array('label' => 'avatar')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'change_avatar', 'class' => 'btn-large btn-primary'), 'options' => array('twb' => array('formAction' => true)))); }
/** * Constructor * @param string $sName * @param array $aOptions */ public function __construct($sName = null, $aOptions = null) { parent::__construct($sName, $aOptions); $this->add(array('name' => 'auth_access_identity', 'attributes' => array('placeholder' => 'email_or_username', 'required' => true, 'class' => 'required input-xlarge', 'autofocus' => 'autofocus'), 'options' => array('twb' => array('prepend' => array('type' => 'icon', 'icon' => 'icon-user')))))->add(array('name' => 'auth_access_credential', 'attributes' => array('type' => 'password', 'placeholder' => 'credential', 'required' => true, 'class' => 'required input-xlarge'), 'options' => array('twb' => array('prepend' => array('type' => 'icon', 'icon' => 'icon-lock')))))->add(array('name' => 'auth_access_remember', 'attributes' => array('label' => 'remember_me', 'use_hidden_element' => false, 'type' => 'checkbox', 'class' => 'input-xlarge')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'sign_in', 'class' => 'btn-large btn-primary', 'disabled' => true), 'options' => array('ignore' => true, 'twb' => array('formAction' => true)))); }
/** * Constructor * @param string $sName * @param array $aOptions */ public function __construct($sName = null, $aOptions = null) { parent::__construct($sName, $aOptions); $this->add(array('name' => 'auth_access_identity', 'attributes' => array('required' => true, 'class' => 'required', 'autofocus' => 'autofocus'), 'options' => array('label' => 'email_or_username')))->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => 'reset_credential', 'class' => 'btn-large btn-primary'), 'options' => array('ignore' => true, 'twb' => array('formAction' => true)))); }