-
Notifications
You must be signed in to change notification settings - Fork 25
/
code_table_full.xhtml
152 lines (140 loc) · 6.36 KB
/
code_table_full.xhtml
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
<div class="gw-table gw-table-fixed">
<!-- WRAPPER -->
<div class="gw-table__wrapper">
<!-- TABLE -->
<table role="grid" id="tableUserAll" class="table table-bordered table-fixed table-hover">
<!-- COLUMNHEADER -->
<thead>
<tr role="row">
<intranda:columnheader
name="name"
form="#{BenutzerverwaltungForm}"
value="#{msgs.benutzer}"
ajaxRender="allUsers:myform" />
<intranda:columnheader
name="login"
form="#{BenutzerverwaltungForm}"
value="#{msgs.login}"
ajaxRender="allUsers:myform" />
<intranda:columnheader
name="location"
form="#{BenutzerverwaltungForm}"
value="#{msgs.standort}"
ajaxRender="allUsers:myform" />
<intranda:columnheader
name="group"
form="#{BenutzerverwaltungForm}"
value="#{msgs.benutzergruppen}"
ajaxRender="allUsers:myform" />
<intranda:columnheader
name="projects"
form="#{BenutzerverwaltungForm}"
value="#{msgs.projekte}"
ajaxRender="allUsers:myform" />
<intranda:columnheader
name="institution"
form="#{BenutzerverwaltungForm}"
value="#{msgs.institution}"
rendered="#{BenutzerverwaltungForm.getNumberOfInstitutions() gt 1}"
ajaxRender="allUsers:myform" />
<intranda:columnheader
value="#{msgs.auswahl}"
sortable="false"
addClass="gw-table-fixed__actions"
/>
</tr>
</thead>
<!-- CONTENT ROWS -->
<ui:repeat var="item"
value="#{BenutzerverwaltungForm.paginator.list}"
varStatus="status">
<tr role="row">
<td>
<h:outputText
value="#{item.nachname}, #{item.vorname}"
styleClass="userID_#{item.vorname}_#{item.nachname} #{not item.active?'font-light':''}"
title="#{item.login}" />
</td>
<td>
<h:outputText value="#{item.login}"
styleClass="#{not item.active?'font-light':''}" />
</td>
<td>
<h:outputText value="#{item.standort}"
styleClass="#{not item.active?'font-light':''}" />
</td>
<td>
<x:dataList var="intern"
styleClass="#{not item.active?'font-light':''}"
rendered="#{item.benutzergruppenSize != 0}"
value="#{item.benutzergruppen}" layout="ordered list"
rowCountVar="rowCount" rowIndexVar="rowIndex">
<h:outputText value="#{intern.titel}" />
<h:outputText value=","
rendered="#{rowIndex + 1 lt rowCount}" />
</x:dataList>
</td>
<td>
<x:dataList var="intern"
styleClass="#{not item.active?'font-light':''}"
rendered="#{true}"
value="#{item.projekte}" layout="ordered list"
rowCountVar="rowCount" rowIndexVar="rowIndex">
<h:outputText value="#{intern.titel}" />
<h:outputText value=","
rendered="#{rowIndex + 1 lt rowCount}" />
</x:dataList>
</td>
<td jsf:rendered="#{true}">
<h:outputText value="#{item.institution.shortName}"
styleClass="#{not item.active?'font-light':''}" />
</td>
<!-- ACTION BUTTONS -->
<td>
<div class="gw-table__actions__container">
<button jsf:id="edit" class="btn btn-blank"
disabled="true"
jsf:rel="tooltip" jsf:action="user_edit"
title="#{msgs.benutzerBearbeiten}">
<i class="fa fa-pencil"></i>
<f:passThroughAttribute name="data-toggle"
value="tooltip" />
<f:passThroughAttribute name="aria-label"
value="#{msgs.benutzerBearbeiten}" />
</button>
<button jsf:id="switch"
disabled="true"
jsf:rendered="#{true}"
class="btn btn-blank"
jsf:action=""
title="#{msgs.benutzerprofilLaden}">
<i class="fa fa-user-secret"></i>
<f:passThroughAttribute name="aria-label"
value="#{msgs.benutzerprofilLaden}" />
<f:passThroughAttribute name="data-toggle"
value="tooltip" />
<f:passThroughAttribute name="data-placement" value="top" />
<f:param name="ID" value="#{item.id}" />
</button>
<button jsf:id="createNewRandomPassword"
disabled="true"
class="btn btn-blank" jsf:rel="tooltip"
title="#{msgs.createNewRandomPassword}"
jsf:rendered="#{true}"
jsf:onclick="if (!confirm('#{msgs.confirmUserPasswordReset}')) return false"
jsf:action="">
<i class="fa fa-key"></i>
<f:passThroughAttribute name="data-toggle"
value="tooltip" />
<f:passThroughAttribute name="aria-label"
value="#{msgs.createNewRandomPassword}" />
<f:param name="ID" value="#{item.id}" />
<f:ajax render="globalMessage" />
</button>
</div>
</td>
</tr>
</ui:repeat>
</table>
</div>
</div>