Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
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 5188f5b1
authored
Oct 26, 2012
by
Riku Silvola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stylify food
1 parent
f3702bb1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
120 additions
and
81 deletions
code/LanBortalWeb/WebContent/foodmanager/listFoodwaves.xhtml
code/LanBortalWeb/WebContent/foodmanager/listOrders.xhtml
code/LanBortalWeb/WebContent/resources/cditools/user/edit.xhtml
code/LanBortalWeb/WebContent/resources/style/insomnia2/css/general.css
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en.properties
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodWaveView.java
code/LanBortalWeb/WebContent/foodmanager/listFoodwaves.xhtml
View file @
5188f5b
<!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:output
Label
id=
"name"
value=
"${i18n['foodWave.na
me']}"
/>
<h:output
Text
value=
"${i18n['foodWave.ti
me']}"
/>
</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:output
Text
value=
"${i18n['foodWave.orders
']}"
/>
<h:output
Label
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.t
ime
']}"
/>
<h:outputText
value=
"${i18n['foodWave.t
otalReserved
']}"
/>
</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>
...
...
code/LanBortalWeb/WebContent/foodmanager/listOrders.xhtml
View file @
5188f5b
<!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.quanti
n
y']}"
/>
<h:outputText
value=
"${i18n['billLine.quanti
t
y']}"
/>
</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=
"#{food
WaveView.billLines.rowCount
}"
/>
<f:param
name=
"foodwaveid"
value=
"#{food
wave.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.tim
e}"
>
value=
"#{foodwave.
billLin
e}"
>
<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>
...
...
code/LanBortalWeb/WebContent/resources/cditools/user/edit.xhtml
View file @
5188f5b
This diff is collapsed.
Click to expand it.
code/LanBortalWeb/WebContent/resources/style/insomnia2/css/general.css
View file @
5188f5b
...
@@ -17,3 +17,6 @@ display: none;
...
@@ -17,3 +17,6 @@ display: none;
}
}
.text-center
{
text-align
:
center
;
}
\ No newline at end of file
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en.properties
View file @
5188f5b
...
@@ -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
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
View file @
5188f5b
...
@@ -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
\u
00E4
\u
00E4r
\u
00E4
foodWave.paid
=
Maksettuja
foodWave.show
=
N
\u
00E4yt
\u
00E4
foodWave.template.name
=
Template
foodWave.time
=
Aika
foodWave.totalReserved
=
Yhteens
\u
00E4
foodWave.unconfirmedOrders
=
Vahvistamattomia
foodshop.buyFromCounter
=
Maksa infossa
foodshop.buyFromCounter
=
Maksa infossa
foodshop.buyFromInternet
=
Maksa Internetiss
\u
00E4
foodshop.buyFromInternet
=
Maksa Internetiss
\u
00E4
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodWaveView.java
View file @
5188f5b
...
@@ -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"
;
}
}
...
...
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