| | |
| | | <select id="customFieldModifyForm2" class="form-control" ng-model="vm.form.customFieldType" |
| | | ng-change="fn.changeCustomFieldType()"> |
| | | <option value="INPUT" translate="common.stringField">문자열 필드</option> |
| | | <option value="SINGLE_SELECT" translate="common.singleSelectionField">단일 선택 필드</option> |
| | | <option value="MULTI_SELECT" translate="common.multipleSelectionField">다중 선택 필드</option> |
| | | <option value="NUMBER" translate="common.numberField">숫자 필드</option> |
| | | <option value="DATETIME" translate="common.datetimeField">날짜 필드</option> |
| | | <option value="IP_ADDRESS" translate="common.ipAddressField">IP 주소 필드</option> |
| | | <option value="EMAIL" translate="common.emailField">이메일 필드</option> |
| | | <option value="SITE" translate="common.siteField">홈페이지 주소 필드</option> |
| | | <option value="TEL" translate="common.telField">전화번호 필드</option> |
| | | <option value="SINGLE_SELECT" translate="common.singleSelectionField">단일 선택 필드</option> |
| | | <option value="MULTI_SELECT" translate="common.multipleSelectionField">다중 선택 필드</option> |
| | | </select> |
| | | </div> |
| | | |
| | |
| | | <label ng-show="vm.form.customFieldType == 'MULTI_SELECT'"><span |
| | | translate="customField.createMultiFieldList">다중 선택 필드 목록 만들기</span> <code |
| | | class="highlighter-rouge">*</code></label> |
| | | |
| | | <div class="input-group"> |
| | | <input id="optionAdd" |
| | | type="text" |
| | |
| | | </div> |
| | | |
| | | <div ng-repeat="option in vm.form.options" ng-show="vm.form.customFieldType == 'SINGLE_SELECT' || vm.form.customFieldType == 'MULTI_SELECT'"> |
| | | <!-- <div ng-repeat="option in vm.form.options" ng-show="vm.form.customFieldType != 'INPUT'">--> |
| | | <span class="select3-selection__choice"> |
| | | <span>{{option}}</span> |
| | | <span class="select3-selection__choice__remove" ng-click="fn.removeOption($index)">×</span> |
| | |
| | | |
| | | <div class="form-group"> |
| | | <label for="customFieldModifyForm3"><span translate="customField.defaultValue">기본값</span> </label> |
| | | <input id="customFieldModifyForm3" |
| | | <input ng-if="vm.form.customFieldType == 'INPUT' || vm.form.customFieldType == 'SINGLE_SELECT' || vm.form.customFieldType == 'MULTI_SELECT'" |
| | | id="customFieldModifyForm3" |
| | | type="text" |
| | | name="defaultValue" |
| | | class="form-control" |
| | |
| | | kr-input |
| | | ng-maxlength="100" |
| | | autocomplete="off"> |
| | | |
| | | <input ng-if="vm.form.customFieldType == 'NUMBER'" |
| | | name="numberType" |
| | | type="text" |
| | | class="form-control" |
| | | kr-input |
| | | ng-pattern="/^[0-9]*$/" |
| | | placeholder="숫자만 입력 가능합니다." |
| | | autocomplete="off" |
| | | ng-model="vm.form.defaultValue"> |
| | | <div ng-show="customFieldAddForm.ipAdress.$error.pattern" class="help-block form-text text-danger" |
| | | translate="common.invalidNumberFormat">숫자만 입력 가능합니다. |
| | | </div> |
| | | |
| | | <input ng-if="vm.form.customFieldType == 'DATETIME'" |
| | | type="text" |
| | | class="form-control" |
| | | kr-input |
| | | ng-pattern="/^(19|20)\d{2}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[0-1])$/" |
| | | placeholder="날짜 형식만 입력 가능합니다." |
| | | autocomplete="off" |
| | | ng-model="vm.form.defaultValue"> |
| | | <div ng-show="customFieldAddForm.ipAdress.$error.pattern" class="help-block form-text text-danger" |
| | | translate="common.invalidDateFormat">날짜 형식이 맞지 않습니다.(19|20년도 월은 1~12 일자는 31까지 입력가능합니다.) |
| | | </div> |
| | | |
| | | <input ng-if="vm.form.customFieldType == 'IP_ADDRESS'" |
| | | name="ipAdress" |
| | | type="text" |
| | | class="form-control" |
| | | 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" |
| | | ng-model="vm.form.defaultValue"> |
| | | <div ng-show="customFieldAddForm.ipAdress.$error.pattern" class="help-block form-text text-danger" |
| | | translate="common.invalidipAdressFormat">IP주소 형식이 맞지 않습니다. |
| | | </div> |
| | | |
| | | <input ng-if="vm.form.customFieldType == 'EMAIL'" |
| | | name="email" |
| | | type="email" |
| | | class="form-control" |
| | | maxlength="30" |
| | | kr-input |
| | | ng-pattern="/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/" |
| | | placeholder="이메일 형식만 입력 가능합니다." |
| | | autocomplete="off" |
| | | ng-model="vm.form.defaultValue"> |
| | | <div ng-show="customFieldAddForm.email.$error.pattern" class="help-block form-text text-danger" |
| | | translate="common.invalidEmailFormat">이메일 형식이 맞지 않습니다. |
| | | </div> |
| | | |
| | | <input ng-if="vm.form.customFieldType == 'SITE'" |
| | | name="site" |
| | | type="text" |
| | | class="form-control" |
| | | maxlength="30" |
| | | kr-input |
| | | ng-pattern="/(http(s)?:\/\/)([a-z0-9\w]+\.*)+[a-z0-9]{2,4}/gi" |
| | | placeholder="홈페이지 주소 형식만 입력 가능합니다." |
| | | autocomplete="off" |
| | | ng-model="vm.form.defaultValue"> |
| | | <div ng-show="customFieldAddForm.site.$error.pattern" class="help-block form-text text-danger" |
| | | translate="common.invalidSiteFormat">홈페이지 주소 형식이 맞지 않습니다.(http://로 시작하셔야합니다) |
| | | </div> |
| | | |
| | | |
| | | <input ng-if="vm.form.customFieldType == 'TEL'" |
| | | name="tel" |
| | | type="text" |
| | | class="form-control" |
| | | kr-input |
| | | ng-pattern="/^\d{2,3}-\d{3,4}-\d{4}$/" |
| | | placeholder="연락처 형식만 입력 가능합니다." |
| | | autocomplete="off" |
| | | ng-model="vm.form.defaultValue"> |
| | | <div ng-show="customFieldAddForm.tel.$error.pattern" class="help-block form-text text-danger" |
| | | translate="common.invalidTelFormat">전화번호 형식이 맞지 않습니다. |
| | | </div> |
| | | |
| | | <small ng-show="customFieldModifyForm.defaultValue.$error.maxlength" |
| | | class="help-block form-text text-danger" translate="common.upTo100Characters"> |
| | | 최대 100글자까지 입력할 수 있습니다. |