OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-01-12 3b019e5599dfb5d368f4e8fd50fb557f4679a645
src/main/webapp/views/hostingField/hostingFieldAdd.html
@@ -65,46 +65,64 @@
                    >
                </div>
            </div>
            <div>
                <div class="form-group">
                    <label for="hostingFieldAddForm7" class="issue-label">
                        <span translate="hostingField.tel">전화번호</span>
                    </label>
                    <input id="hostingFieldAddForm7"
                           name="tel"
                           type="text"
                           class="form-control"
                           kr-input
                           input-regex="[^0-9]"
                           autocomplete="off"
                           ng-model="vm.form.tel"
                           maxlength="11"
                           minlength="9">
                    <div ng-show="hostingFieldAddForm.tel.$error.minlength" class="help-block form-text text-danger"
                         translate="common.least9CharactersTel">전화번호 형식이 맞지 않습니다.(9자리 이상)
            <div class="row">
                <div class="col-lg-4">
                    <div class="form-group">
                        <label class="issue-label">
                            <span translate="hostingField.tel">전화번호</span>
                        </label>
                        <div class="input-group" ng-repeat="i in vm.form.inputTels">
                            <input name="tel"
                                   type="text"
                                   class="form-control"
                                   kr-input
                                   input-regex="[^0-9]"
                                   autocomplete="off"
                                   ng-model="vm.form.tels[$index]"
                                   maxlength="11"
                                   minlength="9">
                            <span class="select3-selection__email__remove" ng-click="fn.removeTelInput($index)">×</span>
                        </div>
                        <div ng-show="hostingFieldAddForm.tel.$error.minlength" class="help-block form-text text-danger"
                             translate="common.least9CharactersTel">전화번호 형식이 맞지 않습니다.(9자리 이상)
                        </div>
                    </div>
<!--                    <div ng-show="hostingFieldAddForm.tel.$error.pattern" class="help-block form-text text-danger"-->
<!--                         translate="companyField.invalidTelFormat">전화번호 형식이 맞지 않습니다. xxx-xxx-xxxx 형식으로 입력하세요.-->
<!--                    </div>-->
                </div>
            </div>
            <div>
                <div class="form-group">
                    <label for="hostingFieldAddForm6" class="issue-label">
                        <span translate="hostingField.email">이메일</span>
                    </label>
                    <input id="hostingFieldAddForm6"
                           name="email"
                           type="email"
                           class="form-control"
                           autocomplete="off"
                           maxLength="50"
                           ng-model="vm.form.email"
                           kr-input
                           ng-pattern="/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/"
                    >
                    <div ng-show="hostingFieldAddForm.email.$error.pattern" class="help-block form-text text-danger"
                         translate="users.invalidEmailFormat">이메일 형식이 맞지 않습니다.
                <div class="col-lg-2 mt-25" style="margin-left: -15px">
                    <div>
                        <button type="button" class="btn btn-secondary" ng-click="fn.addTel()">
                            <span translate="common.add">추가</span>
                        </button>
                    </div>
                </div>
                <div class="col-lg-5">
                    <div class="form-group">
                        <label class="issue-label">
                            <span translate="hostingField.email">이메일</span>
                        </label>
                        <div class="input-group" ng-repeat="mail in vm.form.inputMails">
                            <input id="hostingFieldAddForm6"
                                   name="email"
                                   type="email"
                                   class="form-control"
                                   autocomplete="off"
                                   maxLength="50"
                                   ng-model="vm.form.emails[$index]"
                                   kr-input
                                   ng-pattern="/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/"
                            >
                            <span class="select3-selection__email__remove" ng-click="fn.removeMailInput($index)">×</span>
                        </div>
                        <div ng-show="hostingFieldAddForm.email.$error.pattern" class="help-block form-text text-danger"
                             translate="users.invalidEmailFormat">이메일 형식이 맞지 않습니다.
                        </div>
                    </div>
                </div>
                <div class="col-lg-2 mt-25" style="margin-left: -15px; margin-right: -16px;">
                    <div>
                        <button type="button" class="btn btn-secondary" ng-click="fn.addMail()">
                            <span translate="common.add">추가</span>
                        </button>
                    </div>
                </div>
            </div>