Skip to content

Commit 1659924

Browse files
committed
Use password input partial from tom_common
Depends on TOMToolkit/tom_base#1555
1 parent c05b5ef commit 1659924

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

tom_eso/templates/tom_eso/partials/eso_user_profile.html

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ <h4 class="card-title">ESO Facility User Info</h4>
2222
<dt class="col-sm-6">{{ field_data.label }}</dt>
2323
<dd class="col-sm-6">
2424
{% if field_data.is_password %}
25-
<div style="cursor:pointer;"
26-
title="Click to reveal"
27-
onclick="var i=this.querySelector('input'); i.type = i.type === 'password' ? 'text':'password';">
28-
<input
29-
type="password"
30-
readonly
31-
value="{{ field_data.value }}"
32-
class="form-control-plaintext p-0"
33-
style="display:inline; width:auto; cursor:pointer;"
34-
/> <i class="fa fa-eye"></i>
35-
</div>
25+
{% include 'tom_common/partials/revealable_password_input.html' with value=field_data.value %}
3626
{% else %}
3727
{{ field_data.value }}
3828
{% endif %}

0 commit comments

Comments
 (0)