Commit 21974dc8 by Antti Tonkyra

Tournament admin views

1 parent 05a25dbb
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
<f:facet name="header"> <f:facet name="header">
<h:outputText value="#{i18n['tournament.admin.control']}" /> <h:outputText value="#{i18n['tournament.admin.control']}" />
</f:facet> </f:facet>
<p:commandButton value="#{i18n['tournament.admin.view']}" action="#{tournamentParticipantsView.showView(tournament.id)}"/>
<p:commandButton value="#{i18n['tournament.admin.edit']}" action="#{tournamentEditView.showEdit(tournament.id)}"/> <p:commandButton value="#{i18n['tournament.admin.edit']}" action="#{tournamentEditView.showEdit(tournament.id)}"/>
<p:commandButton value="#{i18n['tournament.admin.delete']}" action="#{tournamentDeleteView.showConfirm(tournament.id)}"/> <p:commandButton value="#{i18n['tournament.admin.delete']}" action="#{tournamentDeleteView.showConfirm(tournament.id)}"/>
</p:column> </p:column>
......
<!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:tools="http://java.sun.com/jsf/composite/cditools" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core">
<h:body>
<ui:composition template="#{sessionHandler.template}">
<f:metadata>
</f:metadata>
<ui:define name="content">
<h1>#{i18n['tournaments.admin.view_tournament_title']} #{tournamentParticipantsView.tournament.tournamentName}</h1>
<p>#{i18n['tournaments.admin.view_tournament_description']}</p>
<h:form>
<p:dataTable value="#{tournamentParticipantsView.tournament.participants}" var="participant">
<p:column>
<f:facet name="header">
<h:outputText value="#{i18n['tournament.participant_nick']}" />
</f:facet>
<h:outputText value="#{participant.participator.nick}" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="#{i18n['tournament.participant_gameid']}" />
</f:facet>
<h:outputText value="derp" />
</p:column>
</p:dataTable>
</h:form>
<h:form>
<p:commandButton value="#{i18n['tournament.admin.back_to_index']}" action="#{tournamentParticipantsView.cancel}" />
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
<!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:tools="http://java.sun.com/jsf/composite/cditools" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core">
<h:body>
<ui:composition template="#{sessionHandler.template}">
<f:metadata>
</f:metadata>
<ui:define name="content">
<h1>#{i18n['tournaments.admin.view_tournament_title']} #{tournamentParticipantsView.tournament.tournamentName}</h1>
<p>#{i18n['tournaments.admin.view_tournament_description']}</p>
<p>#{i18n['tournaments.admin.view_tournament_description_teamview_addition']}</p>
<h:form>
<p:dataTable value="#{tournamentParticipantsView.tournament.participants}" var="participant">
<p:column style="width:2%">
<p:rowToggler />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="#{i18n['tournament.team_name']}" />
</f:facet>
<h:outputText value="#{participant.teamName}" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="#{i18n['tournament.participant_captain']}" />
</f:facet>
<h:outputText value="#{participant.participator.nick}" />
</p:column>
<p:rowExpansion>
<h:panelGrid id="display" columns="2" cellpadding="4" styleClass=" ui-widget-content grid">
<h:outputText value="#{i18n['tournament.team_members']}" />
<h:panelGroup>
<ul>
<ui:repeat var="member" value="#{participant.teamMembers}">
<li>
<h:outputText value="#{member.eventUser.nick}" />
(<h:outputText value="GAMEID" />)
</li>
</ui:repeat>
</ul>
</h:panelGroup>
</h:panelGrid>
</p:rowExpansion>
</p:dataTable>
</h:form>
<h:form>
<p:commandButton value="#{i18n['tournament.admin.back_to_index']}" action="#{tournamentParticipantsView.cancel}" />
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
...@@ -1010,94 +1010,101 @@ topnavi.usermgmt = Users ...@@ -1010,94 +1010,101 @@ topnavi.usermgmt = Users
topnavi.userplaces = Computer Places topnavi.userplaces = Computer Places
topnavi.usershop = Shop topnavi.usershop = Shop
tournament.admin.control = Control tournament.admin.control = Control
tournament.admin.create = Create new tournament tournament.admin.create = Create new tournament
tournament.admin.delete = Delete tournament.admin.delete = Delete
tournament.admin.delete_cancel = Cancel Deletion tournament.admin.delete_cancel = Cancel Deletion
tournament.admin.delete_confirm = Confirm Deletion tournament.admin.delete_confirm = Confirm Deletion
tournament.admin.edit = Edit tournament.admin.edit = Edit
tournament.already_participated_into_tournament = Already participated into the selected tournament! tournament.admin.view = View
tournament.backup_player_successfully_added_to_team = Backup player added tournament.already_participated_into_tournament = Already participated into the selected tournament!
tournament.cannot_add_anon_user = Cannot add anonymous user tournament.backup_player_successfully_added_to_team = Backup player added
tournament.cannot_remove_captain = Cannot remove the team captain (you) tournament.cannot_add_anon_user = Cannot add anonymous user
tournament.control = Control tournament.cannot_remove_captain = Cannot remove the team captain (you)
tournament.create = Create tournament tournament.control = Control
tournament.edit = Edit tournament tournament.create = Create tournament
tournament.fillamount = Places taken tournament.edit = Edit tournament
tournament.game = Game tournament.fillamount = Places taken
tournament.name = Tournament name tournament.game = Game
tournament.not_within_participation_time = Not within the participation time for the tournament tournament.name = Tournament name
tournament.participants = Participants tournament.not_within_participation_time = Not within the participation time for the tournament
tournament.participate = Participate tournament.participant_gameid = Game-ID
tournament.participation_failed = Participation failed tournament.participant_nick = Nickname
tournament.participation_success = Successfully participated into tournament tournament.participants = Participants
tournament.participation_time = Participation time tournament.participate = Participate
tournament.player_already_exists_in_team = Player already exists in the team tournament.participation_failed = Participation failed
tournament.player_successfully_added_to_team = Player added to the team tournament.participation_success = Successfully participated into tournament
tournament.playerspermatch_slash_teamsize = Players / team size tournament.participation_time = Participation time
tournament.rules = Rules tournament.player_already_exists_in_team = Player already exists in the team
tournament.rules_for_tournament = Rules for tournament tournament.player_successfully_added_to_team = Player added to the team
tournament.status = Status tournament.playerspermatch_slash_teamsize = Players / team size
tournament.team_name = Team Name tournament.rules = Rules
tournament.team_name_required = Team name is required tournament.rules_for_tournament = Rules for tournament
tournament.teammember.delete = Delete tournament.status = Status
tournament.teammember.login = Login tournament.team_members = Team Members
tournament.teammember.name = Name tournament.team_name = Team Name
tournament.type = Type tournament.team_name_required = Team name is required
tournament.teammember.delete = Delete
tournaments.accept_rules_and_participate = Accept rules and participate tournament.teammember.login = Login
tournaments.active_tournaments = Active tournaments tournament.teammember.name = Name
tournaments.add_backup_player_to_team = Add backup player tournament.type = Type
tournaments.add_player_to_team = Add player to team
tournaments.admin.begin_time_constraints = Tournament begin time tournaments.accept_rules_and_participate = Accept rules and participate
tournaments.admin.cancel_edits = Cancel Edits tournaments.active_tournaments = Active tournaments
tournaments.admin.create = Create tournament tournaments.add_backup_player_to_team = Add backup player
tournaments.admin.create_a_game = Create a game tournaments.add_player_to_team = Add player to team
tournaments.admin.create_new_ruleset = Create a new ruleset tournaments.admin.begin_time_constraints = Tournament begin time
tournaments.admin.create_tournament = Create a tournament tournaments.admin.cancel_edits = Cancel Edits
tournaments.admin.description = Manage tournaments tournaments.admin.create = Create tournament
tournaments.admin.edit = Edit tournament tournaments.admin.create_a_game = Create a game
tournaments.admin.edit_tournament = Edit Tournament tournaments.admin.create_new_ruleset = Create a new ruleset
tournaments.admin.game_description = Game description tournaments.admin.create_tournament = Create a tournament
tournaments.admin.game_name = Game name tournaments.admin.description = Manage tournaments
tournaments.admin.registration_time_constraints = Registration time constraints tournaments.admin.edit = Edit tournament
tournaments.admin.remove_confirmation_text = Are you sure you want to remove this tournament? THIS CANNOT BE REVERSED! tournaments.admin.edit_tournament = Edit Tournament
tournaments.admin.remove_title = Confirm Tournament Removal tournaments.admin.game_description = Game description
tournaments.admin.rules = Rules tournaments.admin.game_name = Game name
tournaments.admin.select_a_game = Select a game tournaments.admin.registration_time_constraints = Registration time constraints
tournaments.admin.select_a_ruleset = Select a ruleset tournaments.admin.remove_confirmation_text = Are you sure you want to remove this tournament? THIS CANNOT BE REVERSED!
tournaments.admin.set_time_constraints = Set time constraints tournaments.admin.remove_title = Confirm Tournament Removal
tournaments.admin.title = Tournaments management tournaments.admin.rules = Rules
tournaments.back_to_tournament_list = Back to tournament list tournaments.admin.select_a_game = Select a game
tournaments.backup_players = Max backup players tournaments.admin.select_a_ruleset = Select a ruleset
tournaments.cancel_participation = Cancel participation tournaments.admin.set_time_constraints = Set time constraints
tournaments.description = You can view & participate into tournaments from this page. tournaments.admin.title = Tournaments management
tournaments.max_participants = Max participants tournaments.admin.view_tournament_description = You may view tournament participants and verify details and make minor edits for the teams. You may also remove any invalid participations.
tournaments.menutitle = Tournaments tournaments.admin.view_tournament_description_teamview_addition = Team listing is of form TeamMember (Game-ID).
tournaments.open_tournaments = Open tournaments tournaments.admin.view_tournament_title = View tournament:
tournaments.participate_actual_team_members = Actual team members tournaments.back_to_tournament_list = Back to tournament list
tournaments.participate_backup_player_count = Backup Player Count tournaments.backup_players = Max backup players
tournaments.participate_backup_team_members = Backup team members tournaments.cancel_participation = Cancel participation
tournaments.participate_description = You may participate to the tournament from this page. tournaments.description = You can view & participate into tournaments from this page.
tournaments.participate_player_count = Player Count tournaments.max_participants = Max participants
tournaments.participate_rules = Rules tournaments.menutitle = Tournaments
tournaments.participate_team_counters = Counters tournaments.open_tournaments = Open tournaments
tournaments.participate_team_members = Team members for participation tournaments.participate_actual_team_members = Actual team members
tournaments.participate_title = Participate to tournament tournaments.participate_backup_player_count = Backup Player Count
tournaments.participated_user_not_found = User not found. Please check the username. tournaments.participate_backup_team_members = Backup team members
tournaments.participation_already_exists = Participant is already added. tournaments.participate_description = You may participate to the tournament from this page.
tournaments.players_per_match = Max players per match tournaments.participate_player_count = Player Count
tournaments.registration_closes = Set registration closing time tournaments.participate_rules = Rules
tournaments.registration_opens = Set registration opening time tournaments.participate_team_counters = Counters
tournaments.ruleset_description = Ruleset description tournaments.participate_team_members = Team members for participation
tournaments.ruleset_name = Ruleset name tournaments.participate_title = Participate to tournament
tournaments.ruleset_rules = Tournament ruleset tournaments.participated_user_not_found = User not found. Please check the username.
tournaments.start_time = Start Time tournaments.participation_already_exists = Participant is already added.
tournaments.team_details = Team Details tournaments.players_per_match = Max players per match
tournaments.title = Tournaments tournaments.registration_closes = Set registration closing time
tournaments.tournament_details = Tournament details tournaments.registration_opens = Set registration opening time
tournaments.tournament_name = Tournament name tournaments.ruleset_description = Ruleset description
tournaments.tournament_type = Tournament type tournaments.ruleset_name = Ruleset name
tournaments.ruleset_rules = Tournament ruleset
tournaments.start_time = Start Time
tournaments.team_details = Team Details
tournaments.title = Tournaments
tournaments.tournament_details = Tournament details
tournaments.tournament_name = Tournament name
tournaments.tournament_type = Tournament type
user.accountBalance = Account balance user.accountBalance = Account balance
user.accountEventHeader = Account events user.accountEventHeader = Account events
......
...@@ -995,94 +995,101 @@ topnavi.usermgmt = K\u00E4ytt\u00E4j\u00E4t ...@@ -995,94 +995,101 @@ topnavi.usermgmt = K\u00E4ytt\u00E4j\u00E4t
topnavi.userplaces = Konepaikat topnavi.userplaces = Konepaikat
topnavi.usershop = Kauppa topnavi.usershop = Kauppa
tournament.admin.control = Hallitse tournament.admin.control = Hallitse
tournament.admin.create = Luo uusi turnaus tournament.admin.create = Luo uusi turnaus
tournament.admin.delete = Poista tournament.admin.delete = Poista
tournament.admin.delete_cancel = Peruuta tournament.admin.delete_cancel = Peruuta
tournament.admin.delete_confirm = Vahvista Poisto tournament.admin.delete_confirm = Vahvista Poisto
tournament.admin.edit = Muokkaa tournament.admin.edit = Muokkaa
tournament.already_participated_into_tournament = Olet jo osallistunut valittuun turnaukseen! tournament.admin.view = Tarkastele
tournament.backup_player_successfully_added_to_team = Varapelaaja lis\u00E4tty tournament.already_participated_into_tournament = Olet jo osallistunut valittuun turnaukseen!
tournament.cannot_add_anon_user = Ei voida lis\u00E4t\u00E4 anomuumia tournament.backup_player_successfully_added_to_team = Varapelaaja lis\u00E4tty
tournament.cannot_remove_captain = Kapteenia (sinua) ei voi poistaa joukkueesta tournament.cannot_add_anon_user = Ei voida lis\u00E4t\u00E4 anomuumia
tournament.control = Hallitse tournament.cannot_remove_captain = Kapteenia (sinua) ei voi poistaa joukkueesta
tournament.create = Luo turnaus tournament.control = Hallitse
tournament.edit = Muokkaa turnausta tournament.create = Luo turnaus
tournament.fillamount = Osallistujaa ilmottautunut tournament.edit = Muokkaa turnausta
tournament.game = Peli tournament.fillamount = Osallistujaa ilmottautunut
tournament.name = Turnauksen nimi tournament.game = Peli
tournament.not_within_participation_time = Turnauksen ilmoittautuminen ei ole aktiivinen tournament.name = Turnauksen nimi
tournament.participants = Osallistujat tournament.not_within_participation_time = Turnauksen ilmoittautuminen ei ole aktiivinen
tournament.participate = Osallistu tournament.participant_gameid = Peli-ID
tournament.participation_failed = Turnausilmoittautuminen ep\u00E4onnistui tournament.participant_nick = Nimimerkki
tournament.participation_success = Osallistuminen vastaanotettu tournament.participants = Osallistujat
tournament.participation_time = Osallistumisaika tournament.participate = Osallistu
tournament.player_already_exists_in_team = Pelaaja on jo lis\u00E4tty joukkueeseen tournament.participation_failed = Turnausilmoittautuminen ep\u00E4onnistui
tournament.player_successfully_added_to_team = Pelaaja lis\u00E4tty joukkueeseen tournament.participation_success = Osallistuminen vastaanotettu
tournament.playerspermatch_slash_teamsize = Pelaajat / tiimin koko tournament.participation_time = Osallistumisaika
tournament.rules = S\u00E4\u00E4nn\u00F6t tournament.player_already_exists_in_team = Pelaaja on jo lis\u00E4tty joukkueeseen
tournament.rules_for_tournament = S\u00E4\u00E4nn\u00F6t turnaukselle tournament.player_successfully_added_to_team = Pelaaja lis\u00E4tty joukkueeseen
tournament.status = Tilanne tournament.playerspermatch_slash_teamsize = Pelaajat / tiimin koko
tournament.team_name = Joukkueen nimi tournament.rules = S\u00E4\u00E4nn\u00F6t
tournament.team_name_required = Joukkueen nimi vaaditaan tournament.rules_for_tournament = S\u00E4\u00E4nn\u00F6t turnaukselle
tournament.teammember.delete = Poista tournament.status = Tilanne
tournament.teammember.login = Kirjautumistunnus tournament.team_members = Joukkueen j\u00E4senet
tournament.teammember.name = Nimi tournament.team_name = Joukkueen nimi
tournament.type = Tyyppi tournament.team_name_required = Joukkueen nimi vaaditaan
tournament.teammember.delete = Poista
tournaments.accept_rules_and_participate = Hyv\u00E4ksyn s\u00E4\u00E4nn\u00F6t ja osallistun tournament.teammember.login = Kirjautumistunnus
tournaments.active_tournaments = Aktiiviset turnaukset tournament.teammember.name = Nimi
tournaments.add_backup_player_to_team = Lis\u00E4\u00E4 varaj\u00E4sen tournament.type = Tyyppi
tournaments.add_player_to_team = Lis\u00E4\u00E4 pelaaja joukkueeseen
tournaments.admin.begin_time_constraints = Turnauksen aloitusaika tournaments.accept_rules_and_participate = Hyv\u00E4ksyn s\u00E4\u00E4nn\u00F6t ja osallistun
tournaments.admin.cancel_edits = Peruuta Muokkaukset tournaments.active_tournaments = Aktiiviset turnaukset
tournaments.admin.create = Luo turnaus tournaments.add_backup_player_to_team = Lis\u00E4\u00E4 varaj\u00E4sen
tournaments.admin.create_a_game = Luo peli tournaments.add_player_to_team = Lis\u00E4\u00E4 pelaaja joukkueeseen
tournaments.admin.create_new_ruleset = Luo uusi s\u00E4\u00E4nn\u00F6st\u00F6 tournaments.admin.begin_time_constraints = Turnauksen aloitusaika
tournaments.admin.create_tournament = Luo turnaus tournaments.admin.cancel_edits = Peruuta Muokkaukset
tournaments.admin.description = Hallinnoi turnauksia tournaments.admin.create = Luo turnaus
tournaments.admin.edit = Muokkaa turnausta tournaments.admin.create_a_game = Luo peli
tournaments.admin.edit_tournament = Muokkaa turnausta tournaments.admin.create_new_ruleset = Luo uusi s\u00E4\u00E4nn\u00F6st\u00F6
tournaments.admin.game_description = Pelin kuvaus tournaments.admin.create_tournament = Luo turnaus
tournaments.admin.game_name = Pelin nimi tournaments.admin.description = Hallinnoi turnauksia
tournaments.admin.registration_time_constraints = Rekister\u00F6itymisaika tournaments.admin.edit = Muokkaa turnausta
tournaments.admin.remove_confirmation_text = Oletko varma ett\u00E4 haluat poistaa turnauksen? T\u00C4T\u00C4 EI VOI PERUUTTAA! tournaments.admin.edit_tournament = Muokkaa turnausta
tournaments.admin.remove_title = Vahvista turnauksen poisto tournaments.admin.game_description = Pelin kuvaus
tournaments.admin.rules = S\u00E4\u00E4nn\u00F6t tournaments.admin.game_name = Pelin nimi
tournaments.admin.select_a_game = Valitse peli tournaments.admin.registration_time_constraints = Rekister\u00F6itymisaika
tournaments.admin.select_a_ruleset = Valitse s\u00E4\u00E4nn\u00F6st\u00F6 tournaments.admin.remove_confirmation_text = Oletko varma ett\u00E4 haluat poistaa turnauksen? T\u00C4T\u00C4 EI VOI PERUUTTAA!
tournaments.admin.set_time_constraints = Aseta aikarajat tournaments.admin.remove_title = Vahvista turnauksen poisto
tournaments.admin.title = Turnauksien hallinnointi tournaments.admin.rules = S\u00E4\u00E4nn\u00F6t
tournaments.back_to_tournament_list = Takaisin turnauslistaukseen tournaments.admin.select_a_game = Valitse peli
tournaments.backup_players = Maksimim\u00E4\u00E4r\u00E4 varapelaajia tournaments.admin.select_a_ruleset = Valitse s\u00E4\u00E4nn\u00F6st\u00F6
tournaments.cancel_participation = Peruuta osallistuminen tournaments.admin.set_time_constraints = Aseta aikarajat
tournaments.description = Voit osallistua sek\u00E4 katselmoida turnauksia t\u00E4ll\u00E4 sivulla. tournaments.admin.title = Turnauksien hallinnointi
tournaments.max_participants = Maksimiosallistujam\u00E4\u00E4r\u00E4 tournaments.admin.view_tournament_description = Voit t\u00E4ss\u00E4 n\u00E4kym\u00E4ss\u00E4 tarkastella osallistujien tietoja sek\u00E4 poistaa ep\u00E4kelvot osallistumiset.
tournaments.menutitle = Turnaukset tournaments.admin.view_tournament_description_teamview_addition = Joukkuelistaus on muotoa TiiminJ\u00E4sen (Peli-ID).
tournaments.open_tournaments = Avoimet turnaukset tournaments.admin.view_tournament_title = Tarkastele turnausta:
tournaments.participate_actual_team_members = Varsinaiset joukkueen j\u00E4senet tournaments.back_to_tournament_list = Takaisin turnauslistaukseen
tournaments.participate_backup_player_count = Varapelaajat tournaments.backup_players = Maksimim\u00E4\u00E4r\u00E4 varapelaajia
tournaments.participate_backup_team_members = Joukkueen varaj\u00E4senet tournaments.cancel_participation = Peruuta osallistuminen
tournaments.participate_description = Voit osallistua turnaukseen t\u00E4ll\u00E4 sivulla. tournaments.description = Voit osallistua sek\u00E4 katselmoida turnauksia t\u00E4ll\u00E4 sivulla.
tournaments.participate_player_count = Pelaajam\u00E4\u00E4r\u00E4 tournaments.max_participants = Maksimiosallistujam\u00E4\u00E4r\u00E4
tournaments.participate_rules = S\u00E4\u00E4nn\u00F6t tournaments.menutitle = Turnaukset
tournaments.participate_team_counters = Laskurit tournaments.open_tournaments = Avoimet turnaukset
tournaments.participate_team_members = Valitse joukkueesi tournaments.participate_actual_team_members = Varsinaiset joukkueen j\u00E4senet
tournaments.participate_title = Osallistu turnaukseen tournaments.participate_backup_player_count = Varapelaajat
tournaments.participated_user_not_found = K\u00E4ytt\u00E4j\u00E4\u00E4 ei l\u00F6ydy. Tarkista k\u00E4ytt\u00E4j\u00E4tunnus. tournaments.participate_backup_team_members = Joukkueen varaj\u00E4senet
tournaments.participation_already_exists = K\u00E4ytt\u00E4j\u00E4 on jo lis\u00E4tty. tournaments.participate_description = Voit osallistua turnaukseen t\u00E4ll\u00E4 sivulla.
tournaments.players_per_match = Maksimim\u00E4\u00E4r\u00E4 pelaajia matchissa tournaments.participate_player_count = Pelaajam\u00E4\u00E4r\u00E4
tournaments.registration_closes = Rekister\u00F6itymisen sulkeutumisaika tournaments.participate_rules = S\u00E4\u00E4nn\u00F6t
tournaments.registration_opens = Rekister\u00F6itymisen aukeamisaika tournaments.participate_team_counters = Laskurit
tournaments.ruleset_description = S\u00E4\u00E4nn\u00F6st\u00F6n kuvaus tournaments.participate_team_members = Valitse joukkueesi
tournaments.ruleset_name = S\u00E4\u00E4nn\u00F6st\u00F6n nimi tournaments.participate_title = Osallistu turnaukseen
tournaments.ruleset_rules = Turnauksen s\u00E4\u00E4nn\u00F6t tournaments.participated_user_not_found = K\u00E4ytt\u00E4j\u00E4\u00E4 ei l\u00F6ydy. Tarkista k\u00E4ytt\u00E4j\u00E4tunnus.
tournaments.start_time = Aloitusaika tournaments.participation_already_exists = K\u00E4ytt\u00E4j\u00E4 on jo lis\u00E4tty.
tournaments.team_details = Joukkuekohtaiset tiedot tournaments.players_per_match = Maksimim\u00E4\u00E4r\u00E4 pelaajia matchissa
tournaments.title = Turnaukset tournaments.registration_closes = Rekister\u00F6itymisen sulkeutumisaika
tournaments.tournament_details = Turnauksen yksityiskohdat tournaments.registration_opens = Rekister\u00F6itymisen aukeamisaika
tournaments.tournament_name = Turnauksen nimi tournaments.ruleset_description = S\u00E4\u00E4nn\u00F6st\u00F6n kuvaus
tournaments.tournament_type = Turnauksen tyyppi tournaments.ruleset_name = S\u00E4\u00E4nn\u00F6st\u00F6n nimi
tournaments.ruleset_rules = Turnauksen s\u00E4\u00E4nn\u00F6t
tournaments.start_time = Aloitusaika
tournaments.team_details = Joukkuekohtaiset tiedot
tournaments.title = Turnaukset
tournaments.tournament_details = Turnauksen yksityiskohdat
tournaments.tournament_name = Turnauksen nimi
tournaments.tournament_type = Turnauksen tyyppi
user.accountBalance = Tilin saldo user.accountBalance = Tilin saldo
user.accountEventHeader = Tilitapahtumat user.accountEventHeader = Tilitapahtumat
......
package fi.codecrew.moya.web.cdiview.tournaments;
import javax.ejb.EJB;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;
import fi.codecrew.moya.beans.TournamentBeanLocal;
import fi.codecrew.moya.model.Tournament;
import fi.codecrew.moya.web.cdiview.GenericCDIView;
@Named
@ConversationScoped
public class TournamentParticipantsView extends GenericCDIView {
private static final long serialVersionUID = -6066216858686165211L;
@EJB private TournamentBeanLocal tournamentBean;
private Tournament tournament = null;
public String showView(Integer tournamentId) {
this.beginConversation();
this.setTournament(tournamentBean.getTournamentById(tournamentId));
if(this.tournament.getPlayersPerTeam() == 1)
return "/tournaments/admin/view_tournament_single.xhtml";
else
return "/tournaments/admin/view_tournament_team.xhtml";
}
public String cancel() {
this.endConversation();
return "/tournaments/admin/index.xhtml";
}
public Tournament getTournament() {
return tournament;
}
public void setTournament(Tournament tournament) {
this.tournament = tournament;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!