<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ taglib uri="/tags/fw" prefix="fw" %> 

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
<html-el:form action="/batchProcess" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
	            <td class="moduleBlueBox">&nbsp;</td>
                <td class="moduleHeadline" nowrap><bean-el:message key="label.batchProcessManagement.mainHeader"/></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td>
    	    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td class="moduleLabel" style="text-align: left; padding-left: 20"><bean-el:message key="message.batchProcessConfig.instructions"/></td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
              </tr>              
	            
			<tr><td class="value"><jsp:include page="batchProcessDetail.jsp" flush="true"/></td></tr>				

			<tr><td>&nbsp;</td></tr>				
				
			<tr>
				<td><table role="presentation"><tr>
				                         <c:set var="batchProcessemailDistributionListLabel"><bean-el:message key="label.batchProcess.emailDistributionList"/></c:set>
							<td class="moduleLabel">
								<fw:label property="invocationArgs" forId="txtEmailDistributionList">
									<bean-el:message key="label.batchProcess.emailDistributionList"/>:
								</fw:label>
							</td>
							<td>						
								<html-el:text title="${batchProcessemailDistributionListLabel}" property="emailDistributionList" styleClass="moduleEdit" styleId="txtEmailDistributionList" size="80" maxlength="500"/>
							</td>							
						</tr>
						<c:if test="${job.triggerStatus.status != null}">
							<tr>
							        <c:set var="batchProcesstriggerStatusLabel"><bean-el:message key="label.batchProcess.triggerStatus"/></c:set>
								<td class="moduleLabel">
									<fw:label property="triggerStatus" forId="triggerStatusId">
										<bean-el:message key="label.batchProcess.triggerStatus"/>:
									</fw:label>
								</td>
								<td>						
									<html-el:select title="${batchProcesstriggerStatusLabel}" name="batchProcessForm" property="triggerStatus" styleId="triggerStatusId">
										<html-el:options name="triggerStatuses"/>
									</html-el:select>
									<html-el:hidden name="batchProcessForm" property="previousTriggerStatus"/>						
								</td>							
							</tr>
						</c:if>					
						<tr>
							<td colspan="2">
								<img alt=""  src="../images/buttonEndLeft.gif"/><html-el:submit property="methodName" 
									style="width:90; vertical-align: top;" styleClass="buttonText">
				        		<bean-el:message key="button.batchProcessDetail.updateConfig"/>
								</html-el:submit><img alt=""  src="../images/buttonEndRight.gif"/>
							</td>
				</tr></table></td>
			</tr>
									
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</html-el:form>
</table>

