<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ page import="org.springframework.security.core.AuthenticationException" %>
<form id="update_specProperty_form">
<input type="hidden" name="productOid" value="${specProperty.insuranceProduct.oid }" />
<input type="hidden" name="modularityOid" value="${specProperty.modularity.oid }" />
<input type="hidden" name="oid" value="${specProperty.oid }" />

  <div class="modal-body">
  	<div class="row">
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>编码</label>
		  		<input type="text" name="external" value="${specProperty.external }" class="form-control" placeholder="" />
		  	</p>
  		</div>
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>名称</label>
		  		<input type="text" name="name" value="${specProperty.name }" class="form-control" placeholder="" />
		  	</p>
  		</div> 
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>特殊包含字段</label>
		  		<input type="text" name="inducles" value="${specProperty.inducles }" class="form-control" placeholder="" />
		  	</p>
  		</div>
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>输入格式提示</label>
		  		<input type="text" name="placeholderValue" value="${specProperty.placeholderValue }" class="form-control" placeholder="" />
		  	</p>
  		</div>
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>录入的有效值</label>
		  		<input type="text" name="allowedValues" value="${specProperty.allowedValues }" class="form-control" placeholder="" />
		  	</p>
  		</div>
  		<div class="col-sm-6 col-xs-6">
  		<p>
	  		<label>js方法</label>
	  		<input type="text" name="jsMethod" value="${specProperty.jsMethod }" class="form-control" placeholder="" />
	  	</p>
  	</div>
  	<div class="col-sm-6 col-xs-6">
  		<p>
	  		<label>提示信息</label>
	  		<input type="text" name="hintMsg" value="${specProperty.hintMsg }" class="form-control" placeholder="" />
	  	</p> 
  	</div>
  	<div class="col-sm-6 col-xs-6">
  		<p class="clearfix">
	  		<label>数据类型</label>
	  		<select class="form-control" name="dataType" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
				<c:forEach items="${dataTypeList }" var="list">
				<option value="${list }"<c:if test="${specProperty.dataType eq list }"> selected="selected"</c:if>>${list.name }</option>
                </c:forEach>
			</select>
	  	</p>
  	</div>
  	<div class="col-sm-6 col-xs-6">
  		<p class="clearfix">
	  		<label>控件类型</label>
	  		<select class="form-control" name="fieldType" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
				<c:forEach items="${fieldTypeList }" var="list">
				<option value="${list }"<c:if test="${specProperty.fieldType eq list }"> selected="selected"</c:if>>${list.name }</option>
                </c:forEach>
			</select>
	  	</p>
  	</div>
  	<div class="col-sm-6 col-xs-6">
  		<p class="clearfix">
	  		<label>控件规则</label>
	  		<select class="form-control" name="controlRule" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
				<c:forEach items="${controlRuleList }" var="list">
				<option value="${list }"<c:if test="${specProperty.controlRule eq list }"> selected="selected"</c:if>>${list.name }</option>
                </c:forEach>
			</select>
	  	</p>
  	</div>
  	<div class="col-sm-6 col-xs-6">
  		<p class="clearfix">
	  		<label>页面展示模块</label>
	  		<select class="form-control" name="showSpecModule" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
				<c:forEach items="${specModuleList }" var="list">
				<option value="${list }"<c:if test="${specProperty.showSpecModule eq list }"> selected="selected"</c:if>>${list.name }</option>
                </c:forEach>
			</select>
	  	</p>
  	</div>
  	<div class="col-sm-6 col-xs-6">
  		<p class="clearfix">
	  		<label>后台匹配模块</label>
	  		<select class="form-control" name="logicSpecModule" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
				<c:forEach items="${specModuleList }" var="list">
				<option value="${list }"<c:if test="${specProperty.logicSpecModule eq list }"> selected="selected"</c:if>>${list.name }</option>
                </c:forEach>
			</select>
	  	</p>
  	</div> 
  	<div class="col-sm-6 col-xs-6">
  		<p>
	  		<label>排序</label>
	  		<input type="text" name="seq" value="${specProperty.seq }" class="form-control" placeholder="" />
	  	</p>
  	</div> 
  	<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>是否存在字段</label> 
		  		<div class="rad-io pull-left">
		  			<input type="radio" name="beanProperty" value="0" id="upbeanProperty_1"<c:if test="${specProperty.beanProperty eq '0' || empty specProperty.beanProperty }"> checked="checked"</c:if>/>
		  			<label for="upbeanProperty_1"></label>
		  			<span>是</span>
		  		</div>
		  		<div class="rad-io pull-left ml-14">
		  			<input type="radio" name="beanProperty" value="1" id="upbeanProperty_2"<c:if test="${specProperty.beanProperty eq '1'}"> checked="checked"</c:if>/>
		  			<label for="upbeanProperty_2"></label>
		  			<span>否</span>
		  		</div>
		  	</p>
  		</div>
  		<div class="clear"></div>
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>是否必录</label> 
		  		<div class="rad-io pull-left">
		  			<input type="radio" name="isRequired" value="1" id="upisRequired_1"<c:if test="${specProperty.isRequired eq '1' || empty specProperty.isRequired }"> checked="checked"</c:if>/>
		  			<label for="upisRequired_1"></label>
		  			<span>是</span>
		  		</div>
		  		<div class="rad-io pull-left ml-14">
		  			<input type="radio" name="isRequired" value="0" id="upisRequired_2"<c:if test="${specProperty.isRequired eq '0'}"> checked="checked"</c:if>/>
		  			<label for="upisRequired_2"></label>
		  			<span>否</span>
		  		</div>
		  	</p>
  		</div>
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>是否隐藏</label> 
		  		<div class="rad-io pull-left">
		  			<input type="radio" name="isHidden" value="1" id="upisHidden_1"<c:if test="${specProperty.isHidden eq '1' || empty specProperty.isHidden }"> checked="checked"</c:if>/>
		  			<label for="upisHidden_1"></label>
		  			<span>是</span>
		  		</div>
		  		<div class="rad-io pull-left ml-14">
		  			<input type="radio" name="isHidden" value="0" id="upisHidden_2"<c:if test="${specProperty.isHidden eq '0' }"> checked="checked"</c:if>/>
		  			<label for="upisHidden_2"></label>
		  			<span>否</span>
		  		</div>
		  	</p>
  		</div>
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>是否提示</label> 
		  		<div class="rad-io pull-left">
		  			<input type="radio" name="isHint" value="1" id="upisHint_1"<c:if test="${specProperty.isHint eq '1' || empty specProperty.isHint }"> checked="checked"</c:if>/>
		  			<label for="upisHint_1"></label>
		  			<span>是</span>
		  		</div>
		  		<div class="rad-io pull-left ml-14">
		  			<input type="radio" name="isHint" value="0" id="upisHint_2"<c:if test="${specProperty.isHint eq '0' }"> checked="checked"</c:if>/>
		  			<label for="upisHint_2"></label>
		  			<span>否</span>
		  		</div>
		  	</p>
  		</div> 
  		<div class="col-sm-6 col-xs-6">
  			<p>
		  		<label>是否特殊行</label> 
		  		<div class="rad-io pull-left">
		  			<input type="radio" name="isSpecial" value="1" id="upisSpecial_1"<c:if test="${specProperty.isSpecial eq '1' || empty specProperty.isSpecial }"> checked="checked"</c:if>/>
		  			<label for="upisSpecial_1"></label>
		  			<span>是</span>
		  		</div>
		  		<div class="rad-io pull-left ml-14">
		  			<input type="radio" name="isSpecial" value="0" id="upisSpecial_2"<c:if test="${specProperty.isSpecial eq '0' }"> checked="checked"</c:if>/>
		  			<label for="upisSpecial_2"></label>
		  			<span>否</span>
		  		</div>
		  	</p>
  		</div>
  	</div> 
  </div>
  <div class="modal-footer">
	<div class="mofo-sub">
		<button type="button" class="btn pull-left cancel-btn" data-dismiss="modal">取消</button>
		<button type="button" class="btn notarize-btn pull-right" onclick="update_specProperty_form()" data-dismiss="modal">确认</button>
	</div>
  </div> 
 </form> 
