HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
changepassword.php
Go to the documentation of this file.
1 <?php $this->pageTitle = Yii::app()->name.' - '.UserModule::t("Change Password");
2 $this->breadcrumbs = array(
3  UserModule::t("Profile") => array('/user/profile'),
4  UserModule::t("Change Password"),
5 );
6 $this->menu = array(
7  array('label' => UserModule::t('Profile'), 'url' => array('/user/profile')),
8  array('label' => UserModule::t('Edit'), 'url' => array('edit')),
9  array('label' => UserModule::t('Logout'), 'url' => array('/user/logout')),
10 );
11 ?>
12 
13 <h1><?php echo UserModule::t("Change password"); ?></h1>
14 
15 <div class="form">
16 <?php $form = $this->beginWidget('CActiveForm', array(
17  'id' => 'changepassword-form',
18  'enableAjaxValidation' => true,
19  'clientOptions' => array(
20  'validateOnSubmit' => true,
21  ),
22 )); ?>
23 
24  <p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
25  <?php echo $form->errorSummary($model); ?>
26 
27  <div class="row">
28  <?php echo $form->labelEx($model, 'oldPassword'); ?>
29  <?php echo $form->passwordField($model, 'oldPassword'); ?>
30  <?php echo $form->error($model, 'oldPassword'); ?>
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  <?php echo UserModule::t("Minimal password length 4 symbols."); ?>
39  </p>
40  </div>
41 
42  <div class="row">
43  <?php echo $form->labelEx($model, 'verifyPassword'); ?>
44  <?php echo $form->passwordField($model, 'verifyPassword'); ?>
45  <?php echo $form->error($model, 'verifyPassword'); ?>
46  </div>
47 
48 
49  <div class="row submit">
50  <?php echo CHtml::submitButton(UserModule::t("Save")); ?>
51  </div>
52 
53 <?php $this->endWidget(); ?>
54 </div><!-- form -->