Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
UserPasswordChangeWidget.php
1 <?php
2 /**
3 * Gentics Portal.Node PHP
4 * Author & Copyright (c) by Gentics Software GmbH
5 * sales@gentics.com
6 * http://www.gentics.com
7 * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8 * You must not use this software without a valid license agreement.
9 *
10 */
11 ?>
12 <div class="user-password-change-widget">
13  <a name="PasswordChangeWidget"></a>
14  <h2><?php echo UserModule::t("Change Password"); ?></h2>
15  <?php if ($message = Yii::app()->user->getFlash('passwordChangeMessage')) { ?>
16  <div class="success">
17  <?php echo $message?>
18  </div>
19  <?php }?>
20  <div class="form">
21  <?php $form = $this->beginWidget('CActiveForm', array(
22  'id' => 'changepassword-form',
23  'method' => 'post',
24  'action' => Yii::app()->createUrl('/user/profile/changepassword', array('return_url' => Yii::app()->request->getParam('return_url', Yii::app()->request->getRequestUri().'#PasswordChangeWidget'))),
25  'enableAjaxValidation' => true,
26  'clientOptions' => array(
27  'validateOnSubmit' => true
28  )
29  ) );?>
30  <p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
31  <?php echo $form->errorSummary($model); ?>
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  <div class="row submit">
49  <?php echo CHtml::submitButton(UserModule::t("Save")); ?>
50  </div>
51 
52  <?php $this->endWidget() ?>
53  </div><!-- form -->
54 </div>