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

template.general.form.ftl Maven / Gradle / Ivy

There is a newer version: 3.4.3-jdk8
Show newest version

<#include "/${parameters.templateDir}/general/form-validate.ftl" />

<#if (parameters.validate?default(false) == false)><#rt/>
	<#if parameters.onsubmit?exists><#rt/>
		${tag.addParameter('onsubmit', "${parameters.onsubmit}; return true;") }
	<#else>
		${tag.addParameter('onsubmit', "return true;") }	
	


<#if parameters.namespace?exists && parameters.validate?exists>
 namespace="${parameters.namespace?html}"<#rt/>

<#if parameters.id?exists>
 id="${parameters.id?html}"<#rt/>

<#if parameters.name?exists>
 name="${parameters.name?html}"<#rt/>

<#if parameters.onsubmit?exists>
 onsubmit="${parameters.onsubmit?html}"<#rt/>

<#if parameters.action?exists>
 action="${parameters.action?html}"<#rt/>

<#if parameters.target?exists>
 target="${parameters.target?html}"<#rt/>

<#if parameters.method?exists>
 method="${parameters.method?html}"<#rt/>
<#else>
 method="POST"<#rt/>

<#if parameters.enctype?exists>
 enctype="${parameters.enctype?html}"<#rt/>

<#if parameters.cssClass?exists>
 class="${parameters.cssClass?html}"<#rt/>

<#if parameters.cssStyle?exists>
 style="${parameters.cssStyle?html}"<#rt/>

<#if parameters.title?exists>
 title="${parameters.title?html}"<#rt/>

<#if parameters.acceptcharset?exists>
 accept-charset="${parameters.acceptcharset?html}"<#rt/>

>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy