Created
August 30, 2014 18:24
-
-
Save cezar08/78cd6694b718f687fd42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Admin\Form; | |
| use Zend\Form\Form; | |
| class Login extends Form { | |
| public function __construct() { | |
| parent::__construct('login'); | |
| $this->setAttribute('method', 'post'); | |
| $this->setAttribute('action', '/admin/auth/login'); | |
| $this->add(array( | |
| 'type' => 'text', | |
| 'name' => 'login', | |
| 'options' => array( | |
| 'label' => 'Usuário:' | |
| ), | |
| 'attributes' => array( | |
| 'placeholder' => 'Entre com o seu usuário' | |
| ), | |
| ) | |
| ); | |
| $this->add(array( | |
| 'type' => 'password', | |
| 'name' => 'password', | |
| 'options' => array( | |
| 'label' => 'Senha:' | |
| ), | |
| 'attributes' => array( | |
| 'placeholder' => 'Entre com sua senha' | |
| ), | |
| ) | |
| ); | |
| $this->add(array( | |
| 'type' => 'submit', | |
| 'name' => 'submit', | |
| 'attributes' => array( | |
| 'value' => 'Entrar' | |
| ), | |
| ) | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment