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 <div class="page-header">
12  <h1>Login <small>to your account</small></h1>
13 </div>
14 <div class="row-fluid">
15 
16  <div class="span6 offset3">
17 <?php
18  $this->beginWidget('zii.widgets.CPortlet', array(
19  'title'=>"Private access",
20  ));
21 
22 ?>
23 
24 
25 
26  <p>Please fill out the following form with your login credentials:</p>
27 
28  <div class="form">
29  <?php $form=$this->beginWidget('CActiveForm', array(
30  'id'=>'login-form',
31  'enableClientValidation'=>true,
32  'clientOptions'=>array(
33  'validateOnSubmit'=>true,
34  ),
35  )); ?>
36 
37  <p class="note">Fields with <span class="required">*</span> are required.</p>
38 
39  <div class="row">
40  <?php echo $form->labelEx($model,'username'); ?>
41  <?php echo $form->textField($model,'username'); ?>
42  <?php echo $form->error($model,'username'); ?>
43  </div>
44 
45  <div class="row">
46  <?php echo $form->labelEx($model,'password'); ?>
47  <?php echo $form->passwordField($model,'password'); ?>
48  <?php echo $form->error($model,'password'); ?>
49  <p class="hint">
50  Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>.
51  </p>
52  </div>
53 
54  <div class="row rememberMe">
55  <?php echo $form->checkBox($model,'rememberMe'); ?>
56  <?php echo $form->label($model,'rememberMe'); ?>
57  <?php echo $form->error($model,'rememberMe'); ?>
58  </div>
59 
60  <div class="row buttons">
61  <?php echo CHtml::submitButton('Login',array('class'=>'btn btn btn-primary')); ?>
62  </div>
63 
64  <?php $this->endWidget(); ?>
65  </div><!-- form -->
66 
67 <?php $this->endWidget();?>
68 
69  </div>
70 
71 </div>