<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改企业微信发送消息历史记录')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-wxmessage-edit" th:object="${wxSendMessage}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">发送给的用户：</label>
                <div class="col-sm-8">
                    <textarea name="toUser" class="form-control">[[*{toUser}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否发送成功：</label>
                <div class="col-sm-8">
                    <input name="isSuccess" th:field="*{isSuccess}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">发送的文本：</label>
                <div class="col-sm-8">
                    <textarea name="sendText" class="form-control">[[*{sendText}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <input name="createTime" th:value="${#dates.format(wxSendMessage.createTime,'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">类型：</label>
                <div class="col-sm-8">
                    <input name="isSuccess" th:field="*{type}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "wxmessage/wxmessage";
        $('input').attr('disabled',true);
        $('textarea').attr('disabled',true);
        $("#form-wxmessage-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {

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