<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('工具库')"/>
</head>
<body class="white-bg">
<div class="form-horizontal m wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-fun2Details-edit"
          th:object="${dataInfo}">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">入场人姓名：</label>
            <div class="col-sm-8">
                <input name="enterName" th:field="*{enterName}" class="form-control" type="text" ly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">入场人电话：</label>
            <div class="col-sm-8">
                <input name="enterMobile" th:field="*{enterMobile}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">入场人证件号：</label>
            <div class="col-sm-8">
                <input name="enterIdCode" th:field="*{enterIdCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">入场人证件类型：</label>
            <div class="col-sm-8">
<!--                <input name="enterType" th:value="${@dict.getLabel('zhengzai_certificate_type',dataInfo.enterType)}"-->
<!--                       class="form-control" type="text" required>-->
                <select name="enterType" th:with="type=${@dict.getType('zhengzai_certificate_type')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:selected="${dict.dictValue} == ${dataInfo.enterType}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">入场人票单id：</label>
            <div class="col-sm-8">
                <input name="orderTicketEntitiesId" th:field="*{orderTicketEntitiesId}" class="form-control" type="text"
                       required readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">订单id：</label>
            <div class="col-sm-8">
                <input name="orderId" th:field="*{orderId}" class="form-control" type="text"
                       required readonly>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    $("#form-fun2Details-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save([[${url_change}]], $('#form-fun2Details-edit').serialize());
        }
    }
</script>
</body>
</html>
