mirror of https://github.com/apache/archiva.git
added a checkboxlist.ftl
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@447796 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
83330beec2
commit
c8f3d6ba77
|
@ -0,0 +1,39 @@
|
|||
<@ww.iterator value="parameters.list">
|
||||
<#if parameters.listKey?exists>
|
||||
<#assign itemKey = stack.findValue(parameters.listKey)/>
|
||||
<#else>
|
||||
<#assign itemKey = stack.findValue('top')/>
|
||||
</#if>
|
||||
<#if parameters.listValue?exists>
|
||||
<#assign itemValue = stack.findString(parameters.listValue)/>
|
||||
<#else>
|
||||
<#assign itemValue = stack.findString('top')/>
|
||||
</#if>
|
||||
<input type="checkbox" name="${parameters.name?html}" id="${parameters.id?html}${itemKey?html}"<#rt/>
|
||||
<#if tag.contains(parameters.nameValue, itemKey)>
|
||||
checked="checked"<#rt/>
|
||||
</#if>
|
||||
<#if itemKey?exists>
|
||||
value="${itemKey?html}"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.disabled?default(false)>
|
||||
disabled="disabled"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.tabindex?exists>
|
||||
tabindex="${parameters.tabindex?html}"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.cssClass?exists>
|
||||
class="${parameters.cssClass?html}"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.cssStyle?exists>
|
||||
style="${parameters.cssStyle?html}"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.title?exists>
|
||||
title="${parameters.title?html}"<#rt/>
|
||||
</#if>
|
||||
<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
|
||||
/><#rt/>
|
||||
<label for="${parameters.id?html}${itemKey?html}"><#rt/>
|
||||
${itemValue}<#t/>
|
||||
</label><br/>
|
||||
</@ww.iterator>
|
Loading…
Reference in New Issue