Исходный код вики Batch Import
Редактировал(а) Admin Admin 2024/02/21 14:55
Последние авторы
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | #set($collist = ['doc.title', 'doc.location', 'doc.date', 'doc.author']) | ||
| 3 | #set($colprops = { | ||
| 4 | 'doc.title' : { 'type' : 'text' , 'size' : 30, 'link' : 'view' }, | ||
| 5 | 'doc.location': {'html': true}, | ||
| 6 | 'doc.date' : { 'type' : 'date' }, | ||
| 7 | 'doc.author' : { 'type' : 'text', 'link' : 'author' } | ||
| 8 | }) | ||
| 9 | #set($options = { | ||
| 10 | 'className' : 'BatchImport.BatchImportClass', | ||
| 11 | 'translationPrefix' : 'batchimport.livetable.', | ||
| 12 | 'rowCount' : 15, | ||
| 13 | 'selectedColumn' : 'doc.location' | ||
| 14 | }) | ||
| 15 | #if(!$isGuest) | ||
| 16 | #set($discard = $collist.add('_actions')) | ||
| 17 | #set($discard = $colprops.put('_actions', { 'actions' : ['edit', 'delete'] })) | ||
| 18 | #end | ||
| 19 | #livetable('batchimports' $collist $colprops $options) | ||
| 20 | {{/velocity}} |