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 661ab5f3
authored
Jun 08, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change voting list to use primefaces table
1 parent
5783461c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
45 deletions
code/MoyaWeb/WebContent/voting/details.xhtml
code/MoyaWeb/WebContent/voting/details.xhtml
View file @
661ab5f
...
@@ -18,68 +18,44 @@
...
@@ -18,68 +18,44 @@
<compo:editCompo
commitAction=
"#{compoMgmtView.saveCompo}"
commitValue=
"#{i18n['voting.create.saveCompo']}"
/>
<compo:editCompo
commitAction=
"#{compoMgmtView.saveCompo}"
commitValue=
"#{i18n['voting.create.saveCompo']}"
/>
<h2>
#{i18n['compoMgmtView.compo.entries']}
</h2>
<h2>
#{i18n['compoMgmtView.compo.entries']}
</h2>
<h:form>
<h:form>
<h:dataTable
styleClass=
"bordertable"
rowClasses=
"roweven,rowodd"
id=
"compolisttable"
value=
"#{compoMgmtView.entries}"
var=
"entry"
>
<p:dataTable
styleClass=
"bordertable"
rowClasses=
"roweven,rowodd"
id=
"compolisttable"
value=
"#{compoMgmtView.entries}"
var=
"entry"
>
<h:column>
<p:column
headerText=
"Title"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"Title"
/>
</f:facet>
<h:outputText
value=
"#{entry.title}"
/>
<h:outputText
value=
"#{entry.title}"
/>
</h:column>
</p:column>
<h:column>
<p:column
headerText=
"Author"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"Author"
/>
</f:facet>
<h:outputText
value=
"#{entry.author}"
/>
<h:outputText
value=
"#{entry.author}"
/>
</h:column>
</p:column>
<h:column>
<p:column
headerText=
"Notes"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"notes"
/>
</f:facet>
<h:outputText
value=
"#{entry.notes}"
/>
<h:outputText
value=
"#{entry.notes}"
/>
</h:column>
</p:column>
<h:column>
<p:column
headerText=
"Screenmessage"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"screenmessage"
/>
</f:facet>
<h:outputText
value=
"#{entry.screenMessage}"
/>
<h:outputText
value=
"#{entry.screenMessage}"
/>
</h:column>
</p:column>
<h:column>
<p:column
headerText=
"creator"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"creator"
/>
</f:facet>
<h:link
outcome=
"/useradmin/edit"
value=
"#{entry.creator.user.nick}"
>
<h:link
outcome=
"/useradmin/edit"
value=
"#{entry.creator.user.nick}"
>
<f:param
name=
"userid"
value=
"#{entry.creator.user.id}"
/>
<f:param
name=
"userid"
value=
"#{entry.creator.user.id}"
/>
</h:link>
</h:link>
</h:column>
</p:column>
<h:column>
<p:column
headerText=
"Sort"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"sort"
/>
</f:facet>
<h:inputText
value=
"#{entry.sort}"
size=
"4"
/>
<h:inputText
value=
"#{entry.sort}"
size=
"4"
/>
</h:column>
</p:column>
<h:column>
<p:column
headerText=
"Vote total"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"Vote total"
/>
</f:facet>
<h:outputText
value=
"#{entry.votetotal}"
/>
<h:outputText
value=
"#{entry.votetotal}"
/>
</h:column>
</p:column>
<h:column>
<p:column
headerText=
"Vote count"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"Vote count"
/>
</f:facet>
<h:outputText
value=
"#{entry.votes.size()}"
/>
<h:outputText
value=
"#{entry.votes.size()}"
/>
</
h
:column>
</
p
:column>
<
h
:column>
<
p
:column>
<h:link
outcome=
"/voting/submitEntry"
value=
"#{i18n['entry.edit']}"
>
<h:link
outcome=
"/voting/submitEntry"
value=
"#{i18n['entry.edit']}"
>
<f:param
name=
"entryId"
value=
"#{entry.id}"
/>
<f:param
name=
"entryId"
value=
"#{entry.id}"
/>
</h:link>
</h:link>
</
h
:column>
</
p
:column>
</
h
:dataTable>
</
p
:dataTable>
<h:commandButton
action=
"#{compoMgmtView.saveSort}"
value=
"#{i18n['compo.savesort']}"
/>
<h:commandButton
action=
"#{compoMgmtView.saveSort}"
value=
"#{i18n['compo.savesort']}"
/>
</h:form>
</h:form>
...
...
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