Fix: maestro registration - account_type input type radio button
This commit is contained in:
@@ -106,10 +106,12 @@ function checkData() {
|
||||
return;
|
||||
}
|
||||
|
||||
selectedAccountTypeValue = $("#account_type").val();
|
||||
// selectedAccountTypeText = $("#account_type option:selected").text();
|
||||
// console.log(selectedAccountTypeValue);
|
||||
// console.log(selectedAccountTypeText);
|
||||
var selctedObject = $("input[name=account_type_radio]:checked");
|
||||
selectedAccountTypeValue = selctedObject.val();
|
||||
if(selectedAccountTypeValue === undefined) {
|
||||
showErrorMessage("학생 수를 선택해 주세요. (※ 모두 유료 결제를 하셔야 하는 서비스입니다)", "error");
|
||||
return;
|
||||
}
|
||||
|
||||
var isCheckAcceptClauses = $("#check_accept_clauses").is(":checked");
|
||||
if(!isCheckAcceptClauses) {
|
||||
@@ -495,13 +497,38 @@ $('#myTab a').on('click', function (e) {
|
||||
<div class="form-group row">
|
||||
<label for="account_type" class="col-sm-2 col-form-label">* 학생 수</label>
|
||||
<div class="col-sm-6">
|
||||
<select id="account_type" class="form-control">
|
||||
<option value="1" selected>20명 (1만원)</option>
|
||||
<option value="2">50명 (2만원)</option>
|
||||
<option value="3">100명 (3만원)</option>
|
||||
<option value="4">500명 (4만원)</option>
|
||||
<option value="5">1,000명 (5만원)</option>
|
||||
</select>
|
||||
|
||||
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type1" value="1">
|
||||
<label class="form-check-label" for="account_type1">
|
||||
20명 (1만원)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type2" value="2">
|
||||
<label class="form-check-label" for="account_type2">
|
||||
50명 (2만원)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type3" value="3">
|
||||
<label class="form-check-label" for="account_type3">
|
||||
100명 (3만원)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type4" value="4">
|
||||
<label class="form-check-label" for="account_type4">
|
||||
500명 (4만원)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type5" value="5">
|
||||
<label class="form-check-label" for="account_type5">
|
||||
1,000명 (5만원)
|
||||
</label>
|
||||
</div>
|
||||
<small class="form-text text-muted">계정 활성화 날짜로부터 1년동안 유효합니다.</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user