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

panda.tool.codegen.view.freemarker.edit-insert-fields.ftl Maven / Gradle / Ivy

<#list ui.displayFieldList as f>
	${s}#if a.displayField("${f.name}")>
	<#if f.before?has_content>
			${f.before}
	
	<#if f.content?has_content>
			${f.content}
	<#elseif f.editTag?? && f.editTag.name?ends_with(".hidden")>
			${s}@${f.editTag.name}
				name="<#if f.actionField>a.${f.name}"
				value="%{<#if f.actionField>a<#else>r.${f.name}}"
		<#list f.editTag.paramList as tp><#if gen.startsWithLetter(tp.name)>
				${tp.name}="${tp.value}"
			<#elseif tp.name?starts_with('*')>
				${tp.name?substring(1)}="${tp.value}"
		
			/>
	<#elseif f.editTag??>
			${s}@${f.editTag.name}
				key="<#if f.actionField>a.${f.name}"
			<#if f.editTag.name?ends_with(".file")>
				value=""
			<#else>
				value="%{<#if f.actionField>a<#else>r.${f.name}}"
			
			<#if (f.required!false)>
				required="true"
			
			<#list f.editTag.paramList as tp><#if gen.startsWithLetter(tp.name)>
				${tp.name}="${tp.value}"
			<#elseif tp.name?starts_with('*')>
				${tp.name?substring(1)}="${tp.value}"
			
			<#if f.editTag.hasParamStartsWithAny("%+")>
			>
				<#list f.editTag.paramList as tp>
			<#if tp.name == '+defaultLink' || tp.name == '_defaultText'>
			<#elseif tp.name?starts_with('%')>
				${s}@p.param name="${tp.name?substring(1)}"><@aurl au=tp.values/>${s}/@p.param>
			<#elseif tp.name?starts_with('+')>
				${s}@p.param name="${tp.name?substring(1)}">${tp.value}${s}/@p.param>
			
				
			${s}/@${f.editTag.name}>
			<#else>
			/>
			
	
	<#if f.after?has_content>
			${f.after}
	
	${s}/#if>





© 2015 - 2024 Weber Informatics LLC | Privacy Policy