Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
UserRecoveryPasswordChangeWidget.php
1 <?php
2 /**
3  *
4  */
5 ?>
6 <div class="user-user-recovery-password-change-widget">
7  <a name="UserRecoveryPasswordChangeWidget"></a>
8 
9  <?php if ($message = Yii::app()->user->getFlash('recoveryMessage')): ?>
10  <div class="success">
11  <?php echo $message; ?>
12  </div>
13  <?php else: ?>
14 
15  <h2><?php echo UserModule::t("Change Password"); ?></h2>
16 
17  <?php if (!empty($model)): ?>
18  <div class="form">
19  <?php $form = $this->beginWidget('CActiveForm', array(
20  'id' => 'changepassword-form',
21  'method' => 'post',
22  'action' => Yii::app()->createUrl('/user/recovery/change', array('return_url' => Yii::app()->request->getParam('return_url', Yii::app()->request->getRequestUri() . '#UserRecoveryPasswordChangeWidget'))),
23 // 'enableAjaxValidation' => true,
24 // 'clientOptions' => array(
25 // 'validateOnSubmit' => true
26 // )
27  ));?>
28  <p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
29  <?php echo $form->errorSummary($model); ?>
30 
31  <?php echo CHtml::hiddenField('email', $email) ?>
32  <?php echo CHtml::hiddenField('activkey', $activkey) ?>
33 
34  <div class="row">
35  <?php echo $form->labelEx($model, 'password'); ?>
36  <?php echo $form->passwordField($model, 'password'); ?>
37  <?php echo $form->error($model, 'password'); ?>
38  <p class="hint">
39  <?php echo UserModule::t("Minimal password length 4 symbols."); ?>
40  </p>
41  </div>
42 
43  <div class="row">
44  <?php echo $form->labelEx($model, 'verifyPassword'); ?>
45  <?php echo $form->passwordField($model, 'verifyPassword'); ?>
46  <?php echo $form->error($model, 'verifyPassword'); ?>
47  </div>
48 
49  <div class="row submit">
50  <?php echo CHtml::submitButton(UserModule::t("Save")); ?>
51  </div>
52 
53  <?php $this->endWidget() ?>
54  </div>
55  <!-- form -->
56  <?php else: ?>
57  <div><?php echo UserModule::t('Wrong recovery link')?></div>
58  <?php endif ?>
59  <?php endif?>
60 </div>