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

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

<#list ui.displayFieldList as f><#if !f.actionField>
	<#assign p = {}/>
	<#list entity.primaryKeyList as mp>
		<#if mp.name == f.name>
			<#assign p = mp/>
			<#break/>
		
	
	${s}#if a.displayField("${f.name}")>
	<#if p?has_content>
		<#if f.before?has_content>
			${f.before}
		
		<#if f.editTag?? && (f.editTag.name?ends_with(".hidden") || f.editTag.name?ends_with(".viewfield"))>
			${s}@p.textfield
				name="<#if f.actionField>a.${f.name}"
				value="%{<#if f.actionField>a<#else>r.${f.name}}"
				required="true"
				label="#('${ui.name}-${f.name}')"
				tooltip="#('${ui.name}-${f.name}-tip')"
			<#if f.editTag.hasParamStartsWith("_")>
			<#list f.editTag.paramList as tp>
				<#if tp.name?starts_with('_')>
				${tp.name?substring(1)}="${tp.value}"
				
			
			
			/>
		<#elseif f.editTag??>
			${s}@${f.editTag.name}
			<#if f.editTag.cssClass??>
				cssClass="${f.editTag.cssClass}"
			
				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}"
			
				label="#('${ui.name}-${f.name}')"
<#if !(f.editTag.name?ends_with(".viewfield"))>
				tooltip="#('${ui.name}-${f.name}-tip')"

			/>
		
		<#if f.after?has_content>
			${f.after}
		
	
	${s}/#if>





© 2015 - 2024 Weber Informatics LLC | Privacy Policy