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 4e395300
authored
Dec 12, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prelento-commit
1 parent
010b7f84
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
10 deletions
code/moya-web/WebContent/place/eticketStandalone.xhtml
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/eticket/StandaloneEticketView.java
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n.properties
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n_en.properties
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n_fi.properties
code/moya-web/WebContent/place/eticketStandalone.xhtml
View file @
4e39530
...
...
@@ -19,30 +19,26 @@
<h:form
id=
"etickets"
>
TODO: this will be done
#{standaloneEticketView.user.user.wholeName}
<!--
<br
/><br
/>
<p:commandButton
value=
"#{i18n['print']}"
type=
"button"
icon=
"ui-icon-print"
style=
"display:block;margin-bottom: 20px"
>
<p:printer
target=
"eticketpanel"
/>
</p:commandButton>
<p:commandButton icon="ui-icon-mail-closed" value="#{i18n['etickets.sendAsMail']}" actionListener="#{eticketView.sendAsMail}" /><br/><br/><br/>
<p:outputPanel
id=
"eticketpanel"
>
<p:fieldset
legend=
"#{i18n['etickets.eticketcode']}"
style=
"width: 250px; "
>
<p:outputPanel
style=
"text-align: center;"
>
<p:barcode id="userqrcode" value="#{
e
ticketView.userTextCode}" type="qr" width="200" height="200"/><br />
<p:outputLabel for="userqrcode" value="#{
e
ticketView.userTextCode}"/>
<p:barcode
id=
"userqrcode"
value=
"#{
standaloneE
ticketView.userTextCode}"
type=
"qr"
width=
"200"
height=
"200"
/><br
/>
<p:outputLabel
for=
"userqrcode"
value=
"#{
standaloneE
ticketView.userTextCode}"
/>
</p:outputPanel>
</p:fieldset>
<br
/><br
/>
<p:fieldset
legend=
"#{i18n['etickets.placeinfo']}"
>
<p:dataTable value="#{
e
ticketView.groupMemberships}" var="member" id="placestable">
<p:dataTable
value=
"#{
standaloneE
ticketView.groupMemberships}"
var=
"member"
id=
"placestable"
>
<p:column>
<f:facet
name=
"header"
>
...
...
@@ -68,12 +64,15 @@
</p:fieldset>
<br
/><br
/>
<h2>
#{i18n['etickets.placemap']}
</h2>
<p:graphicImage rendered="" url="/PlaceMap?mapid=#{mapView.activeMap.id}&userid=#{userView.selectedUser.user.id}" styleClass="printImage"/>
<p:commandButton
rendered=
"#{!standaloneEticketView.mapVisible}"
value=
"#{i18n['etickets.showMap']}"
actionListener=
"#{standaloneEticketView.showMap}"
update=
"mapImage"
/>
<p:graphicImage
id=
"mapImage"
rendered=
"#{standaloneEticketView.mapVisible}"
url=
"/PlaceMap?mapid=#{mapView.activeMap.id}&token=#{standaloneEticketView.token}"
styleClass=
"printImage"
/>
</p:outputPanel>
-->
</h:form>
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/eticket/StandaloneEticketView.java
View file @
4e39530
...
...
@@ -81,6 +81,8 @@ public class StandaloneEticketView extends GenericCDIView {
private
Map
<
Integer
,
String
>
inviteMails
=
new
HashMap
<>();
private
boolean
mapVisible
=
false
;
...
...
@@ -117,6 +119,10 @@ public class StandaloneEticketView extends GenericCDIView {
return
"width: "
+
(
width
+
100
)
+
"px;"
;
}
public
void
showMap
()
{
mapVisible
=
true
;
}
public
EventUser
getUser
()
{
return
user
;
...
...
@@ -133,6 +139,14 @@ public class StandaloneEticketView extends GenericCDIView {
public
void
setToken
(
String
token
)
{
this
.
token
=
token
;
}
public
boolean
isMapVisible
()
{
return
mapVisible
;
}
public
void
setMapVisible
(
boolean
mapVisible
)
{
this
.
mapVisible
=
mapVisible
;
}
}
...
...
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n.properties
View file @
4e39530
...
...
@@ -516,3 +516,4 @@ place.mapY=
place.cancelSend
=
Peruuta siirto
place.buyable
=
etickets.sendAsMail
=
L
\u
00E4het
\u
00E4 s
\u
00E4hk
\u
00F6postina
etickets.showMap
=
N
\u
00E4yt
\u
00E4 kartta
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n_en.properties
View file @
4e39530
...
...
@@ -1663,3 +1663,4 @@ placegroupview.owner=Owner
place.send
=
Transfer place
place.cancelSend
=
Cancel transfer
etickets.sendAsMail
=
Send as mail
etickets.showMap
=
Show map
code/moya-web/src/main/resources/fi/codecrew/moya/resources/i18n_fi.properties
View file @
4e39530
...
...
@@ -1644,3 +1644,4 @@ placegroupview.owner=Omistaja
place.send
=
Siirr
\u
00E4 paikka
place.cancelSend
=
Peruuta siirto
etickets.sendAsMail
=
L
\u
00E4het
\u
00E4 s
\u
00E4hk
\u
00F6postiin
etickets.showMap
=
N
\u
00E4yt
\u
00E4 kartta
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