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

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell">
<html-el:form action="/servicePeriod" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
 <tr>
  <td>
   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable">
    <tr>
     <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead">
       <tr>
        <td class="moduleBlueBox">&nbsp;</td>
        <td width="890" class="moduleHeadline"><bean-el:message key="servicePeriod.title"/></td>
       </tr>
      </table>
     </td>
    </tr>
    <tr width="100%" >
     <td  width="100%">
	   <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
        <tr width="100%" >
         <td width="45%" class="moduleLabel"><bean-el:message key="label.primary"/>:</td>
		 <td title="<bean-el:message key="label.primary"/>" width="55%" class="moduleValue"><esrcore:displayValue name="servicePeriodForm" property="primaryElig"/></td>
        </tr>
        <tr>
            <td colspan="2">
              <%@ include file="/tiles/common/instructionalText.jsp" %>
            </td>
        </tr>
        <TR width="100%" >
		 <td width="45%" class="moduleLabel"><fw:label required="true" property="periodOfService" forId="idPeriodOfService"><bean-el:message key="label.periodOfService" />:</fw:label></td>
       	 <td width="55%" class="moduleValue">
       	 <c:set var="periodOfServiceText"><bean-el:message key="label.periodOfService"/></c:set>
	      <html-el:select title="${periodOfServiceText}" styleClass="moduleEdit" styleId="idPeriodOfService" name="servicePeriodForm" property="periodOfService" >
		   <html-el:option styleClass="moduleEdit" value=""><bean-el:message key="label.select" /></html-el:option>
		   <html-el:options styleClass="moduleEdit" collection="servicePeriodList" property="code" labelProperty="name" />
	      </html-el:select>
         </td>
        </tr>
       </TABLE>
	  <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
       <tr>
	    <td class="moduleValue" colspan="2" align="center">
	     <table border="0" align="center" cellspacing="0" cellpadding="0">
        <tr>
          <td width="45%"><img alt=""  src="../images/spacer.gif"/></td>
          <td><img alt=""  src="../images/buttonEndLeft.gif" /></td>
          <td><html-el:submit property="methodName" style="width:50; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.update"/></html-el:submit></td>
          <td><img alt=""  src="../images/buttonEndRight.gif"/></td>
          <td width="1%"><img alt=""  src="../images/spacer.gif"/></td>
          <td><img alt=""  src="../images/buttonEndLeft.gif"/></td>
          <td><html-el:submit property="methodName" style="width:50; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.cancel"/></html-el:submit></td>
          <td><img alt=""  src="../images/buttonEndRight.gif"/></td>
          <td width="45%"><img alt=""  src="../images/spacer.gif"/></td>
        </tr>
	     </table>
	    </td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
  </td>
 </tr>
</html-el:form>
</table>
