Mercurial > hg > ismi-richfaces
comparison src/main/webapp/admin/admin.xhtml @ 7:764f47286679
(none)
author | jurzua |
---|---|
date | Wed, 29 Oct 2014 14:28:34 +0000 |
parents | |
children | 4ec8d4cfad26 |
comparison
equal
deleted
inserted
replaced
6:ded3bccf2cf9 | 7:764f47286679 |
---|---|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
2 <html xmlns="http://www.w3.org/1999/xhtml" | |
3 xmlns:h="http://java.sun.com/jsf/html" | |
4 xmlns:f="http://java.sun.com/jsf/core" | |
5 xmlns:ui="http://java.sun.com/jsf/facelets" | |
6 xmlns:a4j="http://richfaces.org/a4j" | |
7 xmlns:rich="http://richfaces.org/rich"> | |
8 | |
9 <body> | |
10 <ui:composition template="/templates/privateTemplate.xhtml"> | |
11 | |
12 <ui:define name="privateContent"> | |
13 | |
14 <div id="pageTitle"> | |
15 <h:outputText value="Admin Panel" /> | |
16 </div> | |
17 | |
18 <h:panelGrid columns="1" id="adminPanel" | |
19 style="margin-left: auto; margin-right: auto; text-align: center; width: 700px"> | |
20 | |
21 | |
22 | |
23 <h:panelGrid columns="3" | |
24 style="margin-left: auto; margin-right: auto; text-align: center; width: 400px"> | |
25 <h:commandButton value="Create User" | |
26 actionListener="#{adminBean.actionCreateUser}" /> | |
27 <h:commandButton value="Show all users" | |
28 actionListener="#{adminBean.actionGetAllUsers}" /> | |
29 <h:commandButton value="Open ESciDoc Panel Control" | |
30 actionListener="#{adminBean.listenerOpenESciDocPanelControl}" /> | |
31 </h:panelGrid> | |
32 | |
33 <h:panelGrid columns="2" | |
34 rendered="#{adminBean.user != null}" | |
35 styleClass="createPanel" | |
36 columnClasses="createPanelFirstColumn,createPanelColumn02" | |
37 style="width: 400px;"> | |
38 | |
39 <h:outputText value="User name" /> | |
40 <h:inputText value="#{adminBean.user.userName}" /> | |
41 | |
42 <h:outputText value="Email" /> | |
43 <h:inputText value="#{adminBean.user.email}" /> | |
44 | |
45 <h:outputText value="Role" /> | |
46 <h:selectOneMenu value="#{adminBean.user.role}"> | |
47 <f:selectItems value="#{adminBean.roleList}" /> | |
48 </h:selectOneMenu> | |
49 | |
50 | |
51 <h:outputText value="Password" | |
52 rendered="#{adminBean.changePassword}" /> | |
53 <h:inputSecret value="#{adminBean.password1}" | |
54 rendered="#{adminBean.changePassword}" /> | |
55 <h:outputText value="Repeat password" | |
56 rendered="#{adminBean.changePassword}" /> | |
57 <h:inputSecret value="#{adminBean.password2}" | |
58 rendered="#{adminBean.changePassword}" /> | |
59 | |
60 <h:commandButton value="Save" | |
61 actionListener="#{adminBean.actionSaveUser}" /> | |
62 <h:commandButton value="Cancel" | |
63 actionListener="#{adminBean.actionReset}" /> | |
64 </h:panelGrid> | |
65 | |
66 | |
67 <rich:dataTable value="#{adminBean.userList}" var="item" | |
68 rendered="#{!empty adminBean.userList}" | |
69 styleClass="createPanel" | |
70 columnClasses="createPanelFirstColumn,createPanelColumn02,createPanelColumn02" | |
71 style="width: 400px;"> | |
72 <h:column> | |
73 <f:facet name="header"> | |
74 <h:outputText value="User Name" /> | |
75 </f:facet> | |
76 <h:outputText value="#{item.userName}" /> | |
77 </h:column> | |
78 <h:column> | |
79 <f:facet name="header"> | |
80 <h:outputText value="E-mail" /> | |
81 </f:facet> | |
82 <h:outputText value="#{item.email}" /> | |
83 </h:column> | |
84 <h:column> | |
85 <f:facet name="header"> | |
86 <h:outputText value="Role" /> | |
87 </f:facet> | |
88 <h:outputText value="#{item.role}" /> | |
89 </h:column> | |
90 <h:column> | |
91 <f:facet name="header"> | |
92 <h:outputText value="Edit" /> | |
93 </f:facet> | |
94 <h:commandButton value="Edit" | |
95 actionListener="#{adminBean.actionEditUser}" /> | |
96 </h:column> | |
97 <h:column> | |
98 <f:facet name="header"> | |
99 <h:outputText value="Remove" /> | |
100 </f:facet> | |
101 <h:commandButton value="Remove" | |
102 actionListener="#{adminBean.actionRemoveUser}" | |
103 onclick="#{ApplicationBean1.JSConfirmationDelete}" /> | |
104 </h:column> | |
105 | |
106 </rich:dataTable> | |
107 | |
108 <!-- Attribute Editor --> | |
109 <h:panelGroup rendered="#{adminBean.showESciDocPanelControl}"> | |
110 <div style="z-index: 100;" class="rf-pp-shade"> | |
111 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
112 </div> | |
113 | |
114 <h:panelGrid columns="1" class="rf-pp-cntr" | |
115 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 500px; z-index: 100;"> | |
116 | |
117 <div class="rf-pp-shdw" | |
118 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;"> | |
119 </div> | |
120 <div class="rf-pp-hdr " style="cursor: default;"> | |
121 <div class="rf-pp-hdr-cnt">ESciDoc Panel Control</div> | |
122 </div> | |
123 | |
124 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr" | |
125 style="width: 500px; height: 329px;"> | |
126 <h:panelGrid columns="1" class="rf-pp-cnt"> | |
127 <h:panelGrid columns="2"> | |
128 <h:outputLabel value="Last sychronization:" /> | |
129 <h:outputLabel | |
130 value="#{ApplicationBean1.refCache.lastSynchronization}" /> | |
131 | |
132 <h:outputLabel value="Loading time [ms]:" /> | |
133 <h:outputLabel | |
134 value="#{ApplicationBean1.refCache.lastSynchronizationTimeExec}" /> | |
135 | |
136 <h:outputLabel value="Server Status" /> | |
137 <h:outputLabel | |
138 value="#{ApplicationBean1.refCache.serverStatus}" /> | |
139 | |
140 <h:outputLabel value="Items size" /> | |
141 <h:outputLabel value="#{ApplicationBean1.refCache.itemsSize}" /> | |
142 | |
143 <h:outputLabel value="Max records used for last sychronization" /> | |
144 <h:outputLabel | |
145 value="#{ApplicationBean1.refCache.lastSynchronizationMaxRecords}" /> | |
146 | |
147 <h:outputLabel value="Sychronize with Server" /> | |
148 <h:panelGrid columns="3"> | |
149 | |
150 <h:selectOneMenu | |
151 value="#{ApplicationBean1.refCache.maxRecords}"> | |
152 <f:selectItem itemLabel="50" itemValue="50" /> | |
153 <f:selectItem itemLabel="100" itemValue="100" /> | |
154 <f:selectItem itemLabel="1000" itemValue="1000" /> | |
155 <f:selectItem itemLabel="5000" itemValue="5000" /> | |
156 <f:selectItem itemLabel="10000" itemValue="10000" /> | |
157 </h:selectOneMenu> | |
158 | |
159 <h:commandButton value="submit" | |
160 actionListener="#{ApplicationBean1.refCache.listenerSynchronizeWithServer}" /> | |
161 | |
162 </h:panelGrid> | |
163 | |
164 <h:commandButton value="Close" | |
165 actionListener="#{adminBean.listenerCloseESciDocPanelControl}" /> | |
166 </h:panelGrid> | |
167 </h:panelGrid> | |
168 </h:panelGrid> | |
169 </h:panelGrid> | |
170 | |
171 </h:panelGroup> | |
172 | |
173 </h:panelGrid> | |
174 | |
175 </ui:define> | |
176 </ui:composition> | |
177 </body> | |
178 </html> |