Skip to content

Commit

Permalink
Dev Fixed some wording, removed asterisks from password field when ed…
Browse files Browse the repository at this point in the history
…iting user, because they were more confusing than helpful
  • Loading branch information
c-schmitz committed Jan 29, 2024
1 parent f9bd362 commit 7a520a6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions application/views/userManagement/partial/addedituser.php
Expand Up @@ -43,7 +43,7 @@
<?php echo $form->error($oUser, 'email'); ?>
</div>
<div class="mb-3">
<label class="form-label" for='expires'><?php eT("Expire date/time:"); ?></label>
<label class="form-label" for='expires'><?php eT("Expiry date/time"); ?></label>
<div class="has-feedback">
<?php
Yii::app()->getController()->widget('ext.DateTimePickerWidget.DateTimePicker', [
Expand Down Expand Up @@ -107,21 +107,20 @@
$oUser,
'password',
($oUser->isNewRecord
? ['id' => 'User_Form_password', 'value' => '', 'placeholder' => '********']
? ['id' => 'User_Form_password', 'value' => '']
: ['id' => 'User_Form_password',
'value' => '',
'placeholder' => '********',
"disabled" => "disabled"
]
)
); ?>
<?php echo $form->error($oUser, 'password'); ?>
</div>
<div class="mb-3">
<label for="password_repeat" class="required" required><?= gT("Password safety") ?> <span
<label for="password_repeat" class="required" required><?= gT("Repeat password") ?> <span
class="required">*</span></label>
<input name="password_repeat"
placeholder='********' <?= ($oUser->isNewRecord ? '' : 'disabled="disabled"') ?> id="password_repeat"
<?= ($oUser->isNewRecord ? '' : 'disabled="disabled"') ?> id="password_repeat"
class="form-control" type="password">
</div>
<?php if ($oUser->isNewRecord) { ?>
Expand Down

0 comments on commit 7a520a6

Please sign in to comment.