forked from openiap/opencore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.html
More file actions
167 lines (155 loc) · 7.91 KB
/
Copy pathUser.html
File metadata and controls
167 lines (155 loc) · 7.91 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<div class="row">
<div class="col-sm-20">
<h1 class="pagetitle" translate lib="web">userdetails</h1>
</div>
</div>
<pre ng-show="ErrorMessage!=null">{{ ErrorMessage }}</pre>
<div ng-show="ctrl.errormessage != ''"" class=" alert alert-danger" role="alert">{{ctrl.errormessage}}</div>
<form ng-submit="ctrl.submit()" class="form-horizontal" role="form" autocomplete="off">
<div class="form-group">
<label for="name" class="col-sm-2 control-label" translate lib="web">name</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.name" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group">
<label for="username" class="col-sm-2 control-label" translate lib="web">username</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.username" class="form-control input-md" ng-disabled="ctrl.loading==true"
autocomplete="new-password" />
</div>
</div>
<div class="form-group">
<label for="newpassword" class="col-sm-2 control-label" translate lib="web">password</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.newpassword" class="form-control input-md" style="-webkit-text-security: disc;"
ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group" ng-show="menuctrl.hasrole('admins') && ctrl.model.email">
<label for="email" class="col-sm-2 control-label" translate lib="web">email</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.email" class="form-control input-md"
ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group" ng-show="menuctrl.hasrole('admins') && ctrl.model.company != '' && ctrl.model.company != null && ctrl.model.company != undefined">
<label for="company" class="col-sm-2 control-label" translate lib="web">company</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.company" class="form-control input-md"
ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group" ng-show="menuctrl.hasrole('admins') && (ctrl.model.dblocked == true || ctrl.model.dblocked == false)">
<label for="dblocked" class="col-sm-2 control-label" translate lib="web">dblocked</label>
<div class="col-sm-4">
<input type="checkbox" ng-model="ctrl.model.dblocked" class="input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group" ng-show="menuctrl.hasrole('admins') && (ctrl.model.validated == true || ctrl.model.validated == false)">
<label for="validated" class="col-sm-2 control-label" translate lib="web">validated</label>
<div class="col-sm-4">
<input type="checkbox" ng-model="ctrl.model.validated" class="input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group" ng-show="menuctrl.hasrole('admins') && (ctrl.model.validated == true || ctrl.model.validated == false)">
<label for="emailvalidated" class="col-sm-2 control-label" translate lib="web">emailvalidated</label>
<div class="col-sm-4">
<input type="checkbox" ng-model="ctrl.model.emailvalidated" class="input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group" ng-show="menuctrl.hasrole('admins') && (ctrl.model.validated == true || ctrl.model.validated == false)">
<label for="formvalidated" class="col-sm-2 control-label" translate lib="web">formvalidated</label>
<div class="col-sm-4">
<input type="checkbox" ng-model="ctrl.model.formvalidated" class="input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label" translate lib="web">disabled</label>
<div class="col-sm-6">
<input type="checkbox" ng-model="ctrl.model.disabled" class="input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group" ng-show="ctrl.model.sid != '' && ctrl.model.sid != null && ctrl.model.sid != undefined">
<label for="sid" class="col-sm-2 control-label" translate lib="web">SID</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.sid" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group"
ng-show="ctrl.model.firebasetoken != '' && ctrl.model.firebasetoken != null && ctrl.model.firebasetoken != undefined">
<label for="sid" class="col-sm-2 control-label" translate lib="web">Firebase Token</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.firebasetoken" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group"
ng-show="ctrl.model.onesignalid != '' && ctrl.model.onesignalid != null && ctrl.model.onesignalid != undefined">
<label for="sid" class="col-sm-2 control-label" translate lib="web">OneSignal Id</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.onesignalid" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" translate lib="web">providerids</label>
<div class="col-sm-4">
</div>
</div>
<div class="form-group" ng-repeat="id in ctrl.model.federationids">
<label class="col-sm-2 control-label" translate lib="web"></label>
<div class="col-sm-4">
{{ id }}
<button type="button" ng-disabled="ctrl.loading==true" class="btn btn-danger" ng-click="ctrl.deleteid(id)"
translate lib="web">delete</button>
</div>
</div>
<div class="form-inline">
<div class="form-group mb-2">
<label class="sr-only" translate lib="web">AddFederationId</label>
</div>
<div class="form-group mx-sm-3 mb-2">
<input ng-model="ctrl.newid" type="text" class="form-control" placeholder="New identity typically email"
autocomplete="new-password">
</div>
<button type="button" class="btn btn-success mb-2" ng-disabled="ctrl.loading==true" ng-click="ctrl.addid()">add
identity</button>
</div>
<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>
<div class="form-inline" ng-repeat="m in ctrl.memberof">
<label class="col-sm-1 control-label" translate lib="web">memberof</label>
<div class="col-sm-3">
{{ m.name }}
</div>
<div class="col-sm-2">
<button ng-click=" ctrl.RemoveMember(m)" type="button" ng-disabled="ctrl.loading==true"
class="btn btn-success" translate lib="web">remove</button>
</div>
<div class="col-sm-3">
{{ m._id }}
</div>
</div>
</form>
<br>
<hr class="row" ng-show="ctrl.model._id == menuctrl.user._id">
<div class="row" ng-show="ctrl.model._id == menuctrl.user._id">
<div class="col">admins</div>
<div class="col">{{menuctrl.hasrole('admins')}}</div>
</div>
<div class="row" ng-show="ctrl.model._id == menuctrl.user._id">
<div class="col">resellers</div>
<div class="col">{{menuctrl.hasrole('resellers')}}</div>
</div>
<div class="row" ng-show="ctrl.model._id == menuctrl.user._id">
<div class="col">customer admins</div>
<div class="col">{{menuctrl.hasrole('customer admins')}}</div>
</div>
<hr class="row" ng-show="ctrl.model._id == menuctrl.user._id">
<div class="row" ng-repeat="role in menuctrl.user.roles" ng-show="ctrl.model._id == menuctrl.user._id">
<div class="col">{{role._id}}</div>
<div class="col">{{role.name}}</div>
</div>