-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserDisplay.html
112 lines (108 loc) · 4.95 KB
/
UserDisplay.html
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
<div class="card w-100">
<div class="card-body">
<h5 id='name' class="card-title">NAME</h5>
<div class="row card-subtitle mb-2 text-muted p-0">
<a id='email' class='col'>EMAIL</a>
<div id='update' class='col-auto'>UPDATE</div>
</div>
<div id='phone' class='card-subtitle mb-2 text-muted'>PHONE</div>
<div id='routing' class='card-subtitle mb-2 text-muted'>ROUTING</div>
<div id="group-display" class="card w-100">
<div class="card-header row m-0 p-2">
<p id="group" class="col m-0 pt-1">GROUP</p>
<div class="col-auto">
<button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal"
data-target="#change-group">Change Group</button>
</div>
</div>
<div class="card-body">
<div class="row">
<label for='rights' class="col-1">Rights</label>
<div id='rights' class="col"></div>
</div>
</div>
</div>
</div>
</div>
<div id="change-group" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Choose a Group</h5>
<button type="button" class="btn btn-success mx-1" data-toggle="modal" data-target="#new-group">New
Group</button>
<button type="button" class="close btn-outline-success" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<picker-panel id="group-picker" data-item="#group-item"></picker-panel>
</div>
<div class="modal-footer">
<button id="save-changes" type="button" class="btn btn-success" data-dismiss="modal">Save
changes</button>
</div>
</div>
</div>
</div>
<div id="new-group" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered modal-xl">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Create a Group</h5>
<button type="button" class="close btn-outline-success" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<div class="form-group row">
<label for="new-name" class="col-sm-2 col-form-label">Group Name</label>
<div class="col-sm-10">
<input type="text" id="new-name" class="form-control">
</div>
</div>
<div class="form-group row">
<label for="new-description" class="col-sm-2 col-form-label">Description</label>
<div class="col-sm-10">
<input type="text" id="new-description" class="form-control">
</div>
</div>
<div class="form-group row" style="height: 256px">
<label for="rights" class="col-sm-2 col-form-label">Rights</label>
<div class="col-sm-4">
<picker-panel id="removed-picker" tabindex="-1" data-item="#right-item"
class="h-100 rounded border"></picker-panel>
</div>
<div class="col-sm-2 d-flex align-items-center">
<div class="d-flex flex-column w-100">
<button id="add" type="button" class="btn btn-outline-success">ADD >></button>
<button id="remove" type="button" class="btn btn-outline-success"><< REMOVE</button>
</div>
</div>
<div class="col-sm-4">
<picker-panel id="added-picker" tabindex="-1" data-item="#right-item"
class="h-100 rounded border"></picker-panel>
</div>
</div>
</div>
<div class="modal-footer">
<button id="create-group" type="button" class="btn btn-success">Create Group</button>
</div>
</div>
</div>
</div>
<template id='group-item'>
<div class='row'>
<div id='group' class='h6 col'>GROUP</div>
</div>
<div class="row">
<label for='rights' class="col-1">RIGHTS</label>
<div id='rights' class="col"></div>
</div>
</template>
<template id='right-item'>
<div class='row'>
<div id='name' class='col small'>NAME</div>
</div>
<div class="row">
<div id='description' class='col small'>DESCRIPTION</div>
</div>
</template>