All Downloads are FREE. Search and download functionalities are using the official Maven repository.

panda.tool.codegen.view.freemarker.action_bulk.ftl.ftl Maven / Gradle / Ivy

Go to download

Panda Tool contains some commonly used tools and source code generator for Panda Mvc. Can generate Entity/Query/Dao/Action class, Freemarker (HTML) template file.

There is a newer version: 1.5.3
Show newest version
<#include "common.ftl"/>
<@header/>

<@sheader steps=[ ui.name, ui.name + "-confirm" ]/> <@swell/> <#include "bulk-toolbar.ftl"/> ${s}#include "/action-alert.ftl"/>
${s}#if result?has_content> ${s}#assign _columns_ = [{ "name": "_rownum_", "type": "rownum", "header": a.getText("listview-th-rownum", ""), "fixed": true }, { "name": "_check_", "type": "check", "fixed": true }, <#list ui.orderedColumnList as c>{ "name": "${c.name}", <#if entity.isPrimaryKey(c.name)> "pkey" : true, "value": true, <#elseif c.value??> "value": ${c.value?string}, "header": a.getFieldLabel("${c.name}"), "display": <#if c.display?has_content>${c.display?string}<#else>a.displayField("${c.name}"), <#if c.format??> "format": { <#list c.format.paramList as fp> "${fp.name}": ${fp.value}, <#if c.format.type?has_content> "type": "${c.format.type?replace('#', '\\x23')}"<#if c.format.pattern?has_content>, <#if c.format.pattern?has_content> "pattern": "${c.format.pattern?replace('#', '\\x23')}" }, <#if c.hidden??> "hidden": ${c.hidden?string}, <#if c.group??> "group": ${c.group?string}, "sortable": false, "tooltip": a.getFieldTooltip("${c.name}") }<#if c_has_next>, ] /> ${s}@p.listview id="${action.name}_${ui.name}" action="~/${ui.name}${props['ui.action.seperator']!'.'}execute" method="post" list=result columns=_columns_<#if ui.cssColumn?has_content> cssColumn="${ui.cssColumn}" cssTable="table-hover table-striped" <#if ui.params.addon?has_content> addon="${ui.params.addon}" />
${s}@p.submit onclick="return ${action.name}_${ui.name}_submit();" icon="icon-${ui.name}-execute" label="#(btn-${ui.name}-execute)"/> <#include "bulk-buttons.ftl"/>
${s}#else> <@sback/> ${s}/#if> <@safeinc step=""/>
<@footer/>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy