From e8b52ec9e2d1f4a8d53305600f8c00089c8e9b71 Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 월, 27 12월 2021 21:46:45 +0900
Subject: [PATCH] 날짜필드 자동완성 수정

---
 src/main/webapp/views/issue/issueListNormal.html |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/src/main/webapp/views/issue/issueListNormal.html b/src/main/webapp/views/issue/issueListNormal.html
index 2f018a6..af1d6e4 100644
--- a/src/main/webapp/views/issue/issueListNormal.html
+++ b/src/main/webapp/views/issue/issueListNormal.html
@@ -290,25 +290,26 @@
                                                         <div ng-switch-when="NUMBER">
                                                             <input type="text"
                                                                    class="form-control input-sm"
-                                                                   name="numberType"
+                                                                   name="item_{{$index}}"
                                                                    ng-model="customField.useValues"
                                                                    kr-input
                                                                    placeholder="�닽�옄留� �엯�젰 媛��뒫�빀�땲�떎."
                                                                    ng-pattern="/^[0-9]*$/"
                                                                    autocomplete="off">
-                                                            <div ng-show="issueSearchForm.numberType.$error.pattern" class="help-block form-text text-danger"
+                                                            <div ng-if="issueSearchForm['item_'+ $index].$error.pattern" class="help-block form-text text-danger"
                                                                  translate="common.invalidNumberFormat">�닽�옄留� �엯�젰 媛��뒫�빀�땲�떎.
                                                             </div>
                                                         </div>
 
-                                                        <!-- todo : �궇吏� 寃��깋 臾몄젣 -->
                                                         <div ng-switch-when="DATETIME">
-                                                            <input type="text" class="form-control input-sm"
-                                                                   name="dateTime"
+                                                            <input class="form-control input-sm input-readonly"
+                                                                   name="item_{{$index}}"
                                                                    ng-model="customField.useValues"
-                                                                   maxlength="100"
+                                                                   placeholder="{{'issue.clickToSelectDate' | translate}}"
+                                                                   modal-form-auto-scroll
                                                                    range-type="singleDate"
-                                                                   date-range-picker>
+                                                                   date-range-picker
+                                                                   autocomplete="off">
                                                             <div class="row">
                                                                 <div class="col-xs-12">
                                                                     <div id="createdWidget" class="bootstrap-datepicker "></div>
@@ -319,13 +320,13 @@
                                                         <div ng-switch-when="IP_ADDRESS">
                                                             <input type="text"
                                                                    class="form-control input-sm"
-                                                                   name="ipAdress"
+                                                                   name="item_{{$index}}"
                                                                    ng-model="customField.useValues"
                                                                    kr-input
                                                                    ng-pattern="/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/"
                                                                    placeholder="IP 二쇱냼 �삎�떇留� �엯�젰 媛��뒫�빀�땲�떎."
                                                                    autocomplete="off">
-                                                            <div ng-show="issueSearchForm.ipAdress.$error.pattern" class="help-block form-text text-danger"
+                                                            <div ng-if="issueSearchForm['item_'+ $index].$error.pattern" class="help-block form-text text-danger"
                                                                  translate="common.invalidipAdressFormat">IP二쇱냼 �삎�떇�씠 留욎� �븡�뒿�땲�떎.
                                                             </div>
                                                         </div>
@@ -333,13 +334,13 @@
                                                         <div ng-switch-when="EMAIL">
                                                             <input type="email"
                                                                    class="form-control input-sm"
-                                                                   name="email"
+                                                                   name="item_{{$index}}"
                                                                    ng-model="customField.useValues"
                                                                    kr-input
                                                                    ng-pattern="/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/"
                                                                    placeholder="�씠硫붿씪 �삎�떇留� �엯�젰 媛��뒫�빀�땲�떎."
                                                                    autocomplete="off">
-                                                            <div ng-show="issueSearchForm.email.$error.pattern" class="help-block form-text text-danger"
+                                                            <div ng-if="issueSearchForm['item_'+ $index].$error.pattern" class="help-block form-text text-danger"
                                                                  translate="common.invalidEmailFormat">�씠硫붿씪 �삎�떇�씠 留욎� �븡�뒿�땲�떎.
                                                             </div>
                                                         </div>
@@ -347,26 +348,26 @@
                                                         <div ng-switch-when="SITE">
                                                             <input type="text"
                                                                    class="form-control input-sm"
-                                                                   name="site"
+                                                                   name="item_{{$index}}"
                                                                    ng-model="customField.useValues"
                                                                    kr-input
-                                                                   ng-pattern="/((http|https):\/\/)?(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/"
+                                                                   ng-pattern="/(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/"
                                                                    placeholder="�솃�럹�씠吏� 二쇱냼 �삎�떇留� �엯�젰 媛��뒫�빀�땲�떎."
                                                                    autocomplete="off">
-                                                            <div ng-show="issueSearchForm.site.$error.pattern" class="help-block form-text text-danger"
+                                                            <div ng-if="issueSearchForm['item_'+ $index].$error.pattern" class="help-block form-text text-danger"
                                                                  translate="common.invalidSiteFormat">�솃�럹�씠吏� 二쇱냼 �삎�떇�씠 留욎� �븡�뒿�땲�떎.(http://濡� �떆�옉�븯�뀛�빞�빀�땲�떎)
                                                             </div>
                                                         </div>
                                                         <div ng-switch-when="TEL">
                                                             <input type="text"
                                                                    class="form-control input-sm"
-                                                                   name="tel"
+                                                                   name="item_{{$index}}"
                                                                    ng-model="customField.useValues"
                                                                    kr-input
                                                                    ng-pattern="/^\d{2,3}-\d{3,4}-\d{4}$/"
                                                                    placeholder="�뿰�씫泥� �삎�떇留� �엯�젰 媛��뒫�빀�땲�떎."
                                                                    autocomplete="off">
-                                                            <div ng-show="issueSearchForm.tel.$error.pattern" class="help-block form-text text-danger"
+                                                            <div ng-if="issueSearchForm['item_'+ $index].$error.pattern" class="help-block form-text text-danger"
                                                                  translate="common.invalidTelFormat">�쟾�솕踰덊샇 �삎�떇�씠 留욎� �븡�뒿�땲�떎.
                                                             </div>
                                                         </div>

--
Gitblit v1.8.0