Commit 5188f5b1 by Riku Silvola

stylify food

1 parent f3702bb1
<!DOCTYPE html <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" <html xmlns="http://www.w3.org/1999/xhtml"
xmlns:foodwave="http://java.sun.com/jsf/composite/cditools/foodwave" xmlns:users="http://java.sun.com/jsf/composite/cditools/user" xmlns:c="http://java.sun.com/jsp/jstl/core"> xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:foodwave="http://java.sun.com/jsf/composite/cditools/foodwave"
xmlns:users="http://java.sun.com/jsf/composite/cditools/user"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:p="http://primefaces.org/ui">
<h:body> <h:body>
<ui:composition template="/layout/#{sessionHandler.layout}/template.xhtml"> <ui:composition
template="/layout/#{sessionHandler.layout}/template.xhtml">
<f:metadata> <f:metadata>
<f:event type="preRenderView" listener="#{foodWaveView.initFoodwaveManagerList}" /> <f:event type="preRenderView"
listener="#{foodWaveView.initFoodwaveManagerList}" />
</f:metadata> </f:metadata>
<ui:define name="title"> <ui:define name="title">
<h1>fixme</h1> <h1>#{i18n['foodWave.list']}</h1>
</ui:define> </ui:define>
<ui:define name="content"> <ui:define name="content">
<h:dataTable columnClasses="nowrap,numalign,numalign,nowrap,numalign" styleClass="bordertable" value="#{foodWaveView.foodWaves}" var="foodwave"> <p:dataTable
<h:column > styleClass="bordertable" value="#{foodWaveView.foodWaves}"
var="foodwave" >
<p:column>
<f:facet name="header"> <f:facet name="header">
<h:outputLabel id="name" value="${i18n['foodWave.name']}" /> <h:outputText value="${i18n['foodWave.time']}" />
</f:facet> </f:facet>
<h:outputText value="#{foodwave.time.time}">
<h:link outcome="/foodmanager/listOrders" value="#{foodwave.name}"> <f:convertDateTime pattern="hh:mm d/M/yy" />
<f:param name="foodwaveid" value="#{foodwave.id}" /> </h:outputText>
</h:link> </p:column>
</h:column> <p:column>
<h:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['foodWave.template.name']}" /> <h:outputText value="${i18n['foodWave.template.name']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{foodwave.template.name}"> <h:outputText value="#{foodwave.template.name}" />
<f:param name="foodwaveid" value="#{foodwave.id}" /> </p:column>
</h:link> <p:column>
</h:column>
<h:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['foodWave.orders']}" /> <h:outputLabel id="name" value="${i18n['foodWave.name']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{foodwave.accountEvents.size()}">
<f:param name="foodwaveid" value="#{foodwave.id}" /> <h:outputText value="#{foodwave.name}" />
</h:link> </p:column>
</h:column> <p:column styleClass="text-center">
<h:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['foodWave.unconfirmedOrders']}" /> <h:outputText value="${i18n['foodWave.paid']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{foodwave.billLines.size()}"> <h:outputText value="#{foodwave.accountEvents.size()}" />
<f:param name="foodwaveid" value="#{foodwave.id}" /> </p:column>
</h:link> <p:column styleClass="text-center">
</h:column>
<h:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['foodWave.totalReserved']}" /> <h:outputText value="${i18n['foodWave.unconfirmedOrders']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{foodwave.reservedCount}"> <h:outputText value="#{foodwave.billLines.size()}" />
<f:param name="foodwaveid" value="#{foodwave.id}" /> </p:column>
</h:link> <p:column>
</h:column>
<h:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['foodWave.time']}" /> <h:outputText value="${i18n['foodWave.totalReserved']}" />
</f:facet> </f:facet>
<h:outputText value="#{foodwave.reservedCount}" /> / <h:outputText
value="#{foodwave.maximumFoods}" />
</p:column>
<p:column>
<h:link outcome="/foodmanager/listOrders" <h:link outcome="/foodmanager/listOrders"
value="#{foodwave.time.time}"> value="#{i18n['foodWave.show']}">
<f:param name="foodwaveid" value="#{foodwave.id}" /> <f:param name="foodwaveid" value="#{foodwave.id}" />
</h:link> </h:link>
</h:column> </p:column>
</h:dataTable> </p:dataTable>
</ui:define> </ui:define>
......
<!DOCTYPE html <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" <html xmlns="http://www.w3.org/1999/xhtml"
xmlns:foodwave="http://java.sun.com/jsf/composite/cditools/foodwave" xmlns:users="http://java.sun.com/jsf/composite/cditools/user" xmlns:c="http://java.sun.com/jsp/jstl/core"> xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:foodwave="http://java.sun.com/jsf/composite/cditools/foodwave"
xmlns:users="http://java.sun.com/jsf/composite/cditools/user"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:p="http://primefaces.org/ui">
<h:body> <h:body>
<ui:composition template="/layout/#{sessionHandler.layout}/template.xhtml"> <ui:composition
template="/layout/#{sessionHandler.layout}/template.xhtml">
<f:metadata> <f:metadata>
<f:viewParam name="foodwaveid" value="#{foodWaveView.foodWaveId}" required="true"/> <f:viewParam name="foodwaveid" value="#{foodWaveView.foodWaveId}"
<f:event type="preRenderView" listener="#{foodWaveView.initFoodWaveOrderList}" /> required="true" />
<!-- <f:event type="preRenderView" listener="#{foodWaveView.initFoodwaveAccountEventList}" /> --> <f:event type="preRenderView"
listener="#{foodWaveView.initFoodWaveOrderList}" />
<!-- <f:event type="preRenderView" listener="#{foodWaveView.initFoodwaveAccountEventList}" /> -->
</f:metadata> </f:metadata>
<ui:define name="title"> <ui:define name="title">
...@@ -16,62 +25,69 @@ ...@@ -16,62 +25,69 @@
</ui:define> </ui:define>
<ui:define name="content"> <ui:define name="content">
<h1><h:outputLabel id="name" value="${i18n['foodWave.billLines']}" /></h1> <h1>
<h:dataTable columnClasses="nowrap,numalign,numalign,nowrap,numalign" styleClass="bordertable" value="#{foodWaveView.billLines}" var="billLine"> <h:outputLabel id="name" value="${i18n['foodWave.billLines']}" />
<h:column > </h1>
<p:dataTable
styleClass="bordertable" value="#{foodWaveView.foodWaves.billLines}"
var="foodwave" >
<p:column>
<f:facet name="header"> <f:facet name="header">
<h:outputLabel id="name" value="${i18n['billLine.name']}" /> <h:outputLabel id="name" value="${i18n['billLine.name']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{billLine.name}"> <h:link outcome="/foodmanager/listOrders" value="#{foodwave.billLines.name}">
<f:param name="foodwaveid" value="#{foodwave.id}" /> <f:param name="foodwaveid" value="#{foodwave.id}" />
</h:link> </h:link>
</h:column> </p:column>
<h:column> <p:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['billLine.quantiny']}" /> <h:outputText value="${i18n['billLine.quantity']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" <h:link outcome="/foodmanager/listOrders"
value="#{foodwave.template.name}"> value="#{foodwave.billLines.rowCount}">
<f:param name="foodwaveid" value="#{foodWaveView.billLines.rowCount}" /> <f:param name="foodwaveid" value="#{foodwave.id}" />
</h:link> </h:link>
</h:column> </p:column>
<h:column> <p:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['billLine.unitprice']}" /> <h:outputText value="${i18n['billLine.unitprice']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{foodWaveView.currentProduct.price}"> <h:link outcome="/foodmanager/listOrders"
value="#{foodwave.currentProduct.price}">
<f:param name="foodwaveid" value="#{foodwave.id}" /> <f:param name="foodwaveid" value="#{foodwave.id}" />
</h:link> </h:link>
</h:column> </p:column>
<h:column> <p:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['foodWave.unconfirmedOrders']}" /> <h:outputText value="${i18n['foodWave.unconfirmedOrders']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{foodWaveView.billLines.rowCount}"> <h:link outcome="/foodmanager/listOrders"
value="#{foodwave.billLines.rowCount}">
<f:param name="foodwaveid" value="#{foodwave.id}" /> <f:param name="foodwaveid" value="#{foodwave.id}" />
</h:link> </h:link>
</h:column><!-- </p:column>
<h:column> <!--
<p:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['foodWave.totalReserved']}" /> <h:outputText value="${i18n['foodWave.totalReserved']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" value="#{foodWaveView.currentProduct.totalreserved}"> <h:link outcome="/foodmanager/listOrders" value="#{foodWaveView.currentProduct.totalreserved}">
<f:param name="foodwaveid" value="#{foodwave.id}" /> <f:param name="foodwaveid" value="#{foodwave.id}" />
</h:link> </h:link>
</h:column> --> </p:column> -->
<h:column> <p:column>
<f:facet name="header"> <f:facet name="header">
<h:outputText value="${i18n['foodWave.time']}" /> <h:outputText value="${i18n['foodWave.time']}" />
</f:facet> </f:facet>
<h:link outcome="/foodmanager/listOrders" <h:link outcome="/foodmanager/listOrders"
value="#{foodwave.time.time}"> value="#{foodwave.billLine}">
<f:param name="foodwaveid" value="#{foodwave.id}" /> <f:param name="foodwaveid" value="#{foodwave.id}" />
</h:link> </h:link>
</h:column> </p:column>
</h:dataTable> </p:dataTable>
</ui:define> </ui:define>
......
...@@ -17,3 +17,6 @@ display: none; ...@@ -17,3 +17,6 @@ display: none;
} }
.text-center {
text-align: center;
}
\ No newline at end of file
...@@ -182,10 +182,16 @@ eventorganiser.name = Eventorganiser ...@@ -182,10 +182,16 @@ eventorganiser.name = Eventorganiser
food = Food food = Food
foodWave.description = Description foodWave.description = Description
foodWave.name = Name foodWave.list = FoodWave Listing
foodWave.template.name = Name foodWave.name = Foodwave
foodWave.time = Time foodWave.orders = Amount of Orders
foodWave.paid = Paid
foodWave.show = Show
foodWave.template.name = Template
foodWave.time = Time
foodWave.totalReserved = Total
foodWave.unconfirmedOrders = Unconfirmed
foodshop.buyFromCounter = Pay at info foodshop.buyFromCounter = Pay at info
foodshop.buyFromInternet = Pay at Internet foodshop.buyFromInternet = Pay at Internet
......
...@@ -180,10 +180,16 @@ eventorganiser.name = Tapahtumaj\u00E4rjest\u00E4j\u00E4 ...@@ -180,10 +180,16 @@ eventorganiser.name = Tapahtumaj\u00E4rjest\u00E4j\u00E4
food = Ruoka food = Ruoka
foodWave.description = Kuvaus foodWave.description = Kuvaus
foodWave.name = Nimi foodWave.list = Ruokatilausten listaus
foodWave.template.name = Nimi foodWave.name = Ruokatilaus
foodWave.time = Aika foodWave.orders = Tilausten M\u00E4\u00E4r\u00E4
foodWave.paid = Maksettuja
foodWave.show = N\u00E4yt\u00E4
foodWave.template.name = Template
foodWave.time = Aika
foodWave.totalReserved = Yhteens\u00E4
foodWave.unconfirmedOrders = Vahvistamattomia
foodshop.buyFromCounter = Maksa infossa foodshop.buyFromCounter = Maksa infossa
foodshop.buyFromInternet = Maksa Internetiss\u00E4 foodshop.buyFromInternet = Maksa Internetiss\u00E4
......
...@@ -75,7 +75,8 @@ public class FoodWaveView extends GenericCDIView { ...@@ -75,7 +75,8 @@ public class FoodWaveView extends GenericCDIView {
selectedFoodWave.setTime(c); selectedFoodWave.setTime(c);
foodWaveBean.createFoodWave(selectedFoodWave); foodWaveBean.createFoodWave(selectedFoodWave);
// initFoodwaveManagerList(); initFoodwaveManagerList();
return "/foodmanager/listFoodwaves"; return "/foodmanager/listFoodwaves";
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!