From e9ff86339f9b1105b22814434e282d7b7212680d Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 월, 27 12월 2021 19:53:39 +0900 Subject: [PATCH] 사용자 정의 필드 필수 항목 표시 변경 오류 수정 --- src/main/webapp/views/customField/customFieldAdd.html | 2 +- src/main/webapp/views/issue/issueAdd.html | 26 +++++++++++++------------- src/main/webapp/views/issue/issueModify.html | 24 ++++++++++++------------ 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/main/webapp/views/customField/customFieldAdd.html b/src/main/webapp/views/customField/customFieldAdd.html index 97a7031..ae6b5be 100644 --- a/src/main/webapp/views/customField/customFieldAdd.html +++ b/src/main/webapp/views/customField/customFieldAdd.html @@ -112,7 +112,7 @@ placeholder="�닽�옄留� �엯�젰 媛��뒫�빀�땲�떎." autocomplete="off" ng-model="vm.form.defaultValue"> - <div ng-if="vm.form.customFieldType == 'NUMBER'" ng-if="customFieldAddForm.numberType.$error.pattern" class="help-block form-text text-danger" + <div ng-if="customFieldAddForm.numberType.$error.pattern" class="help-block form-text text-danger" translate="common.invalidNumberFormat">�닽�옄留� �엯�젰 媛��뒫�빀�땲�떎. </div> diff --git a/src/main/webapp/views/issue/issueAdd.html b/src/main/webapp/views/issue/issueAdd.html index 9c7b98f..22e298b 100644 --- a/src/main/webapp/views/issue/issueAdd.html +++ b/src/main/webapp/views/issue/issueAdd.html @@ -236,7 +236,7 @@ <!-- 湲곕낯 �엯�젰 --> <div ng-switch-when="INPUT"> <input type="text" class="form-control input-sm" - name="inputValue" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="100" autocomplete="off" @@ -251,7 +251,7 @@ <div ng-switch-when="NUMBER"> <input type="text" class="form-control input-sm" - name="numberType" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="100" autocomplete="off" @@ -264,14 +264,14 @@ <!-- ng-if="issueAddForm.numberType.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueAddForm.numberType.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueAddForm['item_' + $index].$error.pattern" class="help-block form-text text-danger" translate="common.invalidNumberFormat">�닽�옄留� �엯�젰 媛��뒫�빀�땲�떎. </div> </div> <div ng-switch-when="DATETIME"> <input class="form-control input-sm input-readonly" - name="dateTime" + name="item_{{$index}}" ng-model="issueCustomField.useValues" placeholder="{{'issue.clickToSelectDate' | translate}}" modal-form-auto-scroll @@ -288,7 +288,7 @@ <div ng-switch-when="IP_ADDRESS"> <input type="text" class="form-control input-sm" - name="ipAddress" + name="item_{{$index}}" ng-model="issueCustomField.useValues" autocomplete="off" kr-input @@ -300,14 +300,14 @@ <!-- ng-if="issueAddForm.ipAddress.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueAddForm.ipAddress.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueAddForm['item_' + $index].$error.pattern" class="help-block form-text text-danger" translate="common.invalidipAdressFormat">IP二쇱냼 �삎�떇�씠 留욎� �븡�뒿�땲�떎. </div> </div> <div ng-switch-when="EMAIL"> <input type="email" class="form-control input-sm" - name="email" + name="item_{{$index}}" maxlength="30" ng-model="issueCustomField.useValues" kr-input @@ -319,14 +319,14 @@ <!-- ng-if="issueAddForm.ipAddress.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueAddForm.email.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueAddForm['item_' + $index].$error.pattern" class="help-block form-text text-danger" translate="common.invalidEmailFormat">�씠硫붿씪 �삎�떇�씠 留욎� �븡�뒿�땲�떎. </div> </div> <div ng-switch-when="SITE"> <input type="text" class="form-control input-sm" - name="site" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="100" autocomplete="off" @@ -339,14 +339,14 @@ <!-- ng-if="issueAddForm.site.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueAddForm.site.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueAddForm['item_' + $index].$error.pattern" class="help-block form-text text-danger" translate="common.invalidSiteFormat">�솃�럹�씠吏� 二쇱냼 �삎�떇�씠 留욎� �븡�뒿�땲�떎.(http:// �삉�뒗 www 濡� �떆�옉�븯�뀛�빞�빀�땲�떎) </div> </div> <div ng-switch-when="TEL"> <input type="text" class="form-control input-sm" - name="tel" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="30" autocomplete="off" @@ -359,7 +359,7 @@ <!-- ng-if="issueAddForm.tel.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueAddForm.tel.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueAddForm['item_' + $index].$error.pattern" class="help-block form-text text-danger" translate="common.invalidTelFormat">�쟾�솕踰덊샇 �삎�떇�씠 留욎� �븡�뒿�땲�떎. </div> </div> @@ -367,7 +367,7 @@ <!-- �떒�씪 ���젆�듃 --> <div ng-switch-when="SINGLE_SELECT"> <select class="form-control input-sm issue-select-label" - name="singleSelect" + name="item_{{$index}}" ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'" ng-model="issueCustomField.useValues"> <option value="" value="" translate="common.choose">�꽑�깮�븯�꽭�슂.</option> diff --git a/src/main/webapp/views/issue/issueModify.html b/src/main/webapp/views/issue/issueModify.html index 954fe10..b8703a2 100644 --- a/src/main/webapp/views/issue/issueModify.html +++ b/src/main/webapp/views/issue/issueModify.html @@ -236,7 +236,7 @@ <!-- 湲곕낯 �엯�젰 --> <div ng-switch-when="INPUT"> <input type="text" class="form-control input-sm" - name="inputValue" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="100" autocomplete="off" @@ -251,7 +251,7 @@ <div ng-switch-when="NUMBER"> <input type="text" class="form-control input-sm" - name="numberType" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="100" autocomplete="off" @@ -271,7 +271,7 @@ <div ng-switch-when="DATETIME"> <input type="text" class="form-control input-sm" - name="dateTime" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="100" autocomplete="off" @@ -286,7 +286,7 @@ <div ng-switch-when="IP_ADDRESS"> <input type="text" class="form-control input-sm" - name="ipAddress" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="100" autocomplete="off" @@ -299,14 +299,14 @@ <!-- ng-if="issueModifyForm.ipAddress.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueModifyForm.ipAddress.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueModifyForm['item_' + $index].$error.pattern" class="help-block form-text text-danger" translate="common.invalidipAdressFormat">IP二쇱냼 �삎�떇�씠 留욎� �븡�뒿�땲�떎. </div> </div> <div ng-switch-when="EMAIL"> <input type="email" class="form-control input-sm" - name="email" + name="item_{{$index}}" maxlength="30" ng-model="issueCustomField.useValues" kr-input @@ -318,14 +318,14 @@ <!-- ng-if="issueModifyForm.ipAddress.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueModifyForm.email.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueModifyForm['item_' + $index].$error.pattern" class="help-block form-text text-danger" translate="common.invalidEmailFormat">�씠硫붿씪 �삎�떇�씠 留욎� �븡�뒿�땲�떎. </div> </div> <div ng-switch-when="SITE"> <input type="text" class="form-control input-sm" - name="site" + name="item_{{$index}}" ng-model="issueCustomField.useValues" maxlength="100" autocomplete="off" @@ -338,14 +338,14 @@ <!-- ng-if="issueModifyForm.site.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueModifyForm.site.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueModifyForm['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="issueCustomField.useValues" maxlength="30" autocomplete="off" @@ -358,7 +358,7 @@ <!-- ng-if="issueModifyForm.tel.$error.required"--> <!-- translate="issue.pleaseEnterIssueTypeCustomFields">�빐�떦 �궗�슜�옄 �젙�쓽 �븘�뱶�뒗 �븘�닔 �엯�젰 媛� �엯�땲�떎.--> <!-- </small>--> - <div ng-if="issueModifyForm.tel.$error.pattern" class="help-block form-text text-danger" + <div ng-if="issueModifyForm['item_' + $index].$error.pattern" class="help-block form-text text-danger" translate="common.invalidTelFormat">�쟾�솕踰덊샇 �삎�떇�씠 留욎� �븡�뒿�땲�떎. </div> </div> @@ -366,7 +366,7 @@ <!-- �떒�씪 ���젆�듃 --> <div ng-switch-when="SINGLE_SELECT"> <select class="form-control input-sm issue-select-label" - name="singleSelect" + name="item_{{$index}}" ng-required="issueCustomField.fieldOption == '01' || issueCustomField.customFieldVo.requiredData == 'Y'" ng-model="issueCustomField.useValues"> <option value="" value="" translate="common.choose">�꽑�깮�븯�꽭�슂.</option> -- Gitblit v1.8.0