Wiki-Quellcode von Umfragen
Zuletzt geändert von loppermann am 2024/05/04 20:13
Zeige letzte Bearbeiter
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}} |