#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2010 Aimluck,Inc.
 * http://aipostyle.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 ($tabs = [["ポートレット追加", "",""]])
## ---------------------------------------------------------------------------
#ALtabheader($tabs "")
#ALspacebothheader()
<form name="add_portlet" action="${jslink.Template}/${jslink.ActionKey}/${action}" method="post" onsubmit="return(aimluck.io.disableForm(this, true));">
<input type="hidden" name="secid" value="$secid" />
<div class="message">追加するポートレットを選択してください。</div>
#ALtableheaderWide()
<tr>
#ALtdheadThin("追加")
#ALtdheadThin("選択数")
#ALtdheadW25("タイトル")
#ALtdheadW50("説明")
</tr>
#foreach ($portlet in $browser)
#set ($portletCount=0)
#foreach ($entry in $runs)
#if ($entry.parent == $portlet.Name)
#set ($portletCount=$portletCount+1)
#end
#end
<tr>
#ALtdcellheaderAtt('align="center"')
#if($portletsSelected.containsKey($portlet.Name))
<input type="checkbox" name="pname" value="$portlet.Name" checked="checked"/>
#else
<input type="checkbox" name="pname" value="$portlet.Name"/>
#end
#ALtdcellfooter()
#ALtdcellAtt("$portletCount" 'align="center"')
#ALtdcellheader()
#if ($portlet.Title) $portlet.Title #else $portlet.Name #end
#ALtdcellfooter()
#ALtdcellheader()
#if ($portlet.Description) $portlet.Description #else $l10n.CUSTOMIZER_NODESCRIPTION #end
#ALtdcellfooter()
</tr>
#end
#ALtablefooter()
<input type="hidden" name="size" value="30"/>
#ALbuttonheader()
#ALbutton('eventSubmit_doAdd' '追加する' 'aimluck.io.checkboxActionSubmit(this)')#ALsubmit('eventSubmit_doCancel' 'キャンセルする')
#ALbuttonfooter()
#ALformfooter()
#ALspacebothfooter()
#ALtabfooter()

<script language="JavaScript" type="text/javascript">
//<![CDATA[
    aipo.portletset.menuSelected = 1;
//]]>
</script>
