/home/techb158/ileadtechnology.com/SSM/public/js/pages/themes
NameSizeModeActions
articles/-0755rm
calendar~js/-0755rm
calendar.js100780644editdlrm
calendar.js.map1610644editdlrm
contact.js66620644editdlrm
contact.js.map1590644editdlrm
events.js103210644editdlrm
events.js.map1570644editdlrm
gallery.js3150644editdlrm
gallery.js.map1590644editdlrm
home.js174040644editdlrm
home.js.map1530644editdlrm
onlineRegistration.js187330644editdlrm
onlineRegistration.js.map1810644editdlrm
page.js93200644editdlrm
page.js.map1530644editdlrm
teachers.js52400644editdlrm
teachers.js.map1610644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/pages/themes/onlineRegistration.js (18733B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[283],{"3db3":function(t,r,e){"use strict";e.r(r);var a={components:{},data:function(){return{courses:[],genders:[],course_details:[],registrationForm:new Form({course_id:"",first_name:"",middle_name:"",last_name:"",email:"",date_of_birth:"",first_guardian_name:"",first_guardian_relation:"",second_guardian_name:"",second_guardian_relation:"",contact_number:"",first_guardian_contact_number_1:"",first_guardian_email:"",gender:"",address_line_1:"",address_line_2:"",city:"",state:"",zipcode:"",country:"",custom_values:[]}),selected_course:null,guardian_relations:[],custom_fields:[],custom_values:[],clearCustomField:!1,customFieldFormErrors:{}}},mounted:function(){var t=this;this.getConfig("online_registration")||this.$router.push("/dashboard");var r=this.$loading.show();axios.get("/api/frontend/online-registration/pre-requisite").then((function(e){t.genders=e.genders,t.courses=e.courses.courses,t.course_details=e.courses.course_details,t.custom_fields=e.custom_fields,t.guardian_relations=e.guardian_relations,r.hide()})).catch((function(t){r.hide(),helper.showErrorMsg(t)}))},methods:{getConfig:function(t){return helper.getConfig(t)},updateCustomValues:function(t){this.registrationForm.custom_values=t},submit:function(){var t=this,r=this.$loading.show();this.registrationForm.post("/api/frontend/online-registration").then((function(e){toastr.success(e.message),t.selected_course=null,t.clearCustomField=!0,r.hide()})).catch((function(e){r.hide(),t.customFieldFormErrors=e,helper.showErrorMsg(e)}))},onCourseSelect:function(t){this.registrationForm.course_id=t.id;var r=this.course_details.find((function(r){return r.course_id==t.id}));this.enable_registration_fee="undefined"!=r?r.enable_registration_fee:0,this.registration_fee=this.enable_registration_fee?r.registration_fee:0},formatCurrency:function(t){return helper.formatCurrency(t)}},filters:{moment:function(t){return helper.formatDate(t)},momentDateTime:function(t){return helper.formatDateTime(t)}}},s=(e("JVPd"),e("KHd+")),o=Object(s.a)(a,(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",[e("div",{staticClass:"page-title"},[e("div",{staticClass:"fix-width fix-width-mobile"},[e("h2",[t._v(t._s(t.trans("student.online_registration")))])])]),t._v(" "),e("div",{staticClass:"fix-width fix-width-mobile p-t-80"},[e("div",{staticClass:"page-body",domProps:{innerHTML:t._s(t.getConfig("online_registration_header"))}})]),t._v(" "),e("div",{staticClass:"fix-width fix-width-mobile p-t-80"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("form",{on:{submit:function(r){return r.preventDefault(),t.submit(r)},keydown:function(r){return t.registrationForm.errors.clear(r.target.name)}}},[e("h2",[t._v(t._s(t.trans("student.registration_field_info",{name:t.trans("academic.course")})))]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.course")))]),t._v(" "),e("v-select",{attrs:{label:"name","group-values":"courses","group-label":"course_group","group-select":!1,name:"course_id",id:"course_id",options:t.courses,placeholder:t.trans("academic.select_course")},on:{select:t.onCourseSelect,close:function(r){return t.registrationForm.errors.clear("course_id")},remove:function(r){t.registrationForm.course_id=""}},model:{value:t.selected_course,callback:function(r){t.selected_course=r},expression:"selected_course"}},[t.courses.length?t._e():e("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])]),t._v(" "),t.registrationForm.course_id&&t.enable_registration_fee&&t.registration_fee>=0?e("span",{staticClass:"help-block"},[t._v(t._s(t.trans("student.registration_fee"))+" "+t._s(t.formatCurrency(t.registration_fee)))]):t._e(),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"course_id"}})],1)])]),t._v(" "),e("h2",[t._v(t._s(t.trans("student.registration_field_info",{name:t.trans("student.student")})))]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.first_name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.first_name,expression:"registrationForm.first_name"}],staticClass:"form-control",attrs:{type:"text",name:"first_name",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.first_name},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"first_name",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"first_name"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.middle_name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.middle_name,expression:"registrationForm.middle_name"}],staticClass:"form-control",attrs:{type:"text",name:"middle_name",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.middle_name},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"middle_name",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"middle_name"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.last_name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.last_name,expression:"registrationForm.last_name"}],staticClass:"form-control",attrs:{type:"text",name:"last_name",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.last_name},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"last_name",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"last_name"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.gender")))]),t._v(" "),e("div",{staticClass:"radio radio-info p-l-0"},t._l(t.genders,(function(r){return e("div",{staticClass:"form-check form-check-inline "},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.gender,expression:"registrationForm.gender"}],staticClass:"form-check-input",attrs:{type:"radio",id:r.id,name:"gender"},domProps:{value:r.id,checked:t.registrationForm.gender==r.id,checked:t._q(t.registrationForm.gender,r.id)},on:{click:function(r){return t.registrationForm.errors.clear("gender")},change:function(e){return t.$set(t.registrationForm,"gender",r.id)}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:r.id}},[t._v(t._s(t.trans("list."+r.id)))])])})),0),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"gender"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.date_of_birth")))]),t._v(" "),e("datepicker",{attrs:{bootstrapStyling:!0,placeholder:t.trans("student.date_of_birth")},on:{selected:function(r){return t.registrationForm.errors.clear("date_of_birth")}},model:{value:t.registrationForm.date_of_birth,callback:function(r){t.$set(t.registrationForm,"date_of_birth",r)},expression:"registrationForm.date_of_birth"}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"date_of_birth"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.contact_number")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.contact_number,expression:"registrationForm.contact_number"}],staticClass:"form-control",attrs:{type:"text",name:"contact_number",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.contact_number},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"contact_number",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"contact_number"}})],1)])]),t._v(" "),e("h2",[t._v(t._s(t.trans("student.registration_field_info",{name:t.trans("student.guardian")})))]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-3"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.first_guardian_name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.first_guardian_name,expression:"registrationForm.first_guardian_name"}],staticClass:"form-control",attrs:{type:"text",name:"first_guardian_name",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.first_guardian_name},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"first_guardian_name",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"first_guardian_name"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-3"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("general.relation")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.first_guardian_relation,expression:"registrationForm.first_guardian_relation"}],staticClass:"custom-select col-12",attrs:{name:"first_guardian_relation"},on:{change:[function(r){var e=Array.prototype.filter.call(r.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.registrationForm,"first_guardian_relation",r.target.multiple?e:e[0])},function(r){return t.registrationForm.errors.clear("first_guardian_relation")}]}},[e("option",{attrs:{value:""}},[t._v(t._s(t.trans("general.select_one")))]),t._v(" "),t._l(t.guardian_relations,(function(r){return e("option",{domProps:{value:r.id}},[t._v("\n "+t._s(r.name)+"\n ")])}))],2),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"first_guardian_relation"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-3"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.first_guardian_email")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.first_guardian_email,expression:"registrationForm.first_guardian_email"}],staticClass:"form-control",attrs:{type:"text",name:"first_guardian_email",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.first_guardian_email},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"first_guardian_email",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"first_guardian_email"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-3"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.first_guardian_contact_number")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.first_guardian_contact_number_1,expression:"registrationForm.first_guardian_contact_number_1"}],staticClass:"form-control",attrs:{type:"text",name:"first_guardian_contact_number_1",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.first_guardian_contact_number_1},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"first_guardian_contact_number_1",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"first_guardian_contact_number_1"}})],1)])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-3"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.second_guardian_name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.second_guardian_name,expression:"registrationForm.second_guardian_name"}],staticClass:"form-control",attrs:{type:"text",name:"second_guardian_name",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.second_guardian_name},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"second_guardian_name",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"second_guardian_name"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-3"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.second_guardian_relation")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.second_guardian_relation,expression:"registrationForm.second_guardian_relation"}],staticClass:"custom-select col-12",attrs:{name:"second_guardian_relation"},on:{change:[function(r){var e=Array.prototype.filter.call(r.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.registrationForm,"second_guardian_relation",r.target.multiple?e:e[0])},function(r){return t.registrationForm.errors.clear("second_guardian_relation")}]}},[e("option",{attrs:{value:""}},[t._v(t._s(t.trans("general.select_one")))]),t._v(" "),t._l(t.guardian_relations,(function(r){return e("option",{domProps:{value:r.id}},[t._v("\n "+t._s(r.name)+"\n ")])}))],2),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"second_guardian_relation"}})],1)])]),t._v(" "),e("h2",[t._v(t._s(t.trans("student.registration_field_info",{name:t.trans("student.contact")})))]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.address_line_1")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.address_line_1,expression:"registrationForm.address_line_1"}],staticClass:"form-control",attrs:{type:"text",name:"address_line_1",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.address_line_1},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"address_line_1",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"address_line_1"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.address_line_2")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.address_line_2,expression:"registrationForm.address_line_2"}],staticClass:"form-control",attrs:{type:"text",name:"address_line_2",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.address_line_2},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"address_line_2",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"address_line_2"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.city")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.city,expression:"registrationForm.city"}],staticClass:"form-control",attrs:{type:"text",name:"city",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.city},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"city",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"city"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.state")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.state,expression:"registrationForm.state"}],staticClass:"form-control",attrs:{type:"text",name:"state",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.state},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"state",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"state"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.zipcode")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.zipcode,expression:"registrationForm.zipcode"}],staticClass:"form-control",attrs:{type:"text",name:"zipcode",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.zipcode},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"zipcode",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"zipcode"}})],1)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.country")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.registrationForm.country,expression:"registrationForm.country"}],staticClass:"form-control",attrs:{type:"text",name:"country",placeholder:t.trans("student.contact_name")},domProps:{value:t.registrationForm.country},on:{input:function(r){r.target.composing||t.$set(t.registrationForm,"country",r.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.registrationForm,"prop-name":"country"}})],1)])]),t._v(" "),e("custom-field",{attrs:{fields:t.custom_fields,customValues:t.custom_values,clear:t.clearCustomField,formErrors:t.customFieldFormErrors},on:{updateCustomValues:t.updateCustomValues}}),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-info btn-lg waves-effect waves-light m-t-10",attrs:{type:"submit"}},[t._v(t._s(t.trans("general.submit")))])])],1)])])])])}),[],!1,null,null,null);r.default=o.exports},JVPd:function(t,r,e){"use strict";var a=e("tm0o");e.n(a).a},KU81:function(t,r,e){(t.exports=e("I1BE")(!1)).push([t.i,'.contact-info-box .comma:before {\n content: ", ";\n}',""])},tm0o:function(t,r,e){var a=e("KU81");"string"==typeof a&&(a=[[t.i,a,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(a,s);a.locals&&(t.exports=a.locals)}}]); //# sourceMappingURL=onlineRegistration.js.map?id=74c67b52e403cd6a60c2