Skip to content

Commit

Permalink
SAK-21180 Fixed the showing of labels for password change when the fi…
Browse files Browse the repository at this point in the history
…elds were not shown

Patch from Raúl E. Mengod López - [email protected]

git-svn-id: https://source.sakaiproject.org/svn/user/trunk@310186 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
Aaron Zeckoski committed Jun 12, 2014
1 parent c18b4ba commit ee78942
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions user/user-tool/tool/src/webapp/vm/user/chef_users_edit.vm
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,22 @@ function removeOptionalAttributeBlock(elem) {
</div>
#if ($incPw)
#if(!$!superUser)
<div class="shorttext">
<label for="pwcur">
<span class="reqStar">*</span> $tlang.getString("usecre.vercurpass")
</label>
#if ($service.allowUpdateUserName($user.Id) || $service.allowUpdateUserEmail($user.Id) || $service.allowUpdateUserPassword($user.Id) || !$user)
<input type="password" name="pwcur" id="pwcur" oninput="USER.validateCurrentPassword();" onkeyup="USER.validateCurrentPassword();" autocomplete="off" />
#else
&nbsp;
#end
</div>
#if ($service.allowUpdateUserName($user.Id) || $service.allowUpdateUserEmail($user.Id) || $service.allowUpdateUserPassword($user.Id) || !$user)
<div class="shorttext">
<label for="pwcur">
<span class="reqStar">*</span> $tlang.getString("usecre.vercurpass")
</label>
<input type="password" name="pwcur" id="pwcur" oninput="USER.validateCurrentPassword();" onkeyup="USER.validateCurrentPassword();" autocomplete="off" />
</div>
#else
&nbsp;
#end
#end
#if ($service.allowUpdateUserPassword($user.Id) || !$user)
<div class="shorttext">
<label for="pw">
$tlang.getString("usecre.crenewpass")
</label>
#if ($service.allowUpdateUserPassword($user.Id) || !$user)
<input type="password" name="pw" id="pw" oninput="USER.validatePassword();" onkeyup="USER.validatePassword();" onblur="USER.displayStrengthInfo();" onfocus="USER.displayStrengthInfo();" autocomplete="off" />
<div id="strongMsg" style="display:none">$tlang.getString("pw.strong")</div>
<div id="moderateMsg" style="display:none">$tlang.getString("pw.moderate")</div>
Expand All @@ -136,22 +136,18 @@ function removeOptionalAttributeBlock(elem) {
<span id="strengthBarMeter" style="display:none"></span>
</div>
<div id="strengthInfo" style="display:none">$tlang.getString("pw.strengthInfo")</div>
#else
&nbsp;
#end
</div>
<div class="shorttext">
<label for="pw0">
$tlang.getString("usecre.vernewpass")
</label>
#if ($service.allowUpdateUserPassword($user.Id) || !$user)
<input type="password" name="pw0" id="pw0" oninput="USER.verifyPasswordsMatch();" onkeyup="USER.verifyPasswordsMatch();" autocomplete="off" />
<div id="matchMsg" style="display:none">$tlang.getString("pw.match")</div>
<div id="noMatchMsg" style="display:none">$tlang.getString("pw.noMatch")</div>
#else
&nbsp;
#end
</div>
</div>
#else
&nbsp;
#end
#end
#if ($incType)
<div class="shorttext">
Expand Down

0 comments on commit ee78942

Please sign in to comment.