HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes 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  <p class="hint">
38  Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>.
39  </p>
40  </div>
41 
42  <div class="row rememberMe">
43  <?php echo $form->checkBox($model,'rememberMe'); ?>
44  <?php echo $form->label($model,'rememberMe'); ?>
45  <?php echo $form->error($model,'rememberMe'); ?>
46  </div>
47 
48  <div class="row buttons">
49  <?php echo CHtml::submitButton('Login'); ?>
50  </div>
51 
52 <?php $this->endWidget(); ?>
53 </div><!-- form -->