Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 519484ca
authored
Aug 31, 2013
by
Antti Tonkyra
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'devel' of codecrew.fi:bortal into devel
2 parents
1aaf2bac
ffdbac12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
35 deletions
code/MoyaWeb/WebContent/place/myGroups.xhtml
code/MoyaWeb/WebContent/user/accountEvents.xhtml
code/MoyaWeb/WebContent/place/myGroups.xhtml
View file @
519484c
...
...
@@ -2,7 +2,7 @@
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:c=
"http://java.sun.com/jsp/jstl/core"
xmlns:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:f=
"http://java.sun.com/jsf/core"
>
xmlns:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:p=
"http://primefaces.org/ui"
>
<h:body>
<ui:composition
template=
"#{sessionHandler.template}"
>
<ui:param
name=
"thispage"
value=
"page.place.mygroups"
/>
...
...
@@ -18,41 +18,41 @@
<h:outputText
rendered=
"#{empty placeGroupView.groupMemberships}"
value=
"#{i18n['placegroupview.noMemberships']}"
/>
<h:form
rendered=
"#{!empty placeGroupView.groupMemberships}"
id=
"placelistform"
>
<
h
:dataTable
value=
"#{placeGroupView.groupMemberships}"
var=
"member"
>
<
p
:dataTable
value=
"#{placeGroupView.groupMemberships}"
var=
"member"
>
<
h
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['placegroupview.reservationName']}"
/>
</f:facet>
<h:outputText
value=
"#{member.placeReservation.name}"
/>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['placegroupview.reservationProduct']}"
/>
</f:facet>
<h:outputText
value=
"#{member.placeReservation.product.name}"
/>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['placegroupview.token']}"
/>
</f:facet>
<h:outputText
rendered=
"#{empty member.user}"
value=
"#{member.inviteToken}"
/>
<h:outputText
rendered=
"#{!empty member.user}"
value=
"#{member.user.firstnames} #{member.user.lastname} (#{member.user.nick})"
/>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['placegroupview.groupCreator']}"
/>
</f:facet>
<h:outputText
value=
"#{member.placeGroup.creator.firstnames} #{member.placeGroup.creator.lastname} (#{member.placeGroup.creator.nick})"
/>
</
h
:column>
</
p
:column>
<
h
:column>
<
p
:column>
<h:commandButton
rendered=
"#{placeGroupView.canModifyCurrent and placeGroupView.currentMemberUserNotNull}"
action=
"#{placeGroupView.releasePlace()}"
value=
"#{i18n['placegroupview.releasePlace']}"
/>
</
h
:column>
</
p
:column>
</
h
:dataTable>
</
p
:dataTable>
</h:form>
<p>
...
...
code/MoyaWeb/WebContent/user/accountEvents.xhtml
View file @
519484c
<!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:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:f=
"http://java.sun.com/jsf/core"
>
<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:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:p=
"http://primefaces.org/ui"
>
<h:body>
<ui:composition
template=
"#{sessionHandler.template}"
>
<f:metadata>
...
...
@@ -14,63 +13,67 @@
<h1>
#{i18n['user.accountevents']}
</h1>
</ui:define>
<ui:define
name=
"content"
>
<h:outputLabel
value=
"#{i18n['user.accountBalance']}: "
for=
"accountbalance"
/>
<h:outputText
id=
"accountbalance"
value=
"#{userView.user.accountBalance}"
/>
<h:dataTable
border=
"1"
id=
"ac"
value=
"#{userView.user.accountEvents}"
var=
"ac"
>
<h:column>
<p:dataTable
border=
"1"
id=
"ac"
value=
"#{userView.user.accountEvents}"
var=
"ac"
>
<p:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['accountEvent.productname']}"
/>
</f:facet>
<h:outputText
value=
"#{ac.product.name}"
/>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['accountEvent.quantity']}"
/>
</f:facet>
<h:outputText
value=
"#{ac.quantity}"
>
<f:convertNumber
minFractionDigits=
"2"
maxFractionDigits=
"2"
/>
</h:outputText>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['accountEvent.unitPrice']}"
/>
</f:facet>
<h:outputText
value=
"#{ac.unitPrice}"
>
<f:convertNumber
minFractionDigits=
"2"
maxFractionDigits=
"2"
/>
</h:outputText>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['accountEvent.total']}"
/>
</f:facet>
<h:outputText
value=
"#{ac.total}"
>
<f:convertNumber
minFractionDigits=
"2"
maxFractionDigits=
"2"
/>
</h:outputText>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['accountEvent.eventTime']}"
/>
</f:facet>
<h:outputText
value=
"#{ac.eventTime.time}"
>
<f:convertDateTime
pattern=
"#{sessionHandler.datetimeFormat}"
timeZone=
"#{sessionHandler.timezone}"
/>
</h:outputText>
</
h
:column>
<
h
:column>
</
p
:column>
<
p
:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['accountEvent.delivered']}"
/>
</f:facet>
<h:outputText
rendered=
"#{!empty ac.delivered}"
value=
"#{ac.delivered.time}"
>
<h:outputText
rendered=
"#{!empty ac.delivered}"
value=
"#{ac.delivered.time}"
>
<f:convertDateTime
pattern=
"#{sessionHandler.datetimeFormat}"
timeZone=
"#{sessionHandler.timezone}"
/>
</h:outputText>
</h:column>
</p:column>
<p:columnGroup
type=
"footer"
>
<p:row>
<p:column
colspan=
"3"
style=
"text-align: right;"
footerText=
"#{i18n['user.accountBalance']}"
/>
<p:column
footerText=
"#{userView.user.accountBalance}"
style=
"text-align: left;"
/>
</p:row>
</p:columnGroup>
<!-- <h:column> -->
<!-- <p:column> -->
<!-- <h:link outcome="/user/editAccountevent" value="#{i18n['accountEvent.edit']}"> -->
<!-- <f:param name="accountid" value="#{ac.id}" /> -->
<!-- </h:link> -->
<!-- </
h
:column> -->
</
h
:dataTable>
<!-- </
p
:column> -->
</
p
:dataTable>
</ui:define>
</ui:composition>
</h:body>
...
...
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