#*
 * 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 ($indicator_id = "indicator-dlg-")
## ---------------------------------------------------------------------------
#ALdialogheader("ToDo詳細")
#ALajaxIndicator("$indicator_id" "$!portlet.ID" "")
<div id="messageDiv"></div>
#ALajaxdetailformheader("ToDo")
#ALtableheaderWide()
#ALtdcaption('カテゴリ')
#ALtditemheader()
#if ($!result.Detail.CategoryId.toString() != "1")
<a href="javascript:void(0);" onclick="aipo.common.showDialog('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","ToDoCategoryDetailScreen").addQueryData("entityid",$!result.Detail.CategoryId))');">$!result.Detail.CategoryName</a>
#else
$!result.Detail.CategoryName
#end
#ALtditemfooter()
#ALtdcaption('ToDo詳細')
#ALtditemheader()
$!result.Detail.TodoName
#if(! ${result.Detail.Public})
<img src="images/todo/todo_secret.gif" border="0" width="16" height="16" align="absmiddle" alt="非公開" title="非公開"/>
#end
#ALtditemfooter()
#ALtdcaption('開始日')
#ALtditem($!result.Detail.StartDate)
#ALtdcaption('締め切り日')
#ALtditem($!result.Detail.EndDate)
#ALtdcaption('進捗')
#ALtditem($!result.Detail.StateString)
#ALtdcaption('優先度')
#ALtditem($!result.Detail.PriorityString)
#ALtdcaption('登録日')
#ALtditem($!result.Detail.CreateDate)
#ALtdcaption('更新日')
#ALtditem($!result.Detail.UpdateDate)
#ALtdcaption('メモ')
#ALtditem($!result.Detail.Note)
#ALtdcaption('公開区分')
#ALtditemheader()
#if($!result.Detail.Public)
公開
#else
非公開
#end
#ALtditemfooter()
#ALtdcaption('スケジュールへの表示')
#ALtditemheader()
#if($!result.Detail.addonScheduleFlg())
表示
#else
非表示
#end
#ALtditemfooter()
#ALtablefooter()
#ALbuttonheader()
#ALajaxbuttonEditCallback("$!jslink.getPortletById($!portlet.ID).addQueryData('template','ToDoFormScreen').addQueryData('entityid',$entityid)" "$!portlet.ID" "aipo.todo.onLoadTodoDialog")#ALajaxbuttonDelete("$!jslink.getPortletById($!portlet.ID).addQueryData('template','ToDoFormJSONScreen').addQueryData('entityid',$entityid).addQueryData('mode', 'delete')" "$indicator_id" "$!portlet.ID" "aipo.todo.onReceiveMessage")#ALajaxbuttonClose()
#ALbuttonfooter()
#ALformfooter()
#ALdialogfooter()
