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 4c62894d
authored
Jul 19, 2014
by
Antti Jaakkola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tournament template changes
1 parent
0699436d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
30 deletions
code/MoyaWeb/WebContent/resources/templates/custom_components.css
code/MoyaWeb/WebContent/tournaments/admin/view_tournament_team.xhtml
code/MoyaWeb/WebContent/tournaments/index.xhtml
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/tournaments/TournamentParticipantsView.java
code/MoyaWeb/WebContent/resources/templates/custom_components.css
View file @
4c62894
...
@@ -115,4 +115,15 @@
...
@@ -115,4 +115,15 @@
.success
{
.success
{
color
:
#006600
;
color
:
#006600
;
}
.noBorders
tr
,
.noBorders
td
{
background
:
none
!important
;
border
:
none
!important
;
}
.inlineRow
>
td
{
padding
:
0
!important
;
margin
:
0
;
padding-left
:
40px
!important
;
}
}
\ No newline at end of file
code/MoyaWeb/WebContent/tournaments/admin/view_tournament_team.xhtml
View file @
4c62894
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<p>
#{i18n['tournaments.admin.view_tournament_description_teamview_addition']}
</p>
<p>
#{i18n['tournaments.admin.view_tournament_description_teamview_addition']}
</p>
<h:form>
<h:form>
<p:dataTable
value=
"#{tournamentParticipantsView.tournament.participants}"
var=
"participant"
>
<p:dataTable
value=
"#{tournamentParticipantsView.tournament.participants}"
var=
"participant"
>
<p:column
style=
"width:2
%
"
>
<p:column
style=
"width:2
0px
"
>
<p:rowToggler
/>
<p:rowToggler
/>
</p:column>
</p:column>
<p:column>
<p:column>
...
@@ -28,32 +28,40 @@
...
@@ -28,32 +28,40 @@
</f:facet>
</f:facet>
<h:outputText
value=
"#{participant.participator.nick}"
/>
<h:outputText
value=
"#{participant.participator.nick}"
/>
</p:column>
</p:column>
<p:rowExpansion>
<p:rowExpansion
styleClass=
"inlineRow"
>
<h:panelGrid
id=
"display"
columns=
"2"
cellpadding=
"4"
styleClass=
" ui-widget-content grid"
>
<p:dataTable
value=
"#{participant.teamMembers}"
var=
"member"
>
<h:outputText
value=
"#{i18n['tournament.team_members']}"
/>
<p:column>
<h:panelGroup>
<f:facet
name=
"header"
>
<ul>
<h:outputText
value=
"#{i18n['user.nick']}"
/>
<ui:repeat
var=
"member"
value=
"#{participant.teamMembers}"
>
</f:facet>
<li>
<h:outputText
value=
"#{member.eventUser.nick}"
/>
<h:outputText
value=
"#{member.eventUser.nick}"
/>
</p:column>
<ul>
<li>
<p:column>
<h:outputText
value=
"#{tournamentParticipantsView.eventUserGameID[member.eventUser.id]}"
/>
<f:facet
name=
"header"
>
</li>
<h:outputText
value=
"#{i18n['tournament.participant_gameid']}"
/>
<li>
</f:facet>
<h:outputText
value=
"#{member.eventUser.email}"
/>
<h:outputText
value=
"#{tournamentParticipantsView.eventUserGameID[member.eventUser.id]}"
/>
</li>
</p:column>
<li>
<ui:repeat
rendered=
"#{not empty member.eventUser.groupMemberships}"
var=
"groupMembership"
value=
"#{member.eventUser.groupMemberships}"
>
<p:column>
<h:outputText
value=
"#{groupMembership.placeReservation.name}"
/>
<f:facet
name=
"header"
>
</ui:repeat>
<h:outputText
value=
"#{i18n['user.email']}"
/>
</li>
</f:facet>
</ul>
<h:outputText
value=
"#{member.eventUser.email}"
/>
</li>
</p:column>
</ui:repeat>
</ul>
<p:column>
</h:panelGroup>
<f:facet
name=
"header"
>
</h:panelGrid>
<h:outputText
value=
"#{i18n['place.code']}"
/>
</f:facet>
<ui:repeat
rendered=
"#{not empty member.eventUser.groupMemberships}"
var=
"groupMembership"
value=
"#{member.eventUser.groupMemberships}"
>
<h:outputText
value=
"#{groupMembership.placeReservation.name}"
/>
</ui:repeat>
</p:column>
</p:dataTable>
</p:rowExpansion>
</p:rowExpansion>
</p:dataTable>
</p:dataTable>
</h:form>
</h:form>
...
...
code/MoyaWeb/WebContent/tournaments/index.xhtml
View file @
4c62894
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
<p>
#{i18n['tournaments.description']}
</p>
<p>
#{i18n['tournaments.description']}
</p>
<h2>
#{i18n['tournaments.open_tournaments']}
</h2>
<h2>
#{i18n['tournaments.open_tournaments']}
</h2>
<p:dataTable
value=
"#{tournamentListView.setupPhaseTournaments}"
var=
"tournament"
>
<p:dataTable
value=
"#{tournamentListView.setupPhaseTournaments}"
var=
"tournament"
>
<p:column
style=
"width:2%"
>
<p:column
style=
"width:20px"
>
<p:rowToggler
/>
<p:rowToggler
/>
</p:column>
</p:column>
<p:column>
<p:column>
...
@@ -96,7 +97,7 @@
...
@@ -96,7 +97,7 @@
</p:dataTable>
</p:dataTable>
<h2>
#{i18n['tournaments.setup_closed_tournaments']}
</h2>
<h2>
#{i18n['tournaments.setup_closed_tournaments']}
</h2>
<p:dataTable
value=
"#{tournamentListView.setupClosedPhaseTournaments}"
var=
"tournament"
>
<p:dataTable
value=
"#{tournamentListView.setupClosedPhaseTournaments}"
var=
"tournament"
>
<p:column
style=
"width:2
%
"
>
<p:column
style=
"width:2
0px
"
>
<p:rowToggler
/>
<p:rowToggler
/>
</p:column>
</p:column>
<p:column>
<p:column>
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/tournaments/TournamentParticipantsView.java
View file @
4c62894
...
@@ -36,7 +36,7 @@ public class TournamentParticipantsView extends GenericCDIView {
...
@@ -36,7 +36,7 @@ public class TournamentParticipantsView extends GenericCDIView {
if
(
gid
!=
null
)
if
(
gid
!=
null
)
eventUserGameID
.
put
(
ttm
.
getEventUser
().
getId
(),
gid
.
getIdentifier
());
eventUserGameID
.
put
(
ttm
.
getEventUser
().
getId
(),
gid
.
getIdentifier
());
else
else
eventUserGameID
.
put
(
ttm
.
getEventUser
().
getId
(),
"n/a"
);
eventUserGameID
.
put
(
ttm
.
getEventUser
().
getId
(),
ttm
.
getEventUser
().
getUser
().
getNick
()
);
}
}
}
}
}
}
...
...
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