#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2011 Aimluck,Inc.
 * http://www.aipo.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *#

## ---------------------------------------------------------------------------
#set ($config = $portlet.PortletConfig)
#if($!data.Parameters.getString("mtype"))
    #set ($mtype = $!data.Parameters.getString("mtype"))
#else
    #set ($mtype = '')
#end
#set ($psmlEntry = $jetspeed.EntryFromRequest)
#set ($securitySource = $jetspeed.getSecuritySource($psmlEntry))
#set ($navilist = [["トップ", "$!jslink.Template.addQueryData($jslink.ActionKey, $action).addQueryData('js_peid', $data.getJs_peid()).addQueryData('eventSubmit_doCancel', '1')"], ["表示カスタマイズ", ""]])
#set ($tabs = [["表示カスタマイズ", "",""]])
## ---------------------------------------------------------------------------
#ALcontentheader($!{portlet.Title} $navilist)
#ALtabheader($tabs "")
#ALspacebothheader()
#if ($!mtype)
<form name="DefaultCustomizer" action="$jslink.Template.addQueryData('mtype', $mtype)" method="post" onsubmit="return(aimluck.io.disableForm(this, true));">
#else
<form name="DefaultCustomizer" action="$jslink.Template" method="post" onsubmit="return(aimluck.io.disableForm(this, true));">
#end
#if ($action)
<input name="$jslink.ActionKey" type="hidden" value="$action" />
#end
<input name="js_peid" type="hidden" value="$data.getJs_peid()" />
<input type="hidden" name="secid" value="$secid" />
#ALtableheaderWide()
#ALtdcaption("アプリ名")
#ALtditem("#ALtextfield('current_title' $!current_title '75%' 50 'active')")
#set ($counter=0)
#foreach ( $param in $parameters )
#if ($param.Type && $param.Type == "invisible")
<input type="hidden" name="$param.Name" value="$param.Value" />
#else
#ALtdcaption("#if ($param.Title) $param.Title #else $param.Name #end")
#ALtditemheader()
#if ($param.Type && $param.Type == "style")
$jetspeed.getPortletParameter($data, $portlet, $param.Name, $param.Value)
#elseif ($param.Type && $param.Type == "boolean")
<select name="$param.Name">
<option #if ($param.Type && $param.Value == "false") selected="selected" #end>${l10n.CUSTOMIZER_PORTLET_FALSE_VM}</option>
<option #if ($param.Type && $param.Value == "true") selected="selected" #end>${l10n.CUSTOMIZER_PORTLET_TRUE_VM}</option>
</select>
#elseif ($param.Type && $param.Type == "enum")
<select name="$param.Name">
#foreach ($item in $enums.get($counter))
<option value="$item.Key" #if ($param.Value == $item.Key) selected="selected" #end>$item.Value</option>
#end
</select>
#set ($counter=$counter+1)
#elseif ($param.Type && $param.Type == "list")
<input class="text" type="text" name="$param.Name" value="$param.Value" style="width:75%" />
#else
<input class="text" type="text" name="$param.Name" value="$param.Value" style="width:75%" />
#end
#ALtditemfooter()
#end
#end
#ALtablefooter()
#ALbuttonheader()
#ALsubmit('eventSubmit_doUpdate' '更新する')#ALsubmit('eventSubmit_doDefault' 'デフォルトにする')#ALsubmit('eventSubmit_doCancel' 'キャンセルする')
#ALbuttonfooter()
#ALformfooter()
#ALspacebothfooter()
#ALtabfooter()
#ALcontentfooter()
