Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8eaa981c
authored
May 11, 2013
by
Petri Jarvisalo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wizard
1 parent
a6f97792
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
9 deletions
code/MoyaWeb/.settings/org.eclipse.wst.common.component
code/MoyaWeb/WebContent/resources/templates/template1/css/style.css
code/MoyaWeb/WebContent/tournaments/admin/createwizard.xhtml
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/tournaments/TournamentCreateView.java
code/MoyaWeb/.settings/org.eclipse.wst.common.component
View file @
8eaa981
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project-modules
id=
"moduleCoreId"
project-version=
"1.5.0"
>
<project-modules
id=
"moduleCoreId"
project-version=
"1.5.0"
>
<wb-module
deploy-name=
"MoyaWeb"
>
<wb-module
deploy-name=
"MoyaWeb"
>
<wb-resource
deploy-path=
"/"
source-path=
"/WebContent"
tag=
"defaultRootSource"
/>
<wb-resource
deploy-path=
"/"
source-path=
"/WebContent"
tag=
"defaultRootSource"
/>
<wb-resource
deploy-path=
"/WEB-INF/classes"
source-path=
"/src"
/>
<wb-resource
deploy-path=
"/WEB-INF/classes"
source-path=
"/src"
/>
...
...
code/MoyaWeb/WebContent/resources/templates/template1/css/style.css
View file @
8eaa981
.ui-widget
,
.ui-widget
.ui-widget
,
.ui-button-text
{
.ui-widget
,
.ui-widget
.ui-widget
,
.ui-button-text
,
.ui-wizard-step-title
{
font-size
:
90%
!important
;
font-size
:
90%
!important
;
}
}
...
...
code/MoyaWeb/WebContent/tournaments/admin/createwizard.xhtml
View file @
8eaa981
...
@@ -9,30 +9,85 @@
...
@@ -9,30 +9,85 @@
</f:metadata>
</f:metadata>
<ui:define
name=
"content"
>
<ui:define
name=
"content"
>
<h:form>
<h1>
Create tournament
</h1>
<p:wizard
widgetVar=
"wiz"
flowListener=
"#{createWizard.onFlowProcess}"
>
<h:form>
<p:wizard
widgetVar=
"wiz"
flowListener=
"#{tournamentCreateView.onFlowProcess}"
>
<p:tab
id=
"selectGame"
title=
"Select a game"
>
<p:tab
id=
"selectGame"
title=
"Select a game"
>
<p:panel
header=
"Select a game"
>
<p:panel
header=
"Select a game"
>
<h:messages
errorClass=
"error"
/>
<h:messages
errorClass=
"error"
/>
Select a game
<p:selectOneMenu>
<p:selectOneMenu>
<f:selectItem
itemLabel=
""
/>
<f:selectItem
itemLabel=
""
/>
<f:selectItem
itemLabel=
"spurdo spärde"
/>
<f:selectItem
itemLabel=
"spurdo spärde"
/>
<f:selectItem
itemLabel=
"cockmaster"
/>
<f:selectItem
itemLabel=
"cockmaster"
/>
</p:selectOneMenu>
</p:selectOneMenu>
<h:outputText
value=
"or"
/>
<h2>
Create new game
</h2>
<p:button
/>
<h:panelGrid
columns=
"2"
>
<h:outputText
value=
"Name"
/>
<h:outputText
value=
"Description"
/>
<h:selectBooleanCheckbox
value=
"#{createWizard.skip}"
/>
<p:inputText
/>
<p:inputText
/>
<h:outputText
value=
"Upload image"
/>
<h:outputText
value=
""
/>
<p:fileUpload
mode=
"simple"
/>
</h:panelGrid>
</p:panel>
</p:panel>
</p:tab>
</p:tab>
<p:tab
id=
"selectRuleset"
title=
"Select a ruleset"
>
<p:panel
header=
"Select a ruleset"
>
<h:messages
errorClass=
"error"
/>
Select a ruleset
<p:selectOneMenu>
<f:selectItem
itemLabel=
""
/>
<f:selectItem
itemLabel=
"Pro-rules"
/>
<f:selectItem
itemLabel=
"N00b-rules"
/>
</p:selectOneMenu>
<br
/>
<h2>
Create new ruleset
</h2>
<h:outputText
value=
"Rule Name"
/>
<br
/>
<p:inputText
/>
<br
/>
<h:outputText
value=
"Description"
/>
<br
/>
<p:inputTextarea
/>
</p:panel>
</p:tab>
<p:tab
id=
"selectRegTimes"
title=
"Set registration times"
>
<p:panel
header=
"Select registration times"
>
<h:messages
errorClass=
"error"
/>
<h2>
Registration
</h2>
<h:panelGrid
columns=
"2"
>
<h:outputText
value=
"Opens"
/>
<h:outputText
value=
"Closees"
/>
<p:calendar
stepHour=
"1"
stepMinute=
"10"
pattern=
"dd.MM.yyyy hh:mm"
/>
<p:calendar
stepHour=
"1"
stepMinute=
"10"
pattern=
"dd.MM.yyyy hh:mm"
/>
</h:panelGrid>
<h2>
Event Start time
</h2>
<h:panelGrid>
<h:outputText
value=
"Start time"
/>
<p:calendar
stepHour=
"1"
stepMinute=
"10"
pattern=
"dd.MM.yyyy hh:mm"
/>
</h:panelGrid>
</p:panel>
<div
style=
"float: right;"
>
<p:commandButton
icon=
"apply"
value=
"Create event"
/>
</div>
</p:tab>
</p:wizard>
</p:wizard>
</h:form>
</h:form>
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/tournaments/TournamentCreateView.java
0 → 100644
View file @
8eaa981
package
fi
.
codecrew
.
moya
.
web
.
cdiview
.
tournaments
;
import
java.io.Serializable
;
import
fi.codecrew.moya.model.Role
;
import
fi.codecrew.moya.web.cdiview.GenericCDIView
;
import
javax.ejb.EJB
;
import
javax.enterprise.context.ConversationScoped
;
import
javax.faces.event.ActionEvent
;
import
javax.inject.Named
;
import
org.primefaces.event.FlowEvent
;
@Named
@ConversationScoped
public
class
TournamentCreateView
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
2547358764980373797L
;
// called on finish
public
void
save
(
ActionEvent
actionEvent
)
{
}
public
String
onFlowProcess
(
FlowEvent
event
)
{
return
event
.
getNewStep
();
}
}
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