<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改开通申请')"/>
    <th:block th:include="include :: datetimepicker-css"/>
    <style>
        table th{
            text-align: center;
        }
    </style>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-apply-edit" th:object="${apply}">
        <input name="applyId" th:field="*{applyId}" type="hidden">
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">申请人：</label>
                    <div class="col-sm-8">
                        <input name="userName" th:field="*{userName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">所属机构：</label>
                    <div class="col-sm-8">
                        <input name="deptName" th:field="*{deptName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">本系统登录名：</label>
                    <div class="col-sm-8">
                        <input name="loginName" th:field="*{loginName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">申请时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="applyTime" th:value="${#dates.format(apply.applyTime, 'yyyy-MM-dd HH:mm:ss')}"
                                   class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">申请类型：</label>
                    <div class="col-sm-8">
                        <div class="form-control" th:text="${@dict.getLabel('sys_apply_type', apply.applyType)}"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">处理状态：</label>
                    <div class="col-sm-8">
                        <div class="form-control" th:text="${@dict.getLabel('sys_apply_deal_status', apply.dealStatus)}"></div>
                    </div>
                </div>
            </div>
        </div>
        <h4 class="form-header h4">子系统信息</h4>
        <div class="form-group" style="margin-left: 30px;margin-right: 30px;">
            <table class="table table-bordered table-striped" style="text-align: center;">
                <thead>
                <tr>
                    <th>
                        子系统名称
                    </th>
                    <th>
                        子系统登录名
                    </th>
                </tr>
                </thead>
                <tbody id="tbody1">
                <tr th:each="child,stat : ${childList}">
                    <td th:text="${child.danganName}"></td>
                    <td th:text="${child.loginName}"></td>
                </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "system/apply";
    $("#form-apply-edit").validate({
        focusCleanup: true
    });

</script>
</body>
</html>