]> source.dussan.org Git - archiva.git/commitdiff
added a checkboxlist.ftl
authorJesse McConnell <jmcconnell@apache.org>
Tue, 19 Sep 2006 10:03:18 +0000 (10:03 +0000)
committerJesse McConnell <jmcconnell@apache.org>
Tue, 19 Sep 2006 10:03:18 +0000 (10:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@447796 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/webapp/template/archiva/checkboxlist.ftl [new file with mode: 0644]

diff --git a/archiva-webapp/src/main/webapp/template/archiva/checkboxlist.ftl b/archiva-webapp/src/main/webapp/template/archiva/checkboxlist.ftl
new file mode 100644 (file)
index 0000000..75d8c6d
--- /dev/null
@@ -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>