All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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/>
<#t/>
<#if attributes.leftTitle??><#t/>
<#t/> <#global dynamic_attributes_ignore = "right-"/> <#include "/${attributes.templateDir}/simple/select.ftl" /> <#if attributes.allowUpDownOnLeft!true> value="${attributes.leftDownLabel}" /> value="${attributes.leftUpLabel}" />
<#if attributes.allowAddToLeft!true><#t/> <#assign addToLeftLabel = attributes.addToLeftLabel!"<-"/><#t/> <#if attributes.doubleHeaderKey??><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#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};" />

<#else><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#t/> value="${addToLeftLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '');<#if attributes.addToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToLeftOnclick};" />

<#t/> <#t/> <#if attributes.allowAddToRight!true><#t/> <#assign addToRightLabel=attributes.addToRightLabel!"->" /><#t/> <#if attributes.headerKey??><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#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};" />

<#else><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??> style="${attributes.buttonCssStyle}" <#t/> value="${addToRightLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '');<#if attributes.addToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToRightOnclick};" />

<#t/> <#t/> <#if attributes.allowAddAllToLeft!true><#t/> <#assign addAllToLeftLabel=attributes.addAllToLeftLabel!"<<--" /><#t/> <#if attributes.doubleHeaderKey??><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#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};" />

<#else><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#t/> value="${addAllToLeftLabel}" onclick="moveAllOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '');<#if attributes.addAllToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToLeftOnclick};" />

<#t/> <#t/> <#if attributes.allowAddAllToRight!true><#t/> <#assign addAllToRightLabel=attributes.addAllToRightLabel!"-->>" /><#t/> <#if attributes.headerKey??><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#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};" />

<#else><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#t/> value="${addAllToRightLabel}" onclick="moveAllOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '');<#if attributes.addAllToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToRightOnclick};" />

<#t/> <#t/> <#if attributes.allowSelectAll!true><#t/> <#assign selectAllLabel=attributes.selectAllLabel!"<*>" /><#t/> <#if attributes.headerKey?? && attributes.doubleHeaderKey??><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#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};" />

<#elseif attributes.headerKey??><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#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};" />

<#elseif attributes.doubleHeaderKey??><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#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};" />

<#else><#t/> <#t/> class="${attributes.buttonCssClass}" <#t/> <#if attributes.buttonCssStyle??><#t/> style="${attributes.buttonCssStyle}" <#t/> value="${selectAllLabel}" onclick="selectAllOptions(document.getElementById('${attributes.id}'));selectAllOptions(document.getElementById('${attributes.doubleId}'));<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick};" />

<#t/> <#t/>
<#if attributes.rightTitle??><#t/>
<#t/> <#if attributes.doubleMultiple!false> <#if attributes.doubleDisabled!false> disabled="disabled"<#rt/> /> <#if attributes.allowUpDownOnRight!true> value="${attributes.rightDownLabel}" /> value="${attributes.rightUpLabel}" />




© 2015 - 2024 Weber Informatics LLC | Privacy Policy