forked from openiap/opencore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntity.html
More file actions
83 lines (73 loc) · 4.03 KB
/
Copy pathEntity.html
File metadata and controls
83 lines (73 loc) · 4.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<div class="row">
<div class="col-sm-7">
<h1 class="pagetitle"><span translate lib="web">detailsfor</span> {{ctrl.model.name}}</h1>
</div>
</div>
<section ng-repeat="ace in ctrl.model._acl" ng-show="ctrl.collection!='files'">
<div class="form-group">
<div class="col-sm-9">
<label class="col-sm-3 control-label">{{ace.name}}: <a href="" ng-click="ctrl.removeuser(ace._id)" translate
lib="web">delete</a></label>
<input ng-disabled="ctrl.loading==true" type="checkbox" ng-checked="ctrl.isBitSet(ace.rights, 1)"
ng-click="ctrl.toogleBit(ace, 1)" value="1" id="{{ace._id}}" /> create
<input ng-disabled="ctrl.loading==true" type="checkbox" ng-checked="ctrl.isBitSet(ace.rights, 2)"
ng-click="ctrl.toogleBit(ace, 2)" value="2" id="{{ace._id}}" /> read
<input ng-disabled="ctrl.loading==true" type="checkbox" ng-checked="ctrl.isBitSet(ace.rights, 3)"
ng-click="ctrl.toogleBit(ace, 3)" value="3" id="{{ace._id}}" /> update
<input ng-disabled="ctrl.loading==true" type="checkbox" ng-checked="ctrl.isBitSet(ace.rights, 4)"
ng-click="ctrl.toogleBit(ace, 4)" value="4" id="{{ace._id}}" /> delete
<input ng-disabled="ctrl.loading==true" type="checkbox" ng-checked="ctrl.isBitSet(ace.rights, 5)"
ng-click="ctrl.toogleBit(ace, 5)" value="5" id="{{ace._id}}" /> invoke
<button type="button" ng-click="ctrl.removeuser(ace._id)" ng-disabled="ctrl.loading" translate
lib="web">delete</button>
</div>
</div>
</section>
<section>
<div class="form-group">
<div class="col-sm-9">
<label class="control-label"><span translate lib="web">adduser</span>
<select ng-model="ctrl.newuser" ng-options="item as item.name for item in ctrl.usergroups">
</select>
<button type="button" ng-click="ctrl.adduser()" ng-disabled="ctrl.loading || ctrl.newuser==null"
translate lib="web">insert</button>
</div>
</div>
</section>
<pre ng-show="ErrorMessage!=null">{{ ErrorMessage }}</pre>
<a href="" ng-hide="ctrl.showjson==true" ng-click="ctrl.togglejson()" translate lib="web">showjson</a>
<a href="" ng-hide="ctrl.showjson==false" ng-click="ctrl.togglejson()" translate lib="web">showproperties</a>
<form ng-submit="ctrl.submit()" class="form-horizontal" role="form" autocomplete="off" ng-hide="ctrl.showjson==true">
<section ng-repeat="key in ctrl.keys">
<div class="form-group">
<label class="col-sm-3 control-label"><span translate lib="web">{{ key }}</span>: <a href=""
ng-click="ctrl.removekey(key)" translate lib="web">delete</a></label>
<div class="col-sm-9">
<input ng-model="ctrl.model[key]" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
</section>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" ng-disabled="ctrl.loading==true" class="btn btn-success" translate
lib="web">save</button>
</div>
</div>
</form>
<form ng-submit="ctrl.submit()" class="form-horizontal" role="form" autocomplete="off" ng-hide="ctrl.showjson==false">
<div ng-hide="ctrl.showjson==false" class="form-group" style="width: 100%;">
<div class="form-group">
<label class="col-sm-3 control-label" translate lib="web">json</label>
<div class="col-sm-9">
<textarea class="form-control" rows="5" ng-model="ctrl.jsonmodel" style="max-width: 100%;"></textarea>
<!-- <textarea msd-elastic class="form-control" ></textarea> -->
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<button type="submit" ng-disabled="ctrl.loading==true" class="btn btn-success" translate
lib="web">save</button>
</div>
</div>
</div>
</form>