Mercurial > hg > LGServer
view src/main/webapp/templates/publicTemplate.xhtml @ 2:1f56cf4f80d4
Fix of bug in the creation of a new file.
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Wed, 11 Mar 2015 16:00:42 +0100 |
parents | 7682c04c63a8 |
children | 5316e79f9a27 |
line wrap: on
line source
<?xml version='1.0' encoding='UTF-8' ?> <!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:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:icecore="http://www.icefaces.org/icefaces/core" xmlns:ace="http://www.icefaces.org/icefaces/components" xmlns:ice="http://www.icesoft.com/icefaces/component"> <h:head> <title>Local Monographs Service</title> <ice:outputStyle href="#{appBean.rootServer}/resources/css/style.css" /> <script type="text/javascript" src="#{appBean.rootServer}/resources/js/general.js"/> </h:head> <h:body> <h:form id="formDialog"> <ace:themeSelect value="cupertino"/> <ace:dialog id="dialog" header="Message" closable="false" visible="#{!empty sessionBean.msgList}" modal="true" draggable="false"> <h:panelGrid columns="1"> <ace:dataTable value="#{sessionBean.msgList}" var="msg"> <ace:column> <h:outputText value="#{msg}" /> </ace:column> </ace:dataTable> <h:commandButton value="Close" actionListener="#{sessionBean.listenerCloseMsgPopup}" style="margin-left: auto;margin-right: auto; width:100%;" onclick="window.location.reload();"> </h:commandButton> </h:panelGrid> </ace:dialog> </h:form> <div id="header"> <div id="logo"> <h1><a href="#"><ice:outputLabel value="Local Gazetter Server"/></a></h1> </div> </div> <div id="login"> <div id="loginContent"> <ice:form id="loginForm"> <h:panelGrid columns="5" rendered="#{sessionBean.user == null}"> <h:outputLink value="#{appBean.dvnRootServer}/faces/login/AddAccountPage.xhtml">Create Account</h:outputLink> <ice:outputLabel value="Login"/> <ice:inputText value="#{sessionBean.userName}"/> <ice:inputSecret value="#{sessionBean.password}" actionListener="#{sessionBean.listenerLogin}"/> <ice:commandButton value="Submit" actionListener="#{sessionBean.listenerLogin}"> </ice:commandButton> </h:panelGrid> <h:panelGrid columns="3" rendered="#{sessionBean.user != null}"> <h:outputText value="Logged in as: #{sessionBean.user.userName}"/> <h:outputText value=" | "/> <h:commandLink value="logout" actionListener="#{sessionBean.listenerLogout}"/> </h:panelGrid> </ice:form> </div> </div> <h:form> <ace:menuBar autoSubmenuDisplay="true" style="margin: 0 auto; width: 80%;"> <ace:menuItem value="Home" url="#{appBean.rootServer}/home/mainPage.xhtml"/> <ace:menuItem value="Manage Branch" url="#{appBean.rootServer}/home/branchEditor.xhtml" /> <ace:menuItem value="Create File" url="#{appBean.rootServer}/home/createNewFile.xhtml" /> <ace:menuItem value="Search Section" url="#{appBean.rootServer}/home/searchPage.xhtml" /> <ace:menuItem value="Dataverse" url="#{appBean.dvnRootServer}" /> </ace:menuBar> </h:form> <div id="page"> <h:panelGrid rendered="#{sessionBean.user != null}" style="width:100%"> <ui:insert name="content"/> </h:panelGrid> <h:panelGrid rendered="#{sessionBean.user == null}" style="width:100%"> <h:outputLabel value="You must login!"/> </h:panelGrid> </div> </h:body> </html>