EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
login.php
Go to the documentation of this file.
1 <?php
2 /* @var $this SiteController */
3 /* @var $model LoginForm */
4 /* @var $form CActiveForm */
5 
6 $this->pageTitle=Yii::app()->name . ' - Login';
7 $this->breadcrumbs=array(
8  'Login',
9 );
10 ?>
11 
12 <h1>Login</h1>
13 
14 <p>Please fill out the following form with your login credentials:</p>
15 
16 <div class="form">
17 <?php $form=$this->beginWidget('CActiveForm', array(
18  'id'=>'login-form',
19  'enableClientValidation'=>true,
20  'clientOptions'=>array(
21  'validateOnSubmit'=>true,
22  ),
23 )); ?>
24 
25  <p class="note">Fields with <span class="required">*</span> are required.</p>
26 
27  <div class="row">
28  <?php echo $form->labelEx($model,'username'); ?>
29  <?php echo $form->textField($model,'username'); ?>
30  <?php echo $form->error($model,'username'); ?>
31  </div>
32 
33  <div class="row">
34  <?php echo $form->labelEx($model,'password'); ?>
35  <?php echo $form->passwordField($model,'password'); ?>
36  <?php echo $form->error($model,'password'); ?>
37 
38  </div>
39 
40  <div class="row rememberMe">
41  <?php echo $form->checkBox($model,'rememberMe'); ?>
42  <?php echo $form->label($model,'rememberMe'); ?>
43  <?php echo $form->error($model,'rememberMe'); ?>
44  </div>
45 
46  <div class="row buttons">
47  <?php echo "<a href=./index.php?r=site/register>Register</a>" ?>
48  </div>
49 
50  <div class="row buttons">
51  <?php echo CHtml::submitButton('Login'); ?>
52  </div>
53 
54 <?php $this->endWidget(); ?>
55 </div><!-- form -->
56 
57