![JAR search and dependency download from the Maven repository](/logo.png)
panda.tool.codegen.view.freemarker.action_edit.ftl.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-tool Show documentation
Show all versions of panda-tool Show documentation
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.
<#include "common.ftl"/>
<@header/>
<@sheader steps=[ ui.name ]/>
<@swell/>
<#include "edit-toolbar.ftl"/>
${s}#include "/action-alert.ftl"/>
<#list ui.displayFieldList as f>
<#if f.editTag?? && f.editTag.name?ends_with(".file")>
<#assign _formenctype = "multipart/form-data" />
#if>
#list>
${s}@p.form cssClass="p-eform" id="<#if ui.formId?has_content>${ui.formId}<#else>${action.name}#if>" focusme="${ui.focus?c}" method="post"<#if _formenctype?has_content> enctype="${_formenctype}"#if><#if ui.theme?has_content> theme="${ui.theme}"#if>>
<#include "edit-update-fields.ftl" />
${s}#assign _buttons_ = [] />
<#if "true" == props['ui.input.confirm']!>
${s}#if a.inputConfirm>
${s}#assign _buttons_ = _buttons_ + [{
"icon": "icon-${ui.name}-confirm",
"action": "~/${ui.name}${props['ui.action.seperator']!'.'}confirm",
"text": "btn-${ui.name}-confirm"
}]/>
${s}#else>
#if>
${s}#assign _buttons_ = _buttons_ + [{
"icon": "icon-${ui.name}-execute",
"action": "~/${ui.name}${props['ui.action.seperator']!'.'}execute",
"text": "btn-${ui.name}-execute"
}]/>
<#if "true" == props['ui.input.confirm']!>
${s}/#if>
#if>
<#if "true" == props['ui.input.reset']!>
${s}#assign _buttons_ = _buttons_ + [{
"type": "reset",
"icon": "icon-reset",
"text": "btn-reset"
}]/>
#if>
<#include "edit-actions.ftl"/>
${s}/@p.form>
<#include "edit-script.ftl" />
<@safeinc step=""/>
<@footer/>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy