From c8f3d6ba77064311bf62b71e906c312e81af5b64 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Tue, 19 Sep 2006 10:03:18 +0000 Subject: [PATCH] added a checkboxlist.ftl git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@447796 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/template/archiva/checkboxlist.ftl | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 archiva-webapp/src/main/webapp/template/archiva/checkboxlist.ftl 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 index 000000000..75d8c6d82 --- /dev/null +++ b/archiva-webapp/src/main/webapp/template/archiva/checkboxlist.ftl @@ -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 parameters.listValue?exists> + <#assign itemValue = stack.findString(parameters.listValue)/> + <#else> + <#assign itemValue = stack.findString('top')/> + + +<#if tag.contains(parameters.nameValue, itemKey)> + checked="checked"<#rt/> + +<#if itemKey?exists> + value="${itemKey?html}"<#rt/> + +<#if parameters.disabled?default(false)> + disabled="disabled"<#rt/> + +<#if parameters.tabindex?exists> + tabindex="${parameters.tabindex?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/> + +<#include "/${parameters.templateDir}/simple/scripting-events.ftl" /> +/><#rt/> +
+ -- 2.39.5