/
home
/
techb158
/
ileadtechnology.com
/
SSM
/
public
/
js
/
academic
/
batch
/
/home/techb158/ileadtechnology.com/SSM/public/js/academic/batch
mkdir
upload
Name
Size
Mode
Actions
edit~js/
-
0755
rm
edit.js
13781
0644
edit
dl
rm
edit.js.map
157
0644
edit
dl
rm
index.js
22506
0644
edit
dl
rm
index.js.map
150
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/SSM/public/js/academic/batch/index.js
(22506B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{LJqp:function(t,e,a){"use strict";var s={components:{},data:function(){return{batchForm:new Form({name:"",course_id:"",exam_grade_id:"",exam_observation_id:"",max_strength:"",roll_number_prefix:"",roll_number_digit:0,default_attendance_method:"",description:"",holidays_except:[]}),holiday:"",attendance_methods:[],courses:[],selected_course:null,exam_grades:[],selected_exam_grade:null,exam_observations:[],selected_exam_observation:null}},props:["id"],mounted:function(){helper.hasPermission("create-batch")||helper.hasPermission("edit-batch")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.id&&this.get(),this.getPreRequisite()},methods:{proceed:function(){this.id?this.update():this.store()},getPreRequisite:function(){var t=this,e=this.$loading.show();axios.get("/api/batch/pre-requisite").then((function(a){t.courses=a.courses,t.exam_grades=a.exam_grades,t.exam_observations=a.exam_observations,t.attendance_methods=a.attendance_methods,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},store:function(){var t=this,e=this.$loading.show();this.batchForm.post("/api/batch").then((function(a){toastr.success(a.message),t.selected_course=null,t.$emit("completed"),e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},get:function(){var t=this,e=this.$loading.show();axios.get("/api/batch/"+this.id).then((function(a){t.batchForm.name=a.batch.name,t.batchForm.course_id=a.batch.course_id,t.batchForm.exam_grade_id=a.batch.exam_grade_id,t.selected_exam_grade=a.batch.exam_grade_id?{id:a.batch.exam_grade_id,name:a.batch.grade.name}:null,t.batchForm.exam_observation_id=a.batch.exam_observation_id,t.selected_exam_observation=a.batch.exam_observation_id?{id:a.batch.exam_observation_id,name:a.batch.observation.name}:null,t.batchForm.description=a.batch.description,t.batchForm.max_strength=a.batch.options?a.batch.options.max_strength:helper.getConfig("default_max_strength_per_batch"),t.batchForm.default_attendance_method=a.batch.options?a.batch.options.default_attendance_method:"",t.batchForm.roll_number_prefix=a.batch.options?a.batch.options.roll_number_prefix:helper.getConfig("default_roll_number_prefix"),t.batchForm.roll_number_digit=a.batch.options&&a.batch.options.hasOwnProperty("roll_number_digit")?a.batch.options.roll_number_digit:0,t.selected_course=a.selected_course,t.batchForm.holidays_except=a.batch.options.holidays_except||[],e.hide()})).catch((function(a){e.hide(),helper.showErrorMsg(a),t.$router.push("/academic/batch")}))},update:function(){var t=this,e=this.$loading.show();this.batchForm.patch("/api/batch/"+this.id).then((function(a){toastr.success(a.message),e.hide(),t.batchForm.holidays_except=[],t.$router.push("/academic/batch")})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},onCourseSelect:function(t){return this.batchForm.course_id=t.id},onExamGradeSelect:function(t){return this.batchForm.exam_grade_id=t.id},onExamObservationSelect:function(t){return this.batchForm.exam_observation_id=t.id},onSelected:function(t){this.holiday="",t=helper.toDate(t),this.batchForm.holidays_except.indexOf(t)<0&&this.batchForm.holidays_except.push(t),this.batchForm.errors.clear("holidays_except"),this.holiday=""},remove:function(t){var e=this.batchForm.holidays_except.indexOf(t);e<0||(this.batchForm.holidays_except.splice(e,1),this.holiday="")}},filters:{momentWithDay:function(t){return helper.formatDateWithDay(t)}}},o=a("KHd+"),r=Object(o.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("form",{on:{submit:function(e){return e.preventDefault(),t.proceed(e)},keydown:function(e){return t.batchForm.errors.clear(e.target.name)}}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.batch_name")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.batchForm.name,expression:"batchForm.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",placeholder:t.trans("academic.batch_name")},domProps:{value:t.batchForm.name},on:{input:function(e){e.target.composing||t.$set(t.batchForm,"name",e.target.value)}}}),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"name"}})],1)]),t._v(" "),a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.course")))]),t._v(" "),a("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(e){return t.batchForm.errors.clear("course_id")},remove:function(e){t.batchForm.course_id=""}},model:{value:t.selected_course,callback:function(e){t.selected_course=e},expression:"selected_course"}},[t.courses.length?t._e():a("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])]),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"course_id"}})],1)]),t._v(" "),a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.max_strength")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.batchForm.max_strength,expression:"batchForm.max_strength"}],staticClass:"form-control",attrs:{type:"text",name:"max_strength",placeholder:t.trans("academic.max_strength")},domProps:{value:t.batchForm.max_strength},on:{input:function(e){e.target.composing||t.$set(t.batchForm,"max_strength",e.target.value)}}}),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"max_strength"}})],1)]),t._v(" "),a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-6"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.roll_number_prefix")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.batchForm.roll_number_prefix,expression:"batchForm.roll_number_prefix"}],staticClass:"form-control",attrs:{type:"text",name:"roll_number_prefix",placeholder:t.trans("academic.roll_number_prefix")},domProps:{value:t.batchForm.roll_number_prefix},on:{input:function(e){e.target.composing||t.$set(t.batchForm,"roll_number_prefix",e.target.value)}}}),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"roll_number_prefix"}})],1)]),t._v(" "),a("div",{staticClass:"col-12 col-sm-6"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.roll_number_digit")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.batchForm.roll_number_digit,expression:"batchForm.roll_number_digit"}],staticClass:"form-control",attrs:{type:"text",name:"roll_number_digit",placeholder:t.trans("academic.roll_number_digit")},domProps:{value:t.batchForm.roll_number_digit},on:{input:function(e){e.target.composing||t.$set(t.batchForm,"roll_number_digit",e.target.value)}}}),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"roll_number_digit"}})],1)])])]),t._v(" "),a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("student.default_attendance_method")))]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.batchForm.default_attendance_method,expression:"batchForm.default_attendance_method"}],staticClass:"custom-select col-12",attrs:{name:"default_attendance_method"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.batchForm,"default_attendance_method",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"",selected:""}},[t._v(t._s(t.trans("general.select_one")))]),t._v(" "),t._l(t.attendance_methods,(function(e){return a("option",{domProps:{value:e.value}},[t._v("\n "+t._s(e.text)+"\n ")])}))],2),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"default_attendance_method"}})],1)]),t._v(" "),a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.batch_description")))]),t._v(" "),a("autosize-textarea",{attrs:{rows:"1",name:"description",placeholder:t.trans("academic.batch_description")},model:{value:t.batchForm.description,callback:function(e){t.$set(t.batchForm,"description",e)},expression:"batchForm.description"}}),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"description"}})],1)])]),t._v(" "),t.exam_observations.length?[a("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("exam.configuration")))]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("exam.grade"))+" ("+t._s(t.trans("exam.observation"))+")")]),t._v(" "),a("v-select",{attrs:{label:"name",name:"exam_grade_id",id:"exam_grade_id",options:t.exam_grades,placeholder:t.trans("exam.select_grade")},on:{select:t.onExamGradeSelect,close:function(e){return t.batchForm.errors.clear("exam_grade_id")},remove:function(e){t.batchForm.exam_grade_id=""}},model:{value:t.selected_exam_grade,callback:function(e){t.selected_exam_grade=e},expression:"selected_exam_grade"}},[t.exam_grades.length?t._e():a("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])]),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"exam_grade_id"}})],1)]),t._v(" "),a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[t._v(t._s(t.trans("exam.observation")))]),t._v(" "),a("v-select",{attrs:{label:"name",name:"exam_observation_id",id:"exam_observation_id",options:t.exam_observations,placeholder:t.trans("exam.select_observation")},on:{select:t.onExamObservationSelect,close:function(e){return t.batchForm.errors.clear("exam_observation_id")},remove:function(e){t.batchForm.exam_observation_id=""}},model:{value:t.selected_exam_observation,callback:function(e){t.selected_exam_observation=e},expression:"selected_exam_observation"}},[t.exam_observations.length?t._e():a("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])]),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"exam_observation_id"}})],1)])])]:t._e(),t._v(" "),t.id?[a("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("calendar.holiday_configuration")))]),t._v(" "),a("p",{staticClass:"alert alert-info"},[t._v(t._s(t.trans("academic.batch_holiday_except_date_tip")))]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("datepicker",{attrs:{bootstrapStyling:!0},on:{selected:t.onSelected},model:{value:t.holiday,callback:function(e){t.holiday=e},expression:"holiday"}}),t._v(" "),a("show-error",{attrs:{"form-name":t.batchForm,"prop-name":"dates"}})],1)]),t._v(" "),a("div",{staticClass:"col-12 col-sm-9"},[a("div",{staticClass:"form-group"},t._l(t.batchForm.holidays_except,(function(e){return a("span",{staticClass:"label label-info m-r-10 m-b-10 p-10"},[t._v("\n "+t._s(t._f("momentWithDay")(e))+" "),a("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("general.remove"),expression:"trans('general.remove')"}],staticClass:"fas fa-times-circle cursor",on:{click:function(a){return t.remove(e)}}})])})),0)])])]:t._e(),t._v(" "),a("div",{staticClass:"card-footer text-right"},[a("router-link",{directives:[{name:"show",rawName:"v-show",value:t.id,expression:"id"}],staticClass:"btn btn-danger waves-effect waves-light ",attrs:{to:"/academic/batch"}},[t._v(t._s(t.trans("general.cancel")))]),t._v(" "),t.id?t._e():a("button",{staticClass:"btn btn-danger waves-effect waves-light ",attrs:{type:"button"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.trans("general.cancel")))]),t._v(" "),a("button",{staticClass:"btn btn-info waves-effect waves-light",attrs:{type:"submit"}},[t.id?a("span",[t._v(t._s(t.trans("general.update")))]):a("span",[t._v(t._s(t.trans("general.save")))])])],1)],2)}),[],!1,null,null,null);e.a=r.exports},rPbp:function(t,e,a){"use strict";a.r(e);var s={components:{batchForm:a("LJqp").a},data:function(){return{batches:{total:0,data:[]},filter:{sort_by:"name",order:"asc",course_id:[],page_length:helper.getConfig("page_length")},orderByOptions:[{value:"name",translation:i18n.academic.batch_name}],courses:[],selected_courses:null,showFilterPanel:!1,showCreatePanel:!1,help_topic:""}},mounted:function(){helper.hasPermission("list-batch")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getBatches(),helper.showDemoNotification(["academic"])},methods:{hasPermission:function(t){return helper.hasPermission(t)},getBatches:function(t){var e=this,a=this.$loading.show();"number"!=typeof t&&(t=1);var s=helper.getFilterURL(this.filter);axios.get("/api/batch?page="+t+s).then((function(t){e.batches=t.batches,e.courses=t.filters.courses,a.hide()})).catch((function(t){a.hide(),helper.showErrorMsg(t)}))},editBatch:function(t){this.$router.push("/academic/batch/"+t.id+"/edit")},confirmDelete:function(t){var e=this;return function(a){return e.deleteBatch(t)}},deleteBatch:function(t){var e=this,a=this.$loading.show();axios.delete("/api/batch/"+t.id).then((function(t){toastr.success(t.message),e.getBatches(),a.hide()})).catch((function(t){a.hide(),helper.showErrorMsg(t)}))},getConfig:function(t){return helper.getConfig(t)},print:function(){var t=this.$loading.show();axios.post("/api/batch/print",{filter:this.filter}).then((function(e){var a=window.open("/print");t.hide(),a.document.write(e)})).catch((function(e){t.hide(),helper.showErrorMsg(e)}))},pdf:function(){var t=this,e=this.$loading.show();axios.post("/api/batch/pdf",{filter:this.filter}).then((function(a){e.hide(),window.open("/download/report/"+a+"?token="+t.authToken)})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},onCourseSelect:function(t){this.filter.course_id.push(t.id)},onCourseRemove:function(t){this.filter.course_id.splice(this.filter.course_id.indexOf(t.id),1)}},filters:{moment:function(t){return helper.formatDate(t)},momentDateTime:function(t){return helper.formatDateTime(t)}},watch:{"filter.sort_by":function(t){this.getBatches()},"filter.order":function(t){this.getBatches()},"filter.page_length":function(t){this.getBatches()}},computed:{authToken:function(){return helper.getAuthToken()}}},o=a("KHd+"),r=Object(o.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"page-titles"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-6"},[a("h3",{staticClass:"text-themecolor"},[t._v(t._s(t.trans("academic.batch"))+" \n "),t.batches.total?a("span",{staticClass:"card-subtitle d-none d-sm-inline"},[t._v(t._s(t.trans("general.total_result_found",{count:t.batches.total,from:t.batches.from,to:t.batches.to})))]):a("span",{staticClass:"card-subtitle d-none d-sm-inline"},[t._v(t._s(t.trans("general.no_result_found")))])])]),t._v(" "),a("div",{staticClass:"col-12 col-sm-6"},[a("div",{staticClass:"action-buttons pull-right"},[t.batches.total&&!t.showCreatePanel&&t.hasPermission("create-batch")?a("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("general.add_new"),expression:"trans('general.add_new')"}],staticClass:"btn btn-info btn-sm",on:{click:function(e){t.showCreatePanel=!t.showCreatePanel}}},[a("i",{staticClass:"fas fa-plus"}),t._v(" "),a("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("academic.add_new_batch")))])]):t._e(),t._v(" "),t.showFilterPanel?t._e():a("button",{staticClass:"btn btn-info btn-sm",on:{click:function(e){t.showFilterPanel=!t.showFilterPanel}}},[a("i",{staticClass:"fas fa-filter"}),t._v(" "),a("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("general.filter")))])]),t._v(" "),a("sort-by",{attrs:{"order-by-options":t.orderByOptions,"sort-by":t.filter.sort_by,order:t.filter.order},on:{updateSortBy:function(e){t.filter.sort_by=e},updateOrder:function(e){t.filter.order=e}}}),t._v(" "),a("div",{staticClass:"btn-group"},[a("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("general.more_option"),expression:"trans('general.more_option')"}],staticClass:"btn btn-info btn-sm dropdown-toggle no-caret ",attrs:{type:"button",role:"menu",id:"moreOption","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[a("i",{staticClass:"fas fa-ellipsis-h"}),t._v(" "),a("span",{staticClass:"d-none d-sm-inline"})]),t._v(" "),a("div",{class:["dropdown-menu","ltr"==t.getConfig("direction")?"dropdown-menu-right":""],attrs:{"aria-labelledby":"moreOption"}},[a("button",{staticClass:"dropdown-item custom-dropdown",on:{click:t.print}},[a("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.trans("general.print")))]),t._v(" "),a("button",{staticClass:"dropdown-item custom-dropdown",on:{click:t.pdf}},[a("i",{staticClass:"fas fa-file-pdf"}),t._v(" "+t._s(t.trans("general.generate_pdf")))])])]),t._v(" "),a("help-button",{on:{clicked:function(e){t.help_topic="academic.batch"}}})],1)])])]),t._v(" "),a("div",{staticClass:"container-fluid"},[a("transition",{attrs:{name:"fade"}},[t.showFilterPanel?a("div",{staticClass:"card card-form"},[a("div",{staticClass:"card-body"},[a("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("general.filter")))]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("v-select",{attrs:{label:"name","track-by":"id","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"),multiple:!0,"close-on-select":!1,"clear-on-select":!1,"hide-selected":!0,selected:t.selected_courses},on:{select:t.onCourseSelect,remove:t.onCourseRemove},model:{value:t.selected_courses,callback:function(e){t.selected_courses=e},expression:"selected_courses"}},[t.courses.length?t._e():a("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])])],1)])]),t._v(" "),a("div",{staticClass:"card-footer text-right"},[a("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){t.showFilterPanel=!1}}},[t._v(t._s(t.trans("general.cancel")))]),t._v(" "),a("button",{staticClass:"btn btn-info waves-effect waves-light",attrs:{type:"button"},on:{click:t.getBatches}},[t._v(t._s(t.trans("general.filter")))])])])]):t._e()]),t._v(" "),t.hasPermission("create-batch")?a("transition",{attrs:{name:"fade"}},[t.showCreatePanel?a("div",{staticClass:"card card-form"},[a("div",{staticClass:"card-body"},[a("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("academic.add_new_batch")))]),t._v(" "),a("batch-form",{on:{completed:t.getBatches,cancel:function(e){t.showCreatePanel=!t.showCreatePanel}}})],1)]):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"card"},[a("div",{staticClass:"card-body"},[t.batches.total?a("div",{staticClass:"table-responsive"},[a("table",{staticClass:"table table-sm"},[a("thead",[a("tr",[a("th",[t._v(t._s(t.trans("academic.batch_name")))]),t._v(" "),a("th",[t._v(t._s(t.trans("academic.course")))]),t._v(" "),a("th",[t._v(t._s(t.trans("academic.max_strength")))]),t._v(" "),a("th",[t._v(t._s(t.trans("academic.current_strength")))]),t._v(" "),a("th",[t._v(t._s(t.trans("academic.roll_number_prefix")))]),t._v(" "),a("th",[t._v(t._s(t.trans("academic.batch_description")))]),t._v(" "),a("th",{staticClass:"table-option"},[t._v(t._s(t.trans("general.action")))])])]),t._v(" "),a("tbody",t._l(t.batches.data,(function(e){return a("tr",[a("td",{domProps:{textContent:t._s(e.name)}}),t._v(" "),a("td",{domProps:{textContent:t._s(e.course.name)}}),t._v(" "),a("td",{domProps:{textContent:t._s(e.options?e.options.max_strength:t.getConfig("default_max_strength_per_batch"))}}),t._v(" "),a("td",{domProps:{textContent:t._s(e.student_records_count)}}),t._v(" "),a("td",{domProps:{textContent:t._s(e.options?e.options.roll_number_prefix:t.getConfig("default_roll_number_prefix"))}}),t._v(" "),a("td",{domProps:{textContent:t._s(e.description)}}),t._v(" "),a("td",{staticClass:"table-option"},[a("div",{staticClass:"btn-group"},[t.hasPermission("edit-batch")?a("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("academic.edit_batch"),expression:"trans('academic.edit_batch')"}],staticClass:"btn btn-info btn-sm",on:{click:function(a){return a.preventDefault(),t.editBatch(e)}}},[a("i",{staticClass:"fas fa-edit"})]):t._e(),t._v(" "),t.hasPermission("delete-batch")?a("button",{directives:[{name:"confirm",rawName:"v-confirm",value:{ok:t.confirmDelete(e)},expression:"{ok: confirmDelete(batch)}"},{name:"tooltip",rawName:"v-tooltip",value:t.trans("academic.delete_batch"),expression:"trans('academic.delete_batch')"}],key:e.id,staticClass:"btn btn-danger btn-sm"},[a("i",{staticClass:"fas fa-trash"})]):t._e()])])])})),0)])]):t._e(),t._v(" "),t.batches.total?t._e():a("module-info",{attrs:{module:"academic",title:"batch_module_title",description:"batch_module_description",icon:"list"}},[a("div",{attrs:{slot:"btn"},slot:"btn"},[!t.showCreatePanel&&t.hasPermission("create-batch")?a("button",{staticClass:"btn btn-info btn-md",on:{click:function(e){t.showCreatePanel=!t.showCreatePanel}}},[a("i",{staticClass:"fas fa-plus"}),t._v(" "+t._s(t.trans("general.add_new")))]):t._e()])]),t._v(" "),a("pagination-record",{attrs:{"page-length":t.filter.page_length,records:t.batches},on:{"update:pageLength":function(e){return t.$set(t.filter,"page_length",e)},"update:page-length":function(e){return t.$set(t.filter,"page_length",e)},updateRecords:t.getBatches}})],1)])],1),t._v(" "),a("right-panel",{attrs:{topic:t.help_topic}})],1)}),[],!1,null,null,null);e.default=r.exports}}]); //# sourceMappingURL=index.js.map?id=0b1d4db074cdd2652591
Save
cmd:
run