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