From 3da71368d451c455872a6ca114c0540e65308aef Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 화, 28 12월 2021 15:32:43 +0900
Subject: [PATCH] 공지사항,Faq,가이드,Qna 통합 수정 - 일반회원은 faq,가이드 활성화 된 게시글만 보이기 - 엑셀다운,삭제 기능 추가(기존에 없었음) - 삭제,수정 시 권한 체크

---
 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