#set ($page_title = 'Add Task')
#set ($init_js = '')
	<div id="menu"> 
		<h2>Menu</h2>
		<ul>
#set ($action = $link.setRelative('/search'))
#prepareSearchTaskAction($action $taskQuery $taskPager)
	        <li><a href="$action"><img src="$link.setRelative('/resources/skin/default/image/icon/go_up.png')"/>タスク一覧に戻る</a></li>
		</ul>
	</div>
	<div id="main"> 
#errorMarkup()
	<form action="$link.setAction('/add')" method="post" enctype="multipart/form-data">
		<fieldset>
			<div>
			<label for="conents">タスク</label>
			<textarea id="contents" name="contents" class="text" rows="15">$addTaskForm.contents</textarea>
			</div>
			<div>
			<label for="tagList">タグ</label>
			<input id="tagList" name="tagList" type="text" class="text" value="$addTaskForm.tagList" />
			<ul class="tagList">
#foreach($tag in $tagList)
#set ($tagId = $tag.tagId)
				<li id="$tagId"><a href="javascript:updateTagList('tagList', '$tagId', '$tag.name', '$tag.tagTypeBean.styleClass')">$tag.name</a></li>
#end
			</ul>
			</div>
		</fieldset>
		<div class="action">
		<input name="" type="submit" class="submit" value="登録" />
		</div>
	</form>
	</div>
