OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-01-13 4545664bbece1b1b185945376b344b1660669a53
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
<div class="formModal">
    <div class="modal-header faded smaller">
        <div class="modal-title">
            <strong translate="project.settingCustomFields">사용자 정의 필드 설정</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="projectCustomFieldConfigForm">
            <div class="form-group">
                <label for="projectCustomFieldConfigForm1"><span translate="issue.issueType">이슈 타입</span> <code class="highlighter-rouge">*</code></label>
                <select id="projectCustomFieldConfigForm1"
                        name="issueType"
                        class="form-control"
                        required
                        ng-model="vm.form.issueTypeId"
                        ng-change="fn.issueTypeChange()">
<!--                    ng-if="relationCustomField.checked == 'false'"-->
                    <option value="" translate="common.choose">선택하세요.</option>
                    <option ng-value="issueType.id" ng-repeat="issueType in vm.issueTypes">{{::issueType.name}}</option>
                </select>
            </div>
 
            <p class="mt-20" ng-show="$root.isDefined(vm.form.issueTypeId)" ><span translate="project.selectCustomField">사용자 정의 필드 선택</span>
                <small class="fc-grey">(Use Drag and Drop)</small>
            </p>
 
            <div class="row" ng-show="$root.isDefined(vm.form.issueTypeId)">
                <div class="col-lg-6">
                    <div class="pipeline white">
                        <h6 class="pipeline-name text-center fs-09 bold " translate="project.availableFields">
                            사용가능한 필드
                        </h6>
                        <div class="pipeline-body" style="height:200px; overflow-y:auto;">
                            <ul class="connectList"
                                ui-sortable="fn.activeSortable"
                                ng-model="vm.customFields"
                                style="padding-left:0px; min-height:300px; list-style:none;">
                                <li class=""
                                    ng-repeat="customField in vm.customFields">
                                    <div class="pipeline-item">
                                        <div class="pi-name">
                                            {{customField.name}}
                                        </div>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'INPUT'" translate="common.stringField">문자열 필드</small>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'SINGLE_SELECT'" translate="common.singleSelectionField">단일 선택 필드</small>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'MULTI_SELECT'" translate="common.multipleSelectionField">다중 선택 필드</small>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'NUMBER'" translate="common.numberField">숫자 선택 필드</small>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'DATETIME'" translate="common.datetimeField">날짜 선택 필드</small>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'IP_ADDRESS'" translate="common.ipAddressField">IP Address 선택 필드</small>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'EMAIL'" translate="common.emailField">이메일 선택 필드</small>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'SITE'" translate="common.siteField">URL 선택 필드</small>
                                        <small class="fc-grey" ng-show="customField.customFieldType == 'TEL'" translate="common.telField">전화번호 선택 필드</small>
                                    </div>
 
                                    <!--<span>{{customField.name}}</span> <input type="checkbox" ng-model="customField.checked">-->
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
 
                <div class="col-lg-6">
                    <div class="pipeline blue">
                        <h6 class="pipeline-name text-center fs-09 bold " translate="project.inUseField">
                            사용중인 필드
                        </h6>
                        <div class="pipeline-body" style="height:200px; overflow-y:auto;">
                            <ul class="connectList"
                                style="padding-left:0px; min-height:300px;  list-style:none;"
                                ui-sortable="fn.activeSortable"
                                ng-model="vm.relationCustomFields">
                                <li class=""
                                    ng-repeat="relationCustomField in vm.relationCustomFields">
                                    <div class="pipeline-item">
                                        <div class="pi-name">
                                            {{relationCustomField.name}}
                                        </div>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'INPUT'" translate="common.stringField">문자열 필드</small>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'SINGLE_SELECT'" translate="common.singleSelectionField">단일 선택 필드</small>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'MULTI_SELECT'" translate="common.multipleSelectionField">다중 선택 필드</small>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'NUMBER'" translate="common.numberField">숫자 선택 필드</small>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'DATETIME'" translate="common.datetimeField">날짜 선택 필드</small>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'IP_ADDRESS'" translate="common.ipAddressField">IP Address 선택 필드</small>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'EMAIL'" translate="common.emailField">이메일 선택 필드</small>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'SITE'" translate="common.siteField">URL 선택 필드</small>
                                        <small class="fc-grey" ng-show="relationCustomField.customFieldType == 'TEL'" translate="common.telField">전화번호 선택 필드</small>
                                    </div>
                                    <!--<span>{{relationCustomField.name}}</span> <input type="checkbox"
                                                                                     ng-model="relationCustomField.checked">-->
                                </li>
                            </ul>
                        </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.close">닫기</span></button>
        <button type="button" class="btn btn-md btn-primary bold"
                ng-disabled="fn.formCheck(projectCustomFieldConfigForm.$invalid)"
                ng-click="fn.formSubmit()"><span translate="common.save">저장</span>
        </button>
    </div>
</div>