Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ae395bec
authored
Oct 27, 2012
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Plain Diff
merge
2 parents
74a526ce
242887d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
76 deletions
code/LanBortalWeb/WebContent/foodmanager/listFoodwaves.xhtml
code/LanBortalWeb/WebContent/foodmanager/listFoodwaves.xhtml
View file @
ae395be
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"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"
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"
>
<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"
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>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<f:metadata>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initFoodwaveManagerList}"
/>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initFoodwaveManagerList}"
/>
</f:metadata>
<ui:define
name=
"title"
>
...
...
@@ -22,73 +13,69 @@
</ui:define>
<ui:define
name=
"content"
>
<h:form>
<p:dataTable
styleClass=
"bordertable"
value=
"#{foodWaveView.foodWaves}"
sortBy=
"#{foodwave.time}"
sortOrder=
"ascending"
var=
"foodwave"
editable=
"true"
>
<p:ajax
event=
"rowEdit"
listener=
"#{foodWaveView.onEditFoodWave}"
/>
<p:dataTable
styleClass=
"bordertable"
value=
"#{foodWaveView.foodWaves}"
sortBy=
"#{foodwave.time}"
sortOrder=
"ascending"
var=
"foodwave"
editable=
"true"
rowStyleClass=
"#{foodWave.closed ? 'old' : null}
>
<p:ajax event="
rowEdit
"
listener=
"#{foodWaveView.onEditFoodWave}"
/>
<p:column
sortBy=
"#{foodwave.time}"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.time']}"
/>
</f:facet>
<p:cellEditor>
<f:facet
name=
"output"
>
<h:outputText
value=
"#{foodwave.time}"
>
<f:convertDateTime
pattern=
"#{sessionHandler.datetimeFormat}"
timeZone=
"#{sessionHandler.timezone}"
/>
</h:outputText>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.time']}"
/>
</f:facet>
<f:facet
name=
"input"
>
<p:calendar
id=
"startTime"
value=
"#{foodwave.time}"
pattern=
"#{sessionHandler.datetimeFormat}"
/>
</f:facet>
</p:cellEditor>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.template.name']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.template.name}"
/>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:outputLabel
id=
"name"
value=
"${i18n['foodWave.name']}"
/>
</f:facet>
<p:cellEditor>
<f:facet
name=
"output"
>
<h:outputText
value=
"#{foodwave.name}"
/>
</f:facet>
<f:facet
name=
"input"
>
<p:inputText
value=
"#{foodwave.name}"
style=
"width:100%"
required=
"true"
requiredMessage=
"Name required"
/>
</f:facet>
</p:cellEditor>
</p:column>
<p:column
styleClass=
"text-center"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.paid']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.orderedCount}"
/>
</p:column>
<p:column
styleClass=
"text-center"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.unconfirmedOrders']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.unpaidCount}"
/>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.totalReserved']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.reservedCount}"
/>
/
<h:outputText
value=
"#{foodwave.maximumFoods}"
/>
</p:column>
<p:cellEditor>
<f:facet
name=
"output"
>
<h:outputText
value=
"#{foodwave.time}"
>
<f:convertDateTime
pattern=
"#{sessionHandler.datetimeFormat}"
timeZone=
"#{sessionHandler.timezone}"
/>
</h:outputText>
</f:facet>
<f:facet
name=
"input"
>
<p:calendar
id=
"startTime"
value=
"#{foodwave.time}"
pattern=
"#{sessionHandler.datetimeFormat}"
/>
</f:facet>
</p:cellEditor>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.template.name']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.template.name}"
/>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:outputLabel
id=
"name"
value=
"${i18n['foodWave.name']}"
/>
</f:facet>
<p:cellEditor>
<f:facet
name=
"output"
>
<h:outputText
value=
"#{foodwave.name}"
/>
</f:facet>
<f:facet
name=
"input"
>
<p:inputText
value=
"#{foodwave.name}"
style=
"width:100%"
required=
"true"
requiredMessage=
"Name required"
/>
</f:facet>
</p:cellEditor>
</p:column>
<p:column
styleClass=
"text-center"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.paid']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.accountEvents.size()}"
/>
</p:column>
<p:column
styleClass=
"text-center"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.unconfirmedOrders']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.unpaidBillLineCount}"
/>
</p:column>
<p:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.totalReserved']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.reservedCount}"
/>
/
<h:outputText
value=
"#{foodwave.maximumFoods}"
/>
</p:column>
<p:column>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{i18n['foodWave.show']}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</p:column>
<p:column>
<h:link
outcome=
"/foodmanager/listOrders"
value=
"#{i18n['foodWave.show']}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
</h:link>
</p:column>
<p:column>
<p:rowEditor
/>
</p:column>
<p:rowEditor
/>
</p:column>
<!--
<p:column>
<h:outputText value="#{foodwave.closed.toString()}" />
...
...
@@ -99,7 +86,7 @@
value="#{i18n['foodWave.closeNow']}"
action="#{foodwave.toggleClosed}" />
</p:column> -->
</p:dataTable>
</p:dataTable>
</h:form>
</ui:define>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment