<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('审核产品信息')"/>
    <th:block th:include="include :: bootstrap-fileinput-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-commodityinfo-examine" th:object="${commodityInfo}">
        <input name="commodityId" th:field="*{commodityId}" type="hidden">


        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span>审核状态：</label>
            <div class="col-sm-8">
                <select name="examineStatus" class="form-control m-b"
                        th:with="type=${@dict.getType('t_comm_examine_status')}" required>
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{examineStatus}"></option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">审核描述：</label>
            <div class="col-sm-8">
                <input name="examineDesc" class="form-control" type="text" th:field="*{examineDesc}">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: bootstrap-fileinput-js"/>
<script type="text/javascript">
    var prefix = ctx + "bussiness/commodityinfo";
    $("#form-commodityinfo-examine").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            var formdata = new FormData(document.getElementById("form-commodityinfo-examine"));
            $.operate.saveImg(prefix + "/examine", formdata);
        }
    }
</script>
</body>
</html>