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
Show 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 @@
<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:dataTable
styleClass=
"bordertable"
rowClasses=
"roweven,rowodd"
id=
"compolisttable"
value=
"#{compoMgmtView.entries}"
var=
"entry"
>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Title"
/>
</f:facet>
<p:dataTable
styleClass=
"bordertable"
rowClasses=
"roweven,rowodd"
id=
"compolisttable"
value=
"#{compoMgmtView.entries}"
var=
"entry"
>
<p:column
headerText=
"Title"
>
<h:outputText
value=
"#{entry.title}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Author"
/>
</f:facet>
</p:column>
<p:column
headerText=
"Author"
>
<h:outputText
value=
"#{entry.author}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"notes"
/>
</f:facet>
</p:column>
<p:column
headerText=
"Notes"
>
<h:outputText
value=
"#{entry.notes}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"screenmessage"
/>
</f:facet>
</p:column>
<p:column
headerText=
"Screenmessage"
>
<h:outputText
value=
"#{entry.screenMessage}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"creator"
/>
</f:facet>
</p:column>
<p:column
headerText=
"creator"
>
<h:link
outcome=
"/useradmin/edit"
value=
"#{entry.creator.user.nick}"
>
<f:param
name=
"userid"
value=
"#{entry.creator.user.id}"
/>
</h:link>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"sort"
/>
</f:facet>
</p:column>
<p:column
headerText=
"Sort"
>
<h:inputText
value=
"#{entry.sort}"
size=
"4"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Vote total"
/>
</f:facet>
</p:column>
<p:column
headerText=
"Vote total"
>
<h:outputText
value=
"#{entry.votetotal}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"Vote count"
/>
</f:facet>
</p:column>
<p:column
headerText=
"Vote count"
>
<h:outputText
value=
"#{entry.votes.size()}"
/>
</
h
:column>
</
p
:column>
<
h
:column>
<
p
:column>
<h:link
outcome=
"/voting/submitEntry"
value=
"#{i18n['entry.edit']}"
>
<f:param
name=
"entryId"
value=
"#{entry.id}"
/>
</h:link>
</
h
:column>
</
p
:column>
</
h
:dataTable>
</
p
:dataTable>
<h:commandButton
action=
"#{compoMgmtView.saveSort}"
value=
"#{i18n['compo.savesort']}"
/>
</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