Hide/show button for password field (Closes: #777)

This commit is contained in:
Xavier Guimard 2016-01-24 11:47:52 +00:00
parent 9c091836b2
commit d55649c2b9
3 changed files with 4 additions and 2 deletions

View File

@ -7,8 +7,8 @@
<th><span trspan="value"></span></th>
<td>
<div class="input-group">
<input type="password" id="pwdinput" class="form-control" ng-model="currentNode.data"/>
<span id="showp" class="input-group-addon link" trspan="show" onclick="$('#pwdinput').attr('type','text')"></span>
<input type="{{formtype||'password'}}" id="pwdinput" class="form-control" ng-model="currentNode.data"/>
<span id="showp" class="input-group-addon link" ng-click="formtype=(formtype==='text'?'password':'text')">{{translate(formtype==='text'?'hide':'show')}}</span>
</div>
</td>
</tr>

View File

@ -196,6 +196,7 @@
"hGroups": "Groups (HashRef)",
"hostname": "Hostname",
"hiddenAttributes": "Hidden attributes",
"hide": "Hide",
"hideHelp": "Hide help",
"hideOldPassword": "Hide old password",
"hideTree": "Hide tree",

View File

@ -196,6 +196,7 @@
"hGroups": "Groupes (HashRef)",
"hostname": "Nom d'hôte",
"hiddenAttributes": "Attributs masqués",
"hide": "Masquer",
"hideHelp": "Masquer l'aide",
"hideOldPassword": "Masquer l'ancien mot de passe",
"hideTree": "Masquer l'arbre",