Mercurial > hg > ismi-richfaces
view src/main/webapp/admin/admin.xhtml @ 7:764f47286679
(none)
author | jurzua |
---|---|
date | Wed, 29 Oct 2014 14:28:34 +0000 |
parents | |
children | 4ec8d4cfad26 |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <body> <ui:composition template="/templates/privateTemplate.xhtml"> <ui:define name="privateContent"> <div id="pageTitle"> <h:outputText value="Admin Panel" /> </div> <h:panelGrid columns="1" id="adminPanel" style="margin-left: auto; margin-right: auto; text-align: center; width: 700px"> <h:panelGrid columns="3" style="margin-left: auto; margin-right: auto; text-align: center; width: 400px"> <h:commandButton value="Create User" actionListener="#{adminBean.actionCreateUser}" /> <h:commandButton value="Show all users" actionListener="#{adminBean.actionGetAllUsers}" /> <h:commandButton value="Open ESciDoc Panel Control" actionListener="#{adminBean.listenerOpenESciDocPanelControl}" /> </h:panelGrid> <h:panelGrid columns="2" rendered="#{adminBean.user != null}" styleClass="createPanel" columnClasses="createPanelFirstColumn,createPanelColumn02" style="width: 400px;"> <h:outputText value="User name" /> <h:inputText value="#{adminBean.user.userName}" /> <h:outputText value="Email" /> <h:inputText value="#{adminBean.user.email}" /> <h:outputText value="Role" /> <h:selectOneMenu value="#{adminBean.user.role}"> <f:selectItems value="#{adminBean.roleList}" /> </h:selectOneMenu> <h:outputText value="Password" rendered="#{adminBean.changePassword}" /> <h:inputSecret value="#{adminBean.password1}" rendered="#{adminBean.changePassword}" /> <h:outputText value="Repeat password" rendered="#{adminBean.changePassword}" /> <h:inputSecret value="#{adminBean.password2}" rendered="#{adminBean.changePassword}" /> <h:commandButton value="Save" actionListener="#{adminBean.actionSaveUser}" /> <h:commandButton value="Cancel" actionListener="#{adminBean.actionReset}" /> </h:panelGrid> <rich:dataTable value="#{adminBean.userList}" var="item" rendered="#{!empty adminBean.userList}" styleClass="createPanel" columnClasses="createPanelFirstColumn,createPanelColumn02,createPanelColumn02" style="width: 400px;"> <h:column> <f:facet name="header"> <h:outputText value="User Name" /> </f:facet> <h:outputText value="#{item.userName}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="E-mail" /> </f:facet> <h:outputText value="#{item.email}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Role" /> </f:facet> <h:outputText value="#{item.role}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Edit" /> </f:facet> <h:commandButton value="Edit" actionListener="#{adminBean.actionEditUser}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Remove" /> </f:facet> <h:commandButton value="Remove" actionListener="#{adminBean.actionRemoveUser}" onclick="#{ApplicationBean1.JSConfirmationDelete}" /> </h:column> </rich:dataTable> <!-- Attribute Editor --> <h:panelGroup rendered="#{adminBean.showESciDocPanelControl}"> <div style="z-index: 100;" class="rf-pp-shade"> <button class="rf-pp-btn" tabindex="-1" accesskey="" /> </div> <h:panelGrid columns="1" class="rf-pp-cntr" style="height: 100px; left: 100px; position: fixed; top: 50px; width: 500px; z-index: 100;"> <div class="rf-pp-shdw" style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;"> </div> <div class="rf-pp-hdr " style="cursor: default;"> <div class="rf-pp-hdr-cnt">ESciDoc Panel Control</div> </div> <h:panelGrid columns="1" class="rf-pp-cnt-scrlr" style="width: 500px; height: 329px;"> <h:panelGrid columns="1" class="rf-pp-cnt"> <h:panelGrid columns="2"> <h:outputLabel value="Last sychronization:" /> <h:outputLabel value="#{ApplicationBean1.refCache.lastSynchronization}" /> <h:outputLabel value="Loading time [ms]:" /> <h:outputLabel value="#{ApplicationBean1.refCache.lastSynchronizationTimeExec}" /> <h:outputLabel value="Server Status" /> <h:outputLabel value="#{ApplicationBean1.refCache.serverStatus}" /> <h:outputLabel value="Items size" /> <h:outputLabel value="#{ApplicationBean1.refCache.itemsSize}" /> <h:outputLabel value="Max records used for last sychronization" /> <h:outputLabel value="#{ApplicationBean1.refCache.lastSynchronizationMaxRecords}" /> <h:outputLabel value="Sychronize with Server" /> <h:panelGrid columns="3"> <h:selectOneMenu value="#{ApplicationBean1.refCache.maxRecords}"> <f:selectItem itemLabel="50" itemValue="50" /> <f:selectItem itemLabel="100" itemValue="100" /> <f:selectItem itemLabel="1000" itemValue="1000" /> <f:selectItem itemLabel="5000" itemValue="5000" /> <f:selectItem itemLabel="10000" itemValue="10000" /> </h:selectOneMenu> <h:commandButton value="submit" actionListener="#{ApplicationBean1.refCache.listenerSynchronizeWithServer}" /> </h:panelGrid> <h:commandButton value="Close" actionListener="#{adminBean.listenerCloseESciDocPanelControl}" /> </h:panelGrid> </h:panelGrid> </h:panelGrid> </h:panelGrid> </h:panelGroup> </h:panelGrid> </ui:define> </ui:composition> </body> </html>