linzhijie
2021-03-11 c33914ba0a98c823c4b4d7da21cdd476906c9924
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!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-testMember-sendEmail">
        <input type="hidden" id="memberIds" name="memberIds" th:value="${memberIds}">
        <input type="hidden" id="type" name="type" th:value="${type}">
        <div class="form-group">
            <label class="col-sm-2 control-label">[[#{jsp.exam.test_package.017}]]:</label>
            <div class="col-sm-9">
                <input class="form-control" type="text" id="fromAddressee" name="fromAddressee" th:value="Test">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">[[#{jsp.exam.test_package.018}]]:</label>
            <div class="col-sm-9">
                <input class="form-control" type="text" id="title" th:value="${testName}" name="title">
            </div>
        </div>
 
        <div class="form-group">
            <label class="col-sm-2 control-label">[[#{jsp.exam.test_package.019}]]:</label>
<!--            <div class="col-sm-9">-->
<!--                <input class="form-control" type="hidden" id="content" name="content">-->
<!--                <div class="summernote" id="summernote"></div>-->
<!--            </div>-->
            <div class="col-sm-9">
                <textarea type="text" name="content" id="content" rows="2" cols="20" class="form-control" th:text="${template}"
                          onchange="updateSum();"
                          style="height:120px;"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">[[#{jsp.exam.test_package.020}]]:</label>
            <div class="col-sm-9">
                <select class="form-control" name="platform" id="platform" th:with="type=${@dict.getType('email_system')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>
        <div>
            <span>Tpis:[[#{jsp.exam.test_package.021}]]</span>
            <span style="color: red">{url}</span>
            <span>keyword。</span>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<th:block th:include="include :: summernote-js"/>
<script th:inline="javascript">
    var template = [[${template}]];
    var prefix = ctx + "exam/testMember";
    $(function () {
        $('.summernote').summernote({
            height: 192,
            lang: 'zh-CN',
            followingToolbar: false
        });
        $('.summernote').summernote('code', template);
    });
 
    function submitHandler() {
        if ($.validate.form()) {
            // var sHTML = $('.summernote').summernote('code');
            // $("#content").val(sHTML);
            $.operate.save(prefix + "/addSendTask", $('#form-testMember-sendEmail').serialize());
        }
    }
</script>
</body>
</html>