<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<h1><bean:message key="prompt.jobTriggerEditForm.title"/></h1>
<logic:messagesPresent>
	<ul>
	<bean:message key="errors.header"/>
	<html:messages id="error">
		<li><bean:write name="error"/></li>
	</html:messages>
	</ul>
	<hr>
</logic:messagesPresent>

<html:form action="/scheduler/jobTriggerEditAction" focus="triggerGroup">
<html:hidden name="jobTriggerForm" property="jobName"/>
<html:hidden name="jobTriggerForm" property="jobGroup"/>

<div id="EDITTAG" align="left">
    <table width="100%">
    	<tr>
			<td  width="25%" class="title"><bean:message key="prompt.jobTriggerEditForm.groupName"/></strong><img src="images/4_dot.gif"/></td>
			<td>
				<logic:empty name="jobTriggerForm" property="triggerName">
					<html:text styleClass="inputtext" name="jobTriggerForm" property="triggerGroup"  size="32" maxlength="32"/>
				</logic:empty>
				<logic:notEmpty name="jobTriggerForm" property="triggerName">
					<html:text styleClass="inputtext" name="jobTriggerForm" property="triggerGroup" readonly="true" size="32" maxlength="32"/>
				</logic:notEmpty>
				<bean:message key="prompt.jobTriggerEditForm.groupNameUniq"/>
			</td>
		</tr>
    	<tr>
			<td class="title"><bean:message key="prompt.jobTriggerEditForm.triggerName"/></strong><img src="images/4_dot.gif"/></td>
			<td>
				<logic:empty name="jobTriggerForm" property="triggerName">
					<html:text styleClass="inputtext" name="jobTriggerForm" property="triggerName"  size="32" maxlength="32"/>
				</logic:empty>
				<logic:notEmpty name="jobTriggerForm" property="triggerName">
					<html:text styleClass="inputtext" name="jobTriggerForm" property="triggerName" readonly="true" size="32" maxlength="32"/>
				</logic:notEmpty>
				<bean:message key="prompt.jobTriggerEditForm.groupNameUniq"/>
			</td>
		</tr>
		<tr>
			<td class="title"><bean:message key="prompt.jobTriggerEditForm.triggerDescription"/></strong><img src="images/4_dot.gif"/></td>
			<td>
				<html:textarea styleClass="inputtext" name="jobTriggerForm" property="description" rows="5" cols="60"/>
			</td>
		</tr>
		<tr>
			<td class="title"><bean:message key="prompt.jobTriggerEditForm.startTime"/></strong><img src="images/4_dot.gif"/></td>
			<td>
				<html:text styleClass="inputtext" name="jobTriggerForm" property="startTime"  size="32"/>
				<bean:message key="prompt.jobTriggerEditForm.timeFormat"/>
			</td>
		</tr>
		<tr>
			<td class="title"><bean:message key="prompt.jobTriggerEditForm.stopTime"/></strong><img src="images/4_dot.gif"/></td>
			<td>
				<html:text styleClass="inputtext" name="jobTriggerForm" property="stopTime"  size="32"/>
				<bean:message key="prompt.jobTriggerEditForm.timeFormat"/>
			</td>
		</tr>
		<tr>
			<td class="title"><bean:message key="prompt.jobTriggerEditForm.repeatCount"/></strong><img src="images/4_dot.gif"/></td>
			<td>
				<html:text styleClass="inputtext" name="jobTriggerForm" property="repeatCount"  size="32"/>
			</td>
		</tr>
		<tr>
			<td class="title"><bean:message key="prompt.jobTriggerEditForm.repeatInterval"/></strong><img src="images/4_dot.gif"/></td>
			<td>
				<html:text styleClass="inputtext" name="jobTriggerForm" property="repeatInterval"  size="32"/>
				<bean:message key="prompt.jobTriggerEditForm.intervalFormat"/>
			</td>
		</tr>
	</table>
</div>

<div id="COMMANDTAG">
    <table width="100%">
      <tr>
        <td height="50" width="5%">
			&nbsp;
        </td>
        <td align="center" width="20%">
　　      <html:submit styleClass="button" property="submit" onclick="bCancel=false;">&nbsp;&nbsp;&nbsp;&nbsp;<bean:message key="prompt.scheduler.ok"/>&nbsp;&nbsp;&nbsp;&nbsp;</html:submit>
        </td>
        <td align="center" width="20%">
　　      <html:cancel styleClass="button" onclick="bCancel=true;"><bean:message key="prompt.scheduler.cancel"/></html:cancel>
		</td>
        <td align="center" width="20%">
　　　    <html:reset styleClass="button">&nbsp;&nbsp;<bean:message key="prompt.scheduler.reset"/>&nbsp;&nbsp;</html:reset>
        </td>
        <td height="50">
			&nbsp;
        </td>
      </tr>
    </table>
</div>

</html:form>

