Wiki source code of $msg.get("polls.home.title")
Last modified by Marta Girdea on 2010/04/16 12:47
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{info}} | ||
2 | This is an improved Poll Application, aiming to replace the old one which, aside from not working with newer versions of XWiki, offered limited functionality and poor interaction. | ||
3 | |||
4 | This application allows to create polls of 5 types: | ||
5 | |||
6 | * simple choice | ||
7 | * multiple choice, with the possibility of limiting the number of choices per voter | ||
8 | * multiple weighted choice, with the possibility of limiting the number of choices per voter: users can assign weights to the options, and the weights need to sum up to 100% | ||
9 | * rating: users are asked assign ratings from 0 to MAX to all the options | ||
10 | * ranking: users are asked to order the options (higher = better) | ||
11 | |||
12 | Additionally, it provides a Poll wiki macro allowing to display the results of a poll in another wiki page. | ||
13 | |||
14 | Please give the application a try to see if things work as expected. Suggestions of UI (or other) improvements are very welcome. | ||
15 | |||
16 | |||
17 | **svn: [[https://svn.xwiki.org/svnroot/xwiki/contrib/projects/xwiki-application-polls/trunk/]]** | ||
18 | **Jira: [[http://jira.xwiki.org/jira/browse/XCONTRIB/component/10920]]** | ||
19 | {{/info}} | ||
20 | |||
21 | {{warning}}A new version has been uploaded, with several changes in the data structures. Polls created before this update have lost their "Question" field.{{/warning}} | ||
22 | |||
23 | {{include document="Polls.Parameters"/}} | ||
24 | |||
25 | {{velocity filter="none"}} | ||
26 | #if($hasCreatePage) | ||
27 | |||
28 | (% class="poll-create" %) | ||
29 | [[**$msg.get('polls.home.create') ยป**>>$pollCreateForm]] | ||
30 | |||
31 | #end | ||
32 | #set($tableOptions = { | ||
33 | 'className' : $pollClass, | ||
34 | 'rowCount' : 15, | ||
35 | 'tagCloud' : true, | ||
36 | 'translationPrefix' : 'polls.index.' | ||
37 | }) | ||
38 | #set($columns = ['doc.title', 'type', 'from', 'to', 'doc.creator']) | ||
39 | #set($columnProperties = { | ||
40 | 'doc.title' : { 'type' : 'text', 'link' : 'view', 'filterable' : true}, | ||
41 | 'type' : { 'type' : 'list' }, | ||
42 | 'from' : { 'type' : 'date' }, | ||
43 | 'to' : { 'type' : 'date' }, | ||
44 | 'doc.creator' : { 'type' : 'text', 'filterable' : true} | ||
45 | }) | ||
46 | #livetable('polls', $columns, $columnProperties, $tableOptions) | ||
47 | {{/velocity}} |