<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改日志管理')" />
    <th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-daily-edit" th:object="${crmDaily}">
            <input name="dailyId" th:field="*{dailyId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">类别：</label>
                <div class="col-sm-8">
                    
                    <div class="form-control-static"
												th:text="${@dict.getLabel('daily_type', crmDaily.dailyType)}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">内容：</label>
                <div class="col-sm-8">
                    <input id="dailyContent" name="dailyContent" th:field="*{dailyContent}" type="hidden">
				     <div class="click2edit"></div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: summernote-js" />
    <script type="text/javascript">
        var prefix = ctx + "crm/daily";
     
        $(function() {
			var content = $("#dailyContent").val();
            var aHTML = $('.click2edit').summernote('code',content);
            $('.click2edit').summernote('destroy');
	    });
    </script>
</body>
</html>