template.simple.optiontransferselect.ftl Maven / Gradle / Ivy
The newest version!
<#--
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
-->
<#if !stack.findValue("#optiontransferselect_js_included")??><#t/>
<@s.script src="${base}${attributes.staticContentPath}/optiontransferselect.js" />
<#assign temporaryVariable = stack.setValue("#optiontransferselect_js_included", "true") /><#t/>
#if><#t/>
<#if attributes.leftTitle??><#t/>
#if><#t/>
<#global dynamic_attributes_ignore = "right-"/>
<#include "/${attributes.templateDir}/simple/select.ftl" />
<#if attributes.allowUpDownOnLeft!true>
value="${attributes.leftDownLabel}"
#if>
/>
value="${attributes.leftUpLabel}"
#if>
/>
#if>
<#if attributes.allowAddToLeft!true><#t/>
<#assign addToLeftLabel = attributes.addToLeftLabel!"<-"/><#t/>
<#if attributes.doubleHeaderKey??><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${addToLeftLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '${attributes.doubleHeaderKey}', '');<#if attributes.addToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToLeftOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${addToLeftLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '');<#if attributes.addToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToLeftOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
<#if attributes.allowAddToRight!true><#t/>
<#assign addToRightLabel=attributes.addToRightLabel!"->" /><#t/>
<#if attributes.headerKey??><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${addToRightLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '${attributes.headerKey}', '');<#if attributes.addToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToRightOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${addToRightLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '');<#if attributes.addToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToRightOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
<#if attributes.allowAddAllToLeft!true><#t/>
<#assign addAllToLeftLabel=attributes.addAllToLeftLabel!"<<--" /><#t/>
<#if attributes.doubleHeaderKey??><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${addAllToLeftLabel}" onclick="moveAllOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '${attributes.doubleHeaderKey}', '');<#if attributes.addAllToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToLeftOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${addAllToLeftLabel}" onclick="moveAllOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '');<#if attributes.addAllToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToLeftOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
<#if attributes.allowAddAllToRight!true><#t/>
<#assign addAllToRightLabel=attributes.addAllToRightLabel!"-->>" /><#t/>
<#if attributes.headerKey??><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${addAllToRightLabel}" onclick="moveAllOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '${attributes.headerKey}', '');<#if attributes.addAllToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToRightOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${addAllToRightLabel}" onclick="moveAllOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '');<#if attributes.addAllToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToRightOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
<#if attributes.allowSelectAll!true><#t/>
<#assign selectAllLabel=attributes.selectAllLabel!"<*>" /><#t/>
<#if attributes.headerKey?? && attributes.doubleHeaderKey??><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${selectAllLabel}" onclick="selectAllOptionsExceptSome(document.getElementById('${attributes.id}'), 'key', '${attributes.headerKey}');selectAllOptionsExceptSome(document.getElementById('${attributes.doubleId}'), 'key', '${attributes.doubleHeaderKey}');<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick}#outputformat>;#if>" />
<#elseif attributes.headerKey??><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${selectAllLabel}" onclick="selectAllOptionsExceptSome(document.getElementById('${attributes.id}'), 'key', '${attributes.headerKey}');selectAllOptions(document.getElementById('${attributes.doubleId}'));<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick}#outputformat>;#if>" />
<#elseif attributes.doubleHeaderKey??><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${selectAllLabel}" onclick="selectAllOptions(document.getElementById('${attributes.id}'));selectAllOptionsExceptSome(document.getElementById('${attributes.doubleId}'), 'key', '${attributes.doubleHeaderKey}');<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
class="${attributes.buttonCssClass}"
#if><#t/>
<#if attributes.buttonCssStyle??><#t/>
style="${attributes.buttonCssStyle}"
#if><#t/>
value="${selectAllLabel}" onclick="selectAllOptions(document.getElementById('${attributes.id}'));selectAllOptions(document.getElementById('${attributes.doubleId}'));<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
<#if attributes.rightTitle??><#t/>
#if><#t/>
<#if attributes.doubleMultiple!false>
<#if attributes.doubleDisabled!false>
disabled="disabled"<#rt/>
#if>
/>
#if>
<#if attributes.allowUpDownOnRight!true>
value="${attributes.rightDownLabel}"
#if>
/>
value="${attributes.rightUpLabel}"
#if>
/>
#if>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy