Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e96331f9
authored
Aug 19, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
foodwave fixes
1 parent
dbe070a0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/MenuBean.java
code/MoyaWeb/WebContent/foodwave/list.xhtml
code/MoyaWeb/WebContent/resources/cditools/foodwave/list.xhtml
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/shop/FoodWaveView.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/MenuBean.java
View file @
e96331f
...
...
@@ -119,6 +119,9 @@ public class MenuBean implements MenuBeanLocal {
userkauppa
.
setKey
(
"topnavi.usershop"
);
userkauppa
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/shop/createBill"
),
BillPermission
.
CREATE_BILL
);
userkauppa
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/foodwave/list"
),
ShopPermission
.
SHOP_FOODWAVE
);
userkauppa
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/foodwave/listProducts"
),
ShopPermission
.
SHOP_FOODWAVE
).
setVisible
(
false
);
userkauppa
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/foodwave/ThanksForOrderingFromCounter"
),
ShopPermission
.
SHOP_FOODWAVE
).
setVisible
(
false
);
userkauppa
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/bill/list"
),
BillPermission
.
VIEW_OWN
);
userkauppa
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/bill/edit"
),
BillPermission
.
VIEW_OWN
).
setVisible
(
false
);
userkauppa
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/bill/showBill"
),
BillPermission
.
VIEW_OWN
).
setVisible
(
false
);
...
...
@@ -471,6 +474,7 @@ public class MenuBean implements MenuBeanLocal {
MenuNavigation
foodwaveTopmenu
=
usernavi
.
addPage
(
null
,
null
);
foodwaveTopmenu
.
setKey
(
"topnavi.foodwave"
);
foodwaveTopmenu
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/foodwave/list"
),
ShopPermission
.
SHOP_FOODWAVE
);
// foodwaveTopmenu.addPage(menuitemfacade.findOrCreate("/foodwave/listTemplates"),
// ShopPermission.SHOP_FOODWAVE);
foodwaveTopmenu
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/foodwave/listProducts"
),
ShopPermission
.
SHOP_FOODWAVE
).
setVisible
(
false
);
...
...
code/MoyaWeb/WebContent/foodwave/list.xhtml
View file @
e96331f
...
...
@@ -14,7 +14,6 @@
template=
"#{sessionHandler.template}"
>
<f:metadata>
<f:viewParam
name=
"userid"
value=
"#{userView.userid}"
/>
<f:viewParam
name=
"templateid"
value=
"#{foodWaveView.templateId}"
/>
<f:event
type=
"preRenderView"
listener=
"#{foodWaveView.initListFoodwaves}"
/>
</f:metadata>
...
...
code/MoyaWeb/WebContent/resources/cditools/foodwave/list.xhtml
View file @
e96331f
...
...
@@ -16,7 +16,7 @@
<h:outputScript
library=
"primefaces"
name=
"jquery/jquery.js"
/>
<p:dataTable
columnClasses=
"nowrap,numalign,numalign,nowrap,numalign"
styleClass=
"bordertable"
value=
"#{foodWaveView.foodWaves}"
var=
"foodwave"
sortBy=
"#{foodwave.time.time}"
rowStyleClass=
"#{foodwave.isFull() ? 'closed' : null}"
>
<p:column
sortBy=
"#{
i18n['foodWave.name']
}"
>
<p:column
sortBy=
"#{
foodwave.name
}"
>
<f:facet
name=
"header"
>
<h:outputLabel
id=
"name"
value=
"#{i18n['foodWave.name']}"
/>
</f:facet>
...
...
@@ -30,7 +30,7 @@
</p:column>
<p:column
sortBy=
"#{foodwave.template.name}"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"
Menu
"
/>
<h:outputText
value=
"
#{i18n['foodwave.template.name']}
"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.template.name}"
>
<f:param
name=
"foodwaveid"
value=
"#{foodwave.id}"
/>
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/shop/FoodWaveView.java
View file @
e96331f
...
...
@@ -108,6 +108,9 @@ public class FoodWaveView extends GenericCDIView {
return
"/foodmanager/listFoodwaves"
;
}
public
void
initListFoodwaves
()
{
if
(
super
.
requirePermissions
(
ShopPermission
.
SHOP_FOODWAVE
)
&&
template
==
null
)
...
...
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