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 
18 <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
19  'id'=>'login-form',
20  'type'=>'horizontal',
21  'enableClientValidation'=>true,
22  'clientOptions'=>array(
23  'validateOnSubmit'=>true,
24  ),
25 )); ?>
26 
27  <p class="note">Fields with <span class="required">*</span> are required.</p>
28 
29  <?php echo $form->textFieldRow($model,'username'); ?>
30 
31  <?php echo $form->passwordFieldRow($model,'password',array(
32  'hint'=>'Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>',
33  )); ?>
34 
35  <?php echo $form->checkBoxRow($model,'rememberMe'); ?>
36 
37  <div class="form-actions">
38  <?php $this->widget('bootstrap.widgets.TbButton', array(
39  'buttonType'=>'submit',
40  'type'=>'primary',
41  'label'=>'Login',
42  )); ?>
43  </div>
44 
45 <?php $this->endWidget(); ?>
46 
47 </div><!-- form -->