Wiki source code of Phones Home
Last modified by Ludovic Dubost on 2018/11/30 15:24
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.1 | 1 | {{velocity}} |
2 | #set ($discard = $services.localization.use('document', 'Phones.PhonesTranslations')) | ||
3 | #set ($columnsProperties = { | ||
4 | '_image': {"sortable":false,"filterable":false,"html":true}, | ||
5 | 'doc.title': {"type":"text","size":20,"link":"view"}, | ||
6 | 'os': {"type":"list","size":10}, | ||
7 | 'os_version': {"type":"number","size":10}, | ||
8 | 'screen_size': {"type":"number","size":10}, | ||
9 | 'hardware_cpu': {"type":"text","size":10}, | ||
10 | '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]} | ||
11 | }) | ||
12 | #set ($options = { | ||
13 | 'className': 'Phones.PhonesClass', | ||
14 | 'resultPage': 'Phones.PhonesLiveTableResults', | ||
15 | 'translationPrefix': 'phones.livetable.', | ||
16 | 'tagCloud': true, | ||
17 | 'rowCount': 15, | ||
18 | 'maxPages': 10, | ||
19 | 'selectedColumn': 'doc.title', | ||
20 | 'defaultOrder': 'asc' | ||
21 | }) | ||
22 | #set ($columns = ['_image', 'doc.title', 'os', 'os_version', 'screen_size', 'hardware_cpu', '_actions']) | ||
23 | #livetable('phones' $columns $columnsProperties $options) | ||
24 | {{/velocity}} |