Wiki source code of Polls
Last modified by Crumbgrabber Trading on 2025/10/28 21:02
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{include reference="Polls.Parameters"/}} | ||
| 2 | |||
| 3 | {{velocity filter="none"}} | ||
| 4 | #if($hasCreatePage) | ||
| 5 | |||
| 6 | (% class="pull-right buttonwrapper" %) | ||
| 7 | ((( | ||
| 8 | [[$services.icon.render('add') $services.localization.render('polls.home.create')>>Polls.Create||class='btn btn-success button']] | ||
| 9 | ))) | ||
| 10 | |||
| 11 | #end | ||
| 12 | #set($tableOptions = { | ||
| 13 | 'className' : $pollClass, | ||
| 14 | 'rowCount' : 15, | ||
| 15 | 'tagCloud' : true, | ||
| 16 | 'translationPrefix' : 'polls.index.' | ||
| 17 | }) | ||
| 18 | #set($columns = ['doc.title', 'type', 'from', 'to', 'doc.creator', '_actions']) | ||
| 19 | #set($columnProperties = { | ||
| 20 | 'doc.title' : { 'type' : 'text', 'link' : 'view', 'filterable' : true}, | ||
| 21 | 'type' : { 'type' : 'list' }, | ||
| 22 | 'from' : { 'type' : 'date' }, | ||
| 23 | 'to' : { 'type' : 'date' }, | ||
| 24 | 'doc.creator' : { 'type' : 'text', 'filterable' : true}, | ||
| 25 | '_actions': {'html': true, 'sortable': false, 'actions': ['edit', 'delete']} | ||
| 26 | }) | ||
| 27 | #livetable('polls', $columns, $columnProperties, $tableOptions) | ||
| 28 | #set($docextras = []) | ||
| 29 | {{/velocity}} |