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

template.simple.optiontransferselect.ftl Maven / Gradle / Ivy

There is a newer version: 6.6.0
Show 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 type="text/javascript" src="${base}${parameters.staticContentPath}/optiontransferselect.js" />
	<#assign temporaryVariable = stack.setValue("#optiontransferselect_js_included", "true") /><#t/>
<#t/>
<#if parameters.leftTitle??><#t/>
<#t/> <#global dynamic_attributes_ignore = "right-"/> <#include "/${parameters.templateDir}/simple/select.ftl" /> <#if parameters.allowUpDownOnLeft!true> value="${parameters.leftDownLabel}" /> value="${parameters.leftUpLabel}" />
<#if parameters.allowAddToLeft!true><#t/> <#assign addToLeftLabel = parameters.addToLeftLabel!"<-"/><#t/> <#if parameters.doubleHeaderKey??><#t/> <#t/> class="${parameters.buttonCssClass}" <#t/> <#if parameters.buttonCssStyle??><#t/> style="${parameters.buttonCssStyle}" <#t/> value="${addToLeftLabel}" onclick="moveSelectedOptions(document.getElementById('${parameters.doubleId}'), document.getElementById('${parameters.id}'), false, '${parameters.doubleHeaderKey}', '');<#if parameters.addToLeftOnclick?has_content><#outputformat 'JavaScript'>${parameters.addToLeftOnclick};" />

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

<#t/> <#t/> <#if parameters.allowAddToRight!true><#t/> <#assign addToRightLabel=parameters.addToRightLabel!"->" /><#t/> <#if parameters.headerKey??><#t/> <#t/> class="${parameters.buttonCssClass}" <#t/> <#if parameters.buttonCssStyle??><#t/> style="${parameters.buttonCssStyle}" <#t/> value="${addToRightLabel}" onclick="moveSelectedOptions(document.getElementById('${parameters.id}'), document.getElementById('${parameters.doubleId}'), false, '${parameters.headerKey}', '');<#if parameters.addToRightOnclick?has_content><#outputformat 'JavaScript'>${parameters.addToRightOnclick};" />

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

<#t/> <#t/> <#if parameters.allowAddAllToLeft!true><#t/> <#assign addAllToLeftLabel=parameters.addAllToLeftLabel!"<<--" /><#t/> <#if parameters.doubleHeaderKey??><#t/> <#t/> class="${parameters.buttonCssClass}" <#t/> <#if parameters.buttonCssStyle??><#t/> style="${parameters.buttonCssStyle}" <#t/> value="${addAllToLeftLabel}" onclick="moveAllOptions(document.getElementById('${parameters.doubleId}'), document.getElementById('${parameters.id}'), false, '${parameters.doubleHeaderKey}', '');<#if parameters.addAllToLeftOnclick?has_content><#outputformat 'JavaScript'>${parameters.addAllToLeftOnclick};" />

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

<#t/> <#t/> <#if parameters.allowAddAllToRight!true><#t/> <#assign addAllToRightLabel=parameters.addAllToRightLabel!"-->>" /><#t/> <#if parameters.headerKey??><#t/> <#t/> class="${parameters.buttonCssClass}" <#t/> <#if parameters.buttonCssStyle??><#t/> style="${parameters.buttonCssStyle}" <#t/> value="${addAllToRightLabel}" onclick="moveAllOptions(document.getElementById('${parameters.id}'), document.getElementById('${parameters.doubleId}'), false, '${parameters.headerKey}', '');<#if parameters.addAllToRightOnclick?has_content><#outputformat 'JavaScript'>${parameters.addAllToRightOnclick};" />

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

<#t/> <#t/> <#if parameters.allowSelectAll!true><#t/> <#assign selectAllLabel=parameters.selectAllLabel!"<*>" /><#t/> <#if parameters.headerKey?? && parameters.doubleHeaderKey??><#t/> <#t/> class="${parameters.buttonCssClass}" <#t/> <#if parameters.buttonCssStyle??><#t/> style="${parameters.buttonCssStyle}" <#t/> value="${selectAllLabel}" onclick="selectAllOptionsExceptSome(document.getElementById('${parameters.id}'), 'key', '${parameters.headerKey}');selectAllOptionsExceptSome(document.getElementById('${parameters.doubleId}'), 'key', '${parameters.doubleHeaderKey}');<#if parameters.selectAllOnclick?has_content><#outputformat 'JavaScript'>${parameters.selectAllOnclick};" />

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy