quemgmt.xhtml 2.78 KB
<!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:map="http://java.sun.com/jsf/composite/cditools/map"
	xmlns:tools="http://java.sun.com/jsf/composite/cditools"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">


<h:body>

	<ui:composition template="#{sessionHandler.template}">
		<f:metadata>
			<f:viewParam name="mapId" value="#{queueManageView.mapId}" />
			<f:event type="preRenderView" listener="#{queueManageView.initView}" />
		</f:metadata>
	
		<ui:define name="content">
			<h:form>
			 	<p:panelGrid columns="1"> 
					<p:inputText id="minslots" label="#{i18n['queuemgmt.minimumSlotsInQueue']}" value="#{queueManageView.queuebean.minimumSlotsInQueue}" />
					<p:inputText id="reservingsize"  label="#{i18n['queuemgmt.reservingSize']}" value="#{queueManageView.queuebean.reservingSize}" />
					<p:inputText id="defaultTimeout" label="#{i18n['queuemgmt.defaultTimeoutMin']}" value="#{queueManageView.queuebean.defaultTimeoutMin}" />
				</p:panelGrid>
				<p:commandButton ajax="false"></p:commandButton>
			</h:form>


			<h2>Currently reserving</h2>
			<p:dataTable var="u" value="#{queueManageView.userReserving}">
				<p:column>
					<h:outputText value="#{u.user.user.nick}" />
				</p:column>
				<p:column headerText="Created">
					<h:outputText value="#{u.created}">
						<f:convertDateTime pattern="#{sessionHandler.datetimeFormat}"
							timeZone="#{sessionHandler.timezone}" />
					</h:outputText>
				</p:column>
				<p:column headerText="Reservation timeout">

				<p:calendar 
						value="#{u.seenTime}"
						pattern="#{sessionHandler.datetimeFormat}"
						timeZone="#{sessionHandler.timezone}" showOn="button"
						/>
						
						<h:outputText value="#{u.reservationTimeout}">
						<f:convertDateTime pattern="#{sessionHandler.datetimeFormat}"
							timeZone="#{sessionHandler.timezone}" />
					</h:outputText>
				</p:column>
			</p:dataTable>

			<h2>In queue</h2>
			<p:dataTable var="u" value="#{queueManageView.userQueue}">
				<p:column>
					<h:outputText value="#{u.user.user.nick}" />
				</p:column>
				<p:column headerText="Created">
					<h:outputText value="#{u.created}">
						<f:convertDateTime pattern="#{sessionHandler.datetimeFormat}"
							timeZone="#{sessionHandler.timezone}" />
					</h:outputText>
				</p:column>
				<p:column headerText="Seen time">
						<p:calendar 
						value="#{u.seenTime}"
						pattern="#{sessionHandler.datetimeFormat}"
						timeZone="#{sessionHandler.timezone}" showOn="button"
						/>
				</p:column>
			</p:dataTable>

		</ui:define>
	</ui:composition>
</h:body>
</html>