Toggle navigation
Entrar
Registrar
BNMP2
Índice de Documentos
Diretório de Usuários
Application Index
Global
Diretório de Divisões
You need to login to start the chat system
Collections Home
Código fonte Wiki de
Collections Home
Última modificação por
Administrator
em 25/07/2020, 16:12
Mostrar números de linha
{{velocity}} #if("$!request.collectionName" != '' && "$!request.templateReference" != '') #set ($collectionReference = $services.model.createDocumentReference($doc.wiki, $doc.space, $request.collectionName)) $response.sendRedirect($xwiki.getURL($collectionReference, 'edit', "parent=$escapetool.url($doc.documentReference)&template=$escapetool.url($request.templateReference)")) #stop #end $services.localization.render('collections.home.create.hint') {{html}} <form action="" class="xform half"> <dl> <dt> <label for="collectionName">$services.localization.render('collections.home.create.name')</label> <span class="xHint">$services.localization.render('collections.home.create.name.hint')</span> </dt> <dd><input type="text" name="collectionName" id="collectionName" /></dd> <dt> <label for="templateReference">$services.localization.render('collections.home.create.type')</label> <span class="xHint">$services.localization.render('collections.home.create.type.hint')</span> </dt> <dd> <select name="templateReference" id="templateReference"> #foreach ($type in $services.collection.types) <option value="$services.collection.get($type).templateReference"> $services.localization.render("collections.home.type.$type") </option> #end </select> </dd> </dl> <p class="buttons"> <span class="buttonwrapper"> <input class="button" type="submit" value="$services.localization.render('collections.home.create')" /> </span> </p> </form> {{/html}} #set ($columnsProperties = { 'doc.name': {'type': 'text', 'link': 'view'}, 'type': {'type': 'text'}, 'doc.author': {'type': 'text', 'link': 'author'}, 'doc.date': {'type': 'text'}, '_actions': {'sortable': false, 'filterable': false, 'html': true, 'actions': ['edit', 'delete']} }) #set ($options = { 'className': 'Collections.CollectionClass', 'resultPage': 'Collections.CollectionResults', 'translationPrefix': 'collections.livetable.', 'rowCount': 15, 'maxPages': 10, 'selectedColumn': 'doc.name', 'defaultOrder': 'asc' }) #set ($columns = ['doc.name', 'type', 'doc.author', 'doc.date', '_actions']) #livetable('collections' $columns $columnsProperties $options) {{/velocity}}