OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-03-14 12e19e0b8bc5e728169dad54c132e7ccd41973a4
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<div class="formModal">
    <div class="modal-header faded smaller">
        <div class="modal-title">
            <strong translate="issue.CommonSendIssueMail">일반 메일 발송</strong>
        </div>
        <button aria-label="Close" class="close" type="button" ng-click="fn.cancel()">
            <span aria-hidden="true"> &times;</span>
        </button>
    </div>
 
    <div class="modal-body">
        <form role="form" name="issueSendForm">
            <button type="button" class="btn btn-secondary mr-3 float-right mb-1" ng-click="fn.addInput()">
                <span translate="common.add">추가</span>
            </button>
            <div class="form-group">
                <label class="issue-label mt-2"><span translate="common.toPerson">받는 사람</span>&nbsp;<code class="highlighter-rouge">*</code></label>
                <div class="input-group" ng-repeat="i in vm.form.inputs">
                    <input type="text"
                           name="email"
                           class="form-control mt-1"
                           kr-input
                           ng-model="vm.form.emails[$index]"
                           ng-pattern="/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/"
                           required
                           autocomplete="off">
                    <span class="select3-selection__email__remove" ng-click="fn.removeInput($index)">×</span>
                </div>
                <small translate="common.emailExplain">받는 사람의 이메일 형식을 입력하셔야 합니다.</small>
                <div ng-if="issueSendForm.email.$error.pattern" class="help-block form-text text-danger"
                     translate="common.invalidEmailFormat">이메일 형식이 맞지 않습니다.
                </div>
            </div>
 
 
            <label class="issue-label"><span translate="common.title">제목</span></label>
            <input id="title"
                   type="text"
                   name="title"
                   class="form-control mt-1"
                   kr-input
                   ng-model="vm.form.title"
                   autocomplete="off">
 
            <div class="form-group mb10 mt-10">
                <label class="issue-label"><span translate="common.content">내용</span></label>
                <summernote
                        class="summernote mt-1"
                        lang="ko-KR"
                        summer-note-auto-focus
                        ng-model="vm.form.description"
                        data-editor="vm.summerNote.editor"
                        data-editable="vm.summerNote.editable"
                        on-image-upload="fn.imageUpload(files)"
                        target=".note-editable"></summernote>
            </div>
            <small class="mt-1" translate="common.sendToPerson">다른 사용자에게 메일을 보냅니다.</small>
 
            <div class="form-group mgb5 mt-10">
                <label class="issue-label"><span translate="common.attachFiles">파일 첨부</span></label>
                <div class="filebox input-group">
                    <input class="upload-name form-control"
                           placeholder="{{'users.pleaseSelectFile' | translate}}"
                           tabindex="-1"
                           disabled="disabled">
                    <label for="uploadFileField"><span
                            translate="common.selectFile">파일선택</span></label>
                    <input id="uploadFileField"
                           tabindex="-1"
                           type="file"
                           class="form-control"
                           multiple
                           ng-file-select="fn.onFileSelect($files)">
                </div>
 
                <div class="select2-selection__choicediv">
                    <div class="select2-selection__choice2" ng-repeat="file in vm.form.files">
                        <div class="select2-selection__choice2__remove" ng-click="fn.removeUploadFile($index)">
                            ×
                        </div>
                        <div class="ssg-items ssg-items-blocks">
                            <div class="ssg-item">
                                <div class="item-icon">
                                    <!--    문서  -->
                                    <i class="os-icon os-icon-file-text" ng-if="file.fileType == 'DOC'"></i>
                                    <!--    미디어  -->
                                    <i class="os-icon os-icon-film" ng-if="file.fileType == 'MEDIA'"></i>
                                    <!--    이미지(업로드 전)  -->
                                    <i class="os-icon os-icon-documents-07"
                                       ng-if="file.fileType == 'IMAGE'"></i>
                                    <!--    기타  -->
                                    <i class="os-icon os-icon-ui-51" ng-if="file.fileType == 'ETC'"></i>
                                </div>
                                <div class="item-name">
                                    <small>{{file.name}}</small>
                                </div>
                                <div class="item-amount">
                                    ({{file.size/1024/1024 | number:2}} MB)
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
 
    <div class="modal-footer buttons-on-right">
        <button type="button" class="btn btn-md btn-grey" ng-click="fn.cancel()"><span
                translate="common.cancel">취소</span></button>
        <button type="button" class="btn btn-md btn-primary bold"
                ng-disabled="fn.formCheck(issueSendForm.$invalid)"
                ng-click="fn.formSubmit()"><span translate="issue.sendMail">이메일 발송</span>
        </button>
    </div>
</div>