diff options
author | Jesse McConnell <jmcconnell@apache.org> | 2006-09-19 10:03:18 +0000 |
---|---|---|
committer | Jesse McConnell <jmcconnell@apache.org> | 2006-09-19 10:03:18 +0000 |
commit | c8f3d6ba77064311bf62b71e906c312e81af5b64 (patch) | |
tree | a455d4de03a091207efa71b5803f7e9fc5047129 /archiva-webapp | |
parent | 83330beec2e1a183d81ffc4391c22f60c39676e4 (diff) | |
download | archiva-c8f3d6ba77064311bf62b71e906c312e81af5b64.tar.gz archiva-c8f3d6ba77064311bf62b71e906c312e81af5b64.zip |
added a checkboxlist.ftl
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@447796 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-webapp')
-rw-r--r-- | archiva-webapp/src/main/webapp/template/archiva/checkboxlist.ftl | 39 |
1 files changed, 39 insertions, 0 deletions
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> + <#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> |