Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 8ab62ad1
authored
May 05, 2013
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bill confirmation
1 parent
b55caf35
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
3 deletions
code/MoyaWeb/WebContent/WEB-INF/web.xml
code/MoyaWeb/WebContent/resources/cditools/bills/list.xhtml
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n.properties
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_en.properties
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_fi.properties
code/MoyaWeb/WebContent/WEB-INF/web.xml
View file @
8ab62ad
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<context-param>
<context-param>
<param-name>
javax.faces.PROJECT_STAGE
</param-name>
<param-name>
javax.faces.PROJECT_STAGE
</param-name>
<!-- Production | Development -->
<!-- Production | Development -->
<param-value>
Production
</param-value>
<param-value>
Development
</param-value>
</context-param>
</context-param>
<context-param>
<context-param>
<param-name>
javax.faces.FACELETS_SKIP_COMMENTS
</param-name>
<param-name>
javax.faces.FACELETS_SKIP_COMMENTS
</param-name>
...
...
code/MoyaWeb/WebContent/resources/cditools/bills/list.xhtml
View file @
8ab62ad
...
@@ -10,6 +10,12 @@
...
@@ -10,6 +10,12 @@
<composite:implementation>
<composite:implementation>
<h:outputText
rendered=
"#{billListView.bills.rowCount le 0}"
value=
"#{i18n['bills.noBills']}"
/>
<h:outputText
rendered=
"#{billListView.bills.rowCount le 0}"
value=
"#{i18n['bills.noBills']}"
/>
<!-- koyhan miehen confirmaationappi: -->
<input
type=
"button"
class=
"ui-button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
style=
"padding: 3px;"
value=
"#{i18n['bill.markPaid.show']}"
onclick=
"showMarkPaidButtons();"
/>
<h:form
rendered=
"#{billListView.bills.rowCount gt 0}"
>
<h:form
rendered=
"#{billListView.bills.rowCount gt 0}"
>
<p:dataTable
styleClass=
"bordertable"
id=
"billList"
value=
"#{billListView.bills}"
var=
"bill"
<p:dataTable
styleClass=
"bordertable"
id=
"billList"
value=
"#{billListView.bills}"
var=
"bill"
...
@@ -17,7 +23,7 @@
...
@@ -17,7 +23,7 @@
<p:column
rendered=
"#{billListView.canWriteBill}"
>
<p:column
rendered=
"#{billListView.canWriteBill}"
>
<f:facet
name=
"header"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"
$
{i18n['bill.payer']}"
/>
<h:outputText
value=
"
#
{i18n['bill.payer']}"
/>
</f:facet>
</f:facet>
<h:link
rendered=
"#{billListView.canWriteBill}"
outcome=
"/useradmin/edit"
value=
"#{bill.addr1}"
>
<h:link
rendered=
"#{billListView.canWriteBill}"
outcome=
"/useradmin/edit"
value=
"#{bill.addr1}"
>
<f:param
name=
"userid"
value=
"#{bill.user.user.id}"
/>
<f:param
name=
"userid"
value=
"#{bill.user.user.id}"
/>
...
@@ -71,7 +77,7 @@
...
@@ -71,7 +77,7 @@
</h:link>
</h:link>
</p:column>
</p:column>
<p:column
rendered=
"#{billListView.canWriteBill}"
>
<p:column
rendered=
"#{billListView.canWriteBill}"
>
<h:commandButton
rendered=
"#{bill.paidDate == null}"
action=
"#{billListView.markPaid()}"
value=
"#{i18n['bill.markPaid']}"
>
<h:commandButton
rendered=
"#{bill.paidDate == null}"
styleClass=
"markPaidButton"
action=
"#{billListView.markPaid()}"
value=
"#{i18n['bill.markPaid']}"
>
<f:ajax
render=
"@form"
/>
<f:ajax
render=
"@form"
/>
</h:commandButton>
</h:commandButton>
<h:outputText
rendered=
"#{bill.paidDate != null}"
value=
"#{i18n['bill.isPaid']}"
/>
<h:outputText
rendered=
"#{bill.paidDate != null}"
value=
"#{i18n['bill.isPaid']}"
/>
...
@@ -81,6 +87,12 @@
...
@@ -81,6 +87,12 @@
</h:form>
</h:form>
<script
type=
"text/javascript"
>
function
showMarkPaidButtons
()
{
$
(
".markPaidButton"
).
removeAttr
(
'disabled'
);
}
$
(
".markPaidButton"
).
attr
(
'disabled'
,
'disabled'
);
</script>
</composite:implementation>
</composite:implementation>
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n.properties
View file @
8ab62ad
...
@@ -21,6 +21,7 @@ bill.billNumber = Number
...
@@ -21,6 +21,7 @@ bill.billNumber = Number
bill.cancel
=
Cancel bill
bill.cancel
=
Cancel bill
bill.expires
=
Expires
bill.expires
=
Expires
bill.isExpired
=
Bill is expired
bill.isExpired
=
Bill is expired
bill.markPaid.show
=
Show Mark paid -buttons
bill.save
=
Save
bill.save
=
Save
bortalApplication.BILL
=
Creating, and managing bills
bortalApplication.BILL
=
Creating, and managing bills
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_en.properties
View file @
8ab62ad
...
@@ -68,6 +68,7 @@ bill.expires = Expires
...
@@ -68,6 +68,7 @@ bill.expires = Expires
bill.isExpired
=
Bill is expired
bill.isExpired
=
Bill is expired
bill.isPaid
=
Paid
bill.isPaid
=
Paid
bill.markPaid
=
Mark paid
bill.markPaid
=
Mark paid
bill.markPaid.show
=
Show Mark paid -buttons
bill.markedPaid
=
Bill marked paid
bill.markedPaid
=
Bill marked paid
bill.notes
=
Notes
bill.notes
=
Notes
bill.noticetime
=
Notice time
bill.noticetime
=
Notice time
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_fi.properties
View file @
8ab62ad
...
@@ -70,6 +70,7 @@ bill.expires = Vanhentuu
...
@@ -70,6 +70,7 @@ bill.expires = Vanhentuu
bill.isExpired
=
Lasku on vanhentunut
bill.isExpired
=
Lasku on vanhentunut
bill.isPaid
=
Maksettu
bill.isPaid
=
Maksettu
bill.markPaid
=
Maksettu
bill.markPaid
=
Maksettu
bill.markPaid.show
=
N
\u
00E4yt
\u
00E4 Maksettu -napit
bill.markedPaid
=
Lasku merkitty maksetuksi.
bill.markedPaid
=
Lasku merkitty maksetuksi.
bill.notes
=
Huomioita
bill.notes
=
Huomioita
bill.noticetime
=
Huomautusaika
bill.noticetime
=
Huomautusaika
...
...
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