Skip to content

Commit 5fabd50

Browse files
committed
"mask" encrypted fields on entity page
1 parent ee66eeb commit 5fabd50

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

OpenFlow/src/public/Entity.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ <h1 class="pagetitle"><span translate lib="web">detailsfor</span> {{ctrl.model.n
8989
<a href="" ng-hide="ctrl.showjson==true" ng-click="ctrl.togglejson()" translate lib="web">showjson</a>
9090
<a href="" ng-hide="ctrl.showjson==false" ng-click="ctrl.togglejson()" translate lib="web">showproperties</a>
9191
<form ng-submit="ctrl.submit()" class="form-horizontal" role="form" autocomplete="off" ng-hide="ctrl.showjson==true">
92-
9392
<section ng-repeat="key in ctrl.keys">
94-
<div class="form-group">
93+
<div class="form-group" ng-show="ctrl.model._encrypt.indexOf(key) == -1">
9594
<label class="col-sm-3 control-label"><span translate lib="web">{{ key }}</span>: <a href=""
9695
ng-click="ctrl.removekey(key)" translate lib="web">delete</a></label>
9796
<div class="col-sm-9">
@@ -102,6 +101,17 @@ <h1 class="pagetitle"><span translate lib="web">detailsfor</span> {{ctrl.model.n
102101
-->
103102
</div>
104103
</div>
104+
<div class="form-group" ng-show="ctrl.model._encrypt.indexOf(key) > -1">
105+
<label class="col-sm-3 control-label"><span translate lib="web">{{ key }}</span>: <a href=""
106+
ng-click="ctrl.removekey(key)" translate lib="web">delete</a></label>
107+
<div class="col-sm-9">
108+
<input type="password" class='autogrow form-control' rows='3' data-min-rows='3'
109+
ng-model="ctrl.model[key]"></input>
110+
<!--
111+
<input ng-model="ctrl.model[key]" class="form-control input-md" ng-disabled="ctrl.loading==true" />
112+
-->
113+
</div>
114+
</div>
105115
</section>
106116

107117

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.368
1+
0.0.369

0 commit comments

Comments
 (0)