<%@page pageEncoding="UTF-8"
%><tiles:insert template="/WEB-INF/view/common/layout.jsp" flush="true"
><tiles:put name="title"  value="ホーム"
/><tiles:put name="header" type="string">

</tiles:put
><tiles:put name="breadcrumb" type="string">

<div id="breadcrumb">
<div id="breadcrumb-inner">
	<s:link href="/">ホーム</s:link>
	&raquo;
	<s:link href="/${f:u(requestInfoDto.projectCode)}/">${f:h(requestInfoDto.projectName)}</s:link>
	&raquo;
	<s:link href="/${f:u(requestInfoDto.projectCode)}/ticket/">チケット</s:link>
	&raquo;
	<s:link href="/${f:u(requestInfoDto.projectCode)}/ticket/add">新規登録</s:link>
</div><!-- /breadcrumb-inner -->
</div><!-- /breadcrumb -->

</tiles:put
><tiles:put name="content" type="string">

<div id="main">
<div id="main-inner">

<html:errors />

<h2>チケット新規登録</h2>

<s:form action="register">
<html:hidden property="id" />
<html:hidden property="projectCode" />
<table>
	<tr>
		<th>タイトル</th>
		<td><html:text property="title" /></td>
	</tr>
	<tr>
		<th>パス</th>
		<td><html:text property="path" /></td>
	</tr>
	<tr>
		<th>内容</th>
		<td><html:textarea property="description" /></td>
	</tr>
	<tr>
		<th>開始日</th>
		<td><html:text property="fromDate" /></td>
	</tr>
	<tr>
		<th>終了日</th>
		<td><html:text property="toDate" /></td>
	</tr>
	<tr>
		<th>ステータス</th>
		<td>
			<html:select property="status">
				<c:forEach var="e" items="${ticketStatuses}">
					<html:option value="${f:h(e.value)}">${f:h(e.label)}</html:option>
				</c:forEach>
			</html:select>
		</td>
	</tr>
	<tr>
		<th>担当者</th>
		<td>
			<html:select property="assignedId">
				<c:forEach var="e" items="${accounts}">
					<html:option value="${f:h(e.id)}">${f:h(e.name)}</html:option>
				</c:forEach>
			</html:select>
		</td>
	</tr>
</table>
<html:submit property="submit" value="登録" />
</s:form>

</div><!-- /main-inner -->
</div><!-- /main -->

</tiles:put
></tiles:insert>
