SigninForm.class.php 585 Bytes
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
<?php

class SigninForm extends BaseSigninForm
{
  public function configure()
  {
    $this->disableCSRFProtection();
    $this->useFields(array('username', 'password'));
    $this->widgetSchema['username'] = new sfWidgetFormInputText(array('label' => '&nbsp;'), array('size' => 24, 'placeholder' => 'Логин', 'required' => true, 'autocomplete' => 'off', 'autofocus' => 'on'));
    $this->widgetSchema['password'] = new sfWidgetFormInputPassword(array('label' => '&nbsp;'), array('size' => 24, 'placeholder' => 'Пароль', 'required' => true, 'autocomplete' => 'off'));
  }
}