From 7b4b71ee33c7a42383d3e6a69885d521fd7b6688 Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 수, 08 12월 2021 17:25:23 +0900
Subject: [PATCH] Merge branch 'master' of http://192.168.0.25:9001/r/owl-kisa

---
 src/main/webapp/views/issue/issueAdd.html |  121 +++++++++++++++++++++++++++++++++-------
 1 files changed, 100 insertions(+), 21 deletions(-)

diff --git a/src/main/webapp/views/issue/issueAdd.html b/src/main/webapp/views/issue/issueAdd.html
index 2ba70f3..e55ca04 100644
--- a/src/main/webapp/views/issue/issueAdd.html
+++ b/src/main/webapp/views/issue/issueAdd.html
@@ -212,19 +212,6 @@
                 </div>
             </div>
 
-            <div class="row">
-                <div class="col-sm-4">
-                    <label class="issue-label" translate="issue.relationIssueType">�뿰愿� �씠�뒋 援щ텇</label>
-                    <select id="relationIssueType"
-                            name="relationIssueType"
-                            class="form-control input-sm"
-                            ng-options="option.name for option in vm.relationIssueTypes track by option.id"
-                            ng-model="vm.relationIssueType"
-                            required>
-                    </select>
-                </div>
-            </div>
-
             <hr>
             <div class="row">
                 <div class="col-lg-4 fontcolor_green">
@@ -243,68 +230,105 @@
 
                     <div class="col-md-4" ng-repeat="issueCustomField in vm.form.issueCustomFields">
                         <div class="form-group mgb5">
-                            <label class="issue-label">{{issueCustomField.customFieldVo.name}}<code ng-if="" class="highlighter-rouge">&nbsp;*</code></label>
+                            <label class="issue-label">{{issueCustomField.customFieldVo.name}}</label>
 
                             <div ng-switch on="issueCustomField.customFieldVo.customFieldType">
                                 <!-- 湲곕낯 �엯�젰 -->
                                 <div ng-switch-when="INPUT">
                                     <input type="text" class="form-control input-sm"
+                                           name="input"
                                            ng-model="issueCustomField.useValues"
                                            maxlength="100"
                                            autocomplete="off"
                                            kr-input
-                                           ng-required="issueCustomField.fieldOption == '01'">
+                                           ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'">
+                                    <small class="help-block form-text text-danger"
+                                           ng-show="issueCustomField.customFieldVo.requiredData == 'Y'"
+                                           ng-if="issueAddForm.input.$error.required"
+                                           translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄�젙�쓽�븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.
+                                    </small>
                                 </div>
 
                                 <div ng-switch-when="NUMBER">
                                     <input type="text" class="form-control input-sm"
+                                           name="number"
                                            ng-model="issueCustomField.useValues"
                                            maxlength="100"
                                            autocomplete="off"
                                            kr-input
-                                           ng-required="issueCustomField.fieldOption == '01'">
+                                           ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'">
+                                    <small class="help-block form-text text-danger"
+                                           ng-show="issueCustomField.customFieldVo.requiredData == 'Y'"
+                                           ng-if="issueAddForm.number.$error.required"
+                                           translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.
+                                    </small>
                                 </div>
 
                                 <div ng-switch-when="DATETIME">
                                     <input type="text" class="form-control input-sm"
+                                           name="dateTime"
                                            ng-model="issueCustomField.useValues"
                                            maxlength="100"
                                            autocomplete="off"
                                            kr-input
-                                           ng-required="issueCustomField.fieldOption == '01'">
+                                           ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'">
+                                    <small class="help-block form-text text-danger"
+                                           ng-show="issueCustomField.customFieldVo.requiredData == 'Y'"
+                                           ng-if="issueAddForm.dateTime.$error.required"
+                                           translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.
+                                    </small>
                                 </div>
 
                                 <div ng-switch-when="IP_ADDRESS">
                                     <input type="text" class="form-control input-sm"
+                                           name="ipAddress"
                                            ng-model="issueCustomField.useValues"
                                            maxlength="100"
                                            autocomplete="off"
                                            kr-input
-                                           ng-required="issueCustomField.fieldOption == '01'">
+                                           ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'">
+                                    <small class="help-block form-text text-danger"
+                                           ng-show="issueCustomField.customFieldVo.requiredData == 'Y'"
+                                           ng-if="issueAddForm.ipAddress.$error.required"
+                                           translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.
+                                    </small>
                                 </div>
 
                                 <div ng-switch-when="SITE">
                                     <input type="text" class="form-control input-sm"
+                                           name="site"
                                            ng-model="issueCustomField.useValues"
                                            maxlength="100"
                                            autocomplete="off"
                                            kr-input
-                                           ng-required="issueCustomField.fieldOption == '01'">
+                                           ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'">
+                                    <small class="help-block form-text text-danger"
+                                           ng-show="issueCustomField.customFieldVo.requiredData == 'Y'"
+                                           ng-if="issueAddForm.site.$error.required"
+                                           translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.
+                                    </small>
                                 </div>
 
                                 <div ng-switch-when="TEL">
                                     <input type="text" class="form-control input-sm"
+                                           name="tel"
                                            ng-model="issueCustomField.useValues"
                                            maxlength="100"
                                            autocomplete="off"
                                            kr-input
-                                           ng-required="issueCustomField.fieldOption == '01'">
+                                           ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'">
+                                    <small class="help-block form-text text-danger"
+                                           ng-show="issueCustomField.customFieldVo.requiredData == 'Y'"
+                                           ng-if="issueAddForm.tel.$error.required"
+                                           translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.
+                                    </small>
                                 </div>
 
                                 <!-- �떒�씪 ���젆�듃 -->
                                 <div ng-switch-when="SINGLE_SELECT">
                                     <select class="form-control input-sm issue-select-label"
-                                            ng-required="issueCustomField.fieldOption == '01'"
+                                            name="singleSelect"
+                                            ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'"
                                             ng-model="issueCustomField.useValues">
                                         <option value="" value="" translate="common.choose">�꽑�깮�븯�꽭�슂.</option>
                                         <option ng-repeat="customFieldValueVo in issueCustomField.customFieldVo.customFieldValueVos"
@@ -313,6 +337,11 @@
                                             {{customFieldValueVo.value}}
                                         </option>
                                     </select>
+                                    <small class="help-block form-text text-danger"
+                                           ng-show="issueCustomField.customFieldVo.requiredData == 'Y'"
+                                           ng-if="issueAddForm.singleSelect.$error.required"
+                                           translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.
+                                    </small>
                                 </div>
 
                                 <!-- 硫��떚 ���젆�듃 -->
@@ -323,6 +352,14 @@
                                                              selected-model="issueCustomField.useValues"
                                                              extra-settings="{ 'idProp' : 'value', 'externalIdProp' : 'value', 'displayProp' : 'value', 'stringTypeOption' : 'true', stopRemoveBodyEvent : true }"
                                                              options="issueCustomField.customFieldVo.customFieldValueVos"></ng-dropdown-multiselect>
+                                    <input class="form-control input-sm issue-select-label"
+                                           type="hidden" name="multiSelect" ng-model="issueCustomField.useValues[0]"
+                                           ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'">
+                                    <small class="help-block form-text text-danger"
+                                           ng-show="issueCustomField.customFieldVo.requiredData == 'Y'"
+                                           ng-if="issueAddForm.multiSelect.$error.required"
+                                           translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.
+                                    </small>
                                 </div>
                             </div>
                         </div>
@@ -406,6 +443,20 @@
                         <div ng-show="issueAddForm.companyEmail.$error.pattern" class="help-block form-text text-danger"
                              translate="users.invalidEmailFormat">�씠硫붿씪 �삎�떇�씠 留욎� �븡�뒿�땲�떎.
                         </div>
+                    </div>
+                </div>
+                <div class="col-lg-4">
+                    <div class="form-group mgb5">
+                        <label for="companyFieldUrlAddForm" class="issue-label"><span translate="companyField.url">url</span></label>
+                        <input id="companyFieldUrlAddForm"
+                               name="companyUrl"
+                               type="text"
+                               class="form-control"
+                               kr-input
+                               autocomplete="off"
+                               ng-maxlength="200"
+                               ng-model="vm.companyUrl"
+                               maxlength="200">
                     </div>
                 </div>
                 <div class="col-lg-4">
@@ -516,6 +567,20 @@
                 </div>
                 <div class="col-lg-4">
                     <div class="form-group mgb5">
+                        <label for="ispFieldUrlAddForm" class="issue-label"><span translate="companyField.url">url</span></label>
+                        <input id="ispFieldUrlAddForm"
+                               name="ispUrl"
+                               type="text"
+                               class="form-control"
+                               kr-input
+                               autocomplete="off"
+                               ng-maxlength="200"
+                               ng-model="vm.ispUrl"
+                               maxlength="200">
+                    </div>
+                </div>
+                <div class="col-lg-4">
+                    <div class="form-group mgb5">
                         <label for="ispFieldDescAddForm" class="issue-label"><span translate="ispField.memo">鍮꾧퀬</span></label>
                         <input id="ispFieldDescAddForm"
                                name="ispMemo"
@@ -622,6 +687,20 @@
                 </div>
                 <div class="col-lg-4">
                     <div class="form-group mgb5">
+                        <label for="hostingFieldUrlAddForm" class="issue-label"><span translate="companyField.url">url</span></label>
+                        <input id="hostingFieldUrlAddForm"
+                               name="hostingUrl"
+                               type="text"
+                               class="form-control"
+                               kr-input
+                               autocomplete="off"
+                               ng-maxlength="200"
+                               ng-model="vm.hostingUrl"
+                               maxlength="200">
+                    </div>
+                </div>
+                <div class="col-lg-4">
+                    <div class="form-group mgb5">
                         <label for="hostingFieldDescAdd" class="issue-label"><span translate="hostingField.memo">鍮꾧퀬</span></label>
                         <input id="hostingFieldDescAdd"
                                name="hostingMemo"

--
Gitblit v1.8.0