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

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

<#assign s = "<"/>
<#assign e = ">"/>
<#assign d = "$"/>
<#if ui??>
	<#if ui.params.actionList??><#assign actionList = ui.params.actionList/>
	<#if ui.params.actionCopy??><#assign actionCopy = ui.params.actionCopy/>
	<#if ui.params.actionView??><#assign actionView = ui.params.actionView/>
	<#if ui.params.actionPrint??><#assign actionPrint = ui.params.actionPrint/>
	<#if ui.params.actionInsert??><#assign actionInsert = ui.params.actionInsert/>
	<#if ui.params.actionUpdate??><#assign actionUpdate = ui.params.actionUpdate/>
	<#if ui.params.actionDelete??><#assign actionDelete = ui.params.actionDelete/>
	<#list action.listUIList as ui><#if ui.template?? && ui.generate!false>
		<#if ui.template == ("list")>
			<#assign actionList = ui.name/>
		<#elseif ui.template == ("bdelete") 
			|| ui.template == ("bupdate")
			|| ui.template == ("bedit")>
			<#assign actionBulkNames = (actionBulkNames![]) + [ ui.name ]/>
		
	
	<#list action.inputUIList as ui><#if ui.template?? && ui.generate!false>
		<#if ui.template == ("view")>
			<#if !(actionView??)>
				<#assign actionView = '~/' + ui.name/>
			
		<#elseif ui.template == ("print")>
			<#if !(actionPrint??)>
				<#assign actionPrint = '~/' + ui.name/>
			
		<#elseif ui.template == ("insert")>
			<#if !(actionInsert??)>
				<#assign actionInsert = '~/' + ui.name/>
			
		<#elseif ui.template == ("copy")>
			<#if !(actionCopy??)>
				<#assign actionCopy = '~/' + ui.name/>
			
		<#elseif ui.template == ("update")>
			<#if !(actionUpdate??)>
				<#assign actionUpdate = '~/' + ui.name/>
			
		<#elseif ui.template == ("delete")>
			<#if !(actionDelete??)>
				<#assign actionDelete = '~/' + ui.name/>
			
		
	
	<#macro header>


	${s}@p.text name="title-${gen.trimUiName(ui.name)}">${s}@p.param name="title" value="#(title)"/>${s}/@p.text>


<#if ui.header?has_content>
	${ui.header}

	
	<#macro sheader steps=[]>
		<#if steps?has_content>
	
<#else>

${s}@p.i icon="icon"/> ${s}@p.text name="title-${gen.trimUiName(ui.name)}">${s}@p.param name="title" value="#(title)"/>${s}/@p.text>

<#macro swell step=""> ${s}#assign _well = a.getText("well-${gen.trimUiName(ui.name)}${step}", "")/> ${s}#if _well?has_content>
${d}{_well}
${s}/#if> <#macro sback>
${s}@p.a href="#" onclick="window.history.back();return false;" btn="default" icon="back" label="#(btn-back)"/>
<#macro footer> <#if ui.footer?has_content> ${ui.footer} <#macro aurl au>${s}@p.url<#rt/> <#if au.value??> value='${au.value}'<#rt/> <#if au.action??> action='${au.action}'<#rt/> escapeAmp='false'><#rt/> <#if au.params?has_content> <#list au.params?keys as pn> <#assign _dpv = au.params[pn]?string/> ${s}@p.param name="${pn}" value="%{<#if _dpv?starts_with('.')>r${_dpv}}"/><#rt/> ${s}/@p.url><#rt/> <#macro safeinc step> <#if ui.safeInclude?? && ui.safeInclude?lower_case != 'false'> ${s}@safeinclude path="<#if ui.safeInclude?has_content>${ui.safeInclude}<#else>${action.simpleActionClass}_${gen.trimUiName(ui.name)}${step}-custom.ftl"/>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy