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 8514d4d0
authored
Aug 31, 2013
by
Petri Jarvisalo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accountEvents ui update
1 parent
17ba21f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
code/MoyaWeb/WebContent/user/accountEvents.xhtml
code/MoyaWeb/WebContent/user/accountEvents.xhtml
View file @
8514d4d
<!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