From 911e65ca7d4f47ec18212375b4eb479c1c40acbe Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 금, 07 1월 2022 10:03:18 +0900 Subject: [PATCH] 연락처 입력시 하이픈 자동 입력 (지역, 핸드폰 번호) --- src/main/webapp/views/hostingField/hostingFieldModify.html | 40 +++++++++++++++++++++++++++++++++------- 1 files changed, 33 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/views/hostingField/hostingFieldModify.html b/src/main/webapp/views/hostingField/hostingFieldModify.html index 764e8b5..a9539bf 100644 --- a/src/main/webapp/views/hostingField/hostingFieldModify.html +++ b/src/main/webapp/views/hostingField/hostingFieldModify.html @@ -27,7 +27,7 @@ ng-maxlength="100" maxlength="100" required> - <!--<small translate="notice.enterSpecialCharacters">�젣紐⑹뿉�뒗 �듅�닔 臾몄옄瑜� �엯�젰�븷 �닔 �뾾�뒿�땲�떎.</small>--> + <small translate="hostingField.enterSpecialCharacters">�샇�뒪�똿 �씠由꾩뿉�뒗 �듅�닔 臾몄옄瑜� �엯�젰 �븷�닔 �뾾�뒿�땲�떎.</small> </div> <div class="form-group"> <label for="hostingFieldModifyForm10"> @@ -46,6 +46,7 @@ ng-maxlength="100" maxlength="100" required> + <small translate="hostingField.invalidCodeFormat">肄붾뱶紐낆뿉�뒗 �듅�닔 臾몄옄瑜� �엯�젰 �븷�닔 �뾾�뒿�땲�떎.</small> </div> <div> <div class="form-group"> @@ -63,7 +64,6 @@ ng-maxlength="100" maxlength="100" > - <!--<small translate="notice.enterSpecialCharacters">�젣紐⑹뿉�뒗 �듅�닔 臾몄옄瑜� �엯�젰�븷 �닔 �뾾�뒿�땲�떎.</small>--> </div> </div> <div> @@ -77,11 +77,14 @@ class="form-control" kr-input input-regex="[^0-9]" + ng-pattern="/^\d{2,3}-\d{3,4}-\d{4}$/" autocomplete="off" + ng-keyup="fn.autoHyphenPhone()" ng-model="vm.form.tel" - maxlength="20" - > - <!--<small translate="notice.enterSpecialCharacters">�젣紐⑹뿉�뒗 �듅�닔 臾몄옄瑜� �엯�젰�븷 �닔 �뾾�뒿�땲�떎.</small>--> + maxlength="30"> +<!-- <div ng-show="hostingFieldModifyForm.tel.$error.pattern" class="help-block form-text text-danger"--> +<!-- translate="companyField.invalidTelFormat">�쟾�솕踰덊샇 �삎�떇�씠 留욎� �븡�뒿�땲�떎. xxx-xxx-xxxx �삎�떇�쑝濡� �엯�젰�븯�꽭�슂.--> +<!-- </div>--> </div> </div> <div> @@ -99,13 +102,36 @@ kr-input ng-pattern="/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/" > - <!--<small translate="notice.enterSpecialCharacters">�젣紐⑹뿉�뒗 �듅�닔 臾몄옄瑜� �엯�젰�븷 �닔 �뾾�뒿�땲�떎.</small>--> + <div ng-show="hostingFieldModifyForm.email.$error.pattern" class="help-block form-text text-danger" + translate="users.invalidEmailFormat">�씠硫붿씪 �삎�떇�씠 留욎� �븡�뒿�땲�떎. + </div> + </div> + </div> + <div> + <div class="form-group"> + <label for="hostingFieldAddForm11" class="issue-label"> + <span translate="companyField.url">url</span> + </label> + <input id="hostingFieldAddForm11" + name="url" + type="text" + class="form-control" + kr-input + autocomplete="off" + ng-model="vm.form.url" + ng-maxlength="200" + maxlength="200" + ng-pattern="/(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/" + > + <div ng-show="ispFieldModifyForm.url.$error.pattern" class="help-block form-text text-danger" + translate="common.invalidUrlFormat">url �삎�떇�씠 留욎� �븡�뒿�땲�떎. + </div> </div> </div> <div> <div class="form-group"> <label for="hostingFieldModifyForm8" class="issue-label"> - <span translate="hostingField.desc">鍮꾧퀬</span> + <span translate="hostingField.memo">鍮꾧퀬</span> </label> <input id="hostingFieldModifyForm8" name="memo" -- Gitblit v1.8.0