/home/techb158/ileadtechnology.com/SSM/public/js/resource/syllabus
NameSizeModeActions
create~js/-0755rm
create.js145420644editdlrm
create.js.map1670644editdlrm
edit.js145420644editdlrm
edit.js.map1630644editdlrm
index.js277450644editdlrm
index.js.map1560644editdlrm
show.js40020644editdlrm
show.js.map1630644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/resource/syllabus/index.js (27745B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[322,323],{B1vP:function(t,e,s){"use strict";s.r(e);var a={components:{},props:["uuid","url"],mounted:function(){this.uuid&&this.get()},data:function(){return{syllabus:[],attachments:[]}},methods:{get:function(){var t=this,e=this.$loading.show();axios.get("/api/syllabus/"+this.uuid).then((function(s){t.syllabus=s.syllabus,t.attachments=s.attachments,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getEmployeeName:function(t){return helper.getEmployeeName(t)},getEmployeeDesignation:function(t,e){return helper.getEmployeeDesignation(t,e)}},computed:{authToken:function(){return helper.getAuthToken()}},filters:{momentDateTime:function(t){return helper.formatDateTime(t)},moment:function(t){return helper.formatDate(t)}}},l=s("KHd+"),i=Object(l.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("transition",{attrs:{name:"modal"}},[s("div",{staticClass:"modal-mask"},[s("div",{staticClass:"modal-wrapper"},[s("div",{staticClass:"modal-container modal-lg"},[t.syllabus.id?s("div",{staticClass:"modal-header"},[t._t("header",[s("span",[t._v(t._s(t.syllabus.title)+" "+t._s(t.syllabus.subject.name+" ("+t.syllabus.subject.code+")")+" "+t._s(t.syllabus.subject.batch.course.name+" "+t.syllabus.subject.batch.name)+" ")]),t._v(" "),s("span",{staticClass:"float-right pointer",on:{click:function(e){return t.$emit("close")}}},[t._v("x")])])],2):t._e(),t._v(" "),t.syllabus.id?s("div",{staticClass:"modal-body"},[t._t("body",[s("h6",{staticClass:"card-title"},[t.syllabus.employee?s("p",{staticClass:"pull-right"},[s("strong",[t._v(t._s(t.trans("resource.syllabus_created_by"))+":")]),t._v(" "+t._s(t.getEmployeeName(t.syllabus.employee))+" "+t._s(t.getEmployeeDesignation(t.syllabus.employee,t.syllabus.start_date))+"\n ")]):t._e()]),t._v(" "),t._l(t.syllabus.syllabus_details,(function(e){return s("div",{staticClass:"m-t-20"},[s("h6",{staticClass:"card-title"},[t._v(t._s(e.title))]),t._v(" "),s("p",{staticClass:"font-90pc",domProps:{textContent:t._s(e.description)}}),t._v(" "),t.$last(e,t.syllabus.syllabus_details)?t._e():s("hr")])})),t._v(" "),t.syllabus.syllabus_topics.length?s("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("resource.syllabus_topic")))]):t._e(),t._v(" "),t._l(t.syllabus.syllabus_topics,(function(e){return s("div",{staticClass:"m-t-20"},[s("h6",{staticClass:"card-title"},[t._v(t._s(e.title)+"\n "),s("strong",[t._v(t._s(t.trans("resource.syllabus_topic_start_date"))+": ")]),t._v(" "+t._s(t._f("moment")(e.start_date))+"\n "),s("br"),t._v(" "),s("strong",[t._v(t._s(t.trans("resource.syllabus_topic_end_date"))+": ")]),t._v(" "+t._s(t._f("moment")(e.end_date))+"\n ")]),t._v(" "),s("p",{staticClass:"font-90pc",domProps:{textContent:t._s(e.description)}}),t._v(" "),t.$last(e,t.syllabus.syllabus_topics)?t._e():s("hr")])})),t._v(" "),t.attachments.length?s("div",[s("ul",{staticClass:"m-t-10 upload-file-list"},t._l(t.attachments,(function(e){return s("li",{staticClass:"upload-file-list-item"},[s("a",{staticClass:"no-link-color",attrs:{href:"/resource/syllabus/"+t.syllabus.uuid+"/attachment/"+e.uuid+"/download?token="+t.authToken}},[s("i",{class:["file-icon","fas","fa-lg",e.file_info.icon]}),t._v(" "),s("span",{staticClass:"upload-file-list-item-size"},[t._v(t._s(e.file_info.size))]),t._v(" "+t._s(e.user_filename))])])})),0)]):t._e(),t._v(" "),s("hr"),t._v(" "),s("p",[s("i",{staticClass:"far fa-clock"}),t._v(" "),s("small",[t._v(t._s(t.trans("general.created_at"))+" "+t._s(t._f("momentDateTime")(t.syllabus.created_at)))]),t._v(" "),s("span",{staticClass:"pull-right"},[s("i",{staticClass:"far fa-clock"}),t._v(" "),s("small",[t._v(t._s(t.trans("general.updated_at"))+" "+t._s(t._f("momentDateTime")(t.syllabus.updated_at)))])])])])],2):t._e()])])])])}),[],!1,null,null,null);e.default=i.exports},K1FW:function(t,e,s){"use strict";s.r(e);var a=s("UlKi"),l=s("B1vP"),i={components:{syllabusForm:a.a,syllabusDetail:l.default},data:function(){return{syllabuses:{total:0,data:[]},filter:{sort_by:"created_at",order:"desc",topic:"",batch_id:[],page_length:helper.getConfig("page_length")},orderByOptions:[{value:"created_at",translation:i18n.general.created_at}],batches:[],selected_batches:null,showFilterPanel:!1,showCreatePanel:!1,help_topic:"",showUuid:"",showModal:!1}},mounted:function(){helper.hasPermission("list-syllabus")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getSyllabuses(),helper.showDemoNotification(["resource"])},methods:{hasPermission:function(t){return helper.hasPermission(t)},showAction:function(t){this.showUuid=t.uuid,this.showModal=!0},getEmployeeName:function(t){return helper.getEmployeeName(t)},getEmployeeDesignationOnDate:function(t,e){return helper.getEmployeeDesignationOnDate(t,e)},getSyllabuses:function(t){var e=this,s=this.$loading.show();"number"!=typeof t&&(t=1);var a=helper.getFilterURL(this.filter);axios.get("/api/syllabus?page="+t+a).then((function(t){e.syllabuses=t.syllabuses,e.batches=t.filters.batches,s.hide()})).catch((function(t){s.hide(),helper.showErrorMsg(t)}))},editSyllabus:function(t){this.$router.push("/resource/syllabus/"+t.uuid+"/edit")},confirmDelete:function(t){var e=this;return function(s){return e.deleteSyllabus(t)}},deleteSyllabus:function(t){var e=this,s=this.$loading.show();axios.delete("/api/syllabus/"+t.uuid).then((function(t){toastr.success(t.message),e.getSyllabuses(),s.hide()})).catch((function(t){s.hide(),helper.showErrorMsg(t)}))},getConfig:function(t){return helper.getConfig(t)},print:function(){var t=this.$loading.show();axios.post("/api/syllabus/print",{filter:this.filter}).then((function(e){var s=window.open("/print");t.hide(),s.document.write(e)})).catch((function(e){t.hide(),helper.showErrorMsg(e)}))},pdf:function(){var t=this,e=this.$loading.show();axios.post("/api/syllabus/pdf",{filter:this.filter}).then((function(s){e.hide(),window.open("/download/report/"+s+"?token="+t.authToken)})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},onBatchSelect:function(t){this.filter.batch_id.push(t.id)},onBatchRemove:function(t){this.filter.batch_id.splice(this.filter.batch_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.getSyllabuses()},"filter.order":function(t){this.getSyllabuses()},"filter.page_length":function(t){this.getSyllabuses()}},computed:{authToken:function(){return helper.getAuthToken()}}},o=s("KHd+"),r=Object(o.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"page-titles"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-6"},[s("h3",{staticClass:"text-themecolor"},[t._v(t._s(t.trans("resource.syllabus"))+" \n "),t.syllabuses.total?s("span",{staticClass:"card-subtitle d-none d-sm-inline"},[t._v(t._s(t.trans("general.total_result_found",{count:t.syllabuses.total,from:t.syllabuses.from,to:t.syllabuses.to})))]):s("span",{staticClass:"card-subtitle d-none d-sm-inline"},[t._v(t._s(t.trans("general.no_result_found")))])])]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"action-buttons pull-right"},[t.syllabuses.total&&t.hasPermission("create-syllabus")?s("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){return t.$router.push("/resource/syllabus/create")}}},[s("i",{staticClass:"fas fa-plus"}),t._v(" "),s("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("resource.add_new_syllabus")))])]):t._e(),t._v(" "),t.showFilterPanel?t._e():s("button",{staticClass:"btn btn-info btn-sm",on:{click:function(e){t.showFilterPanel=!t.showFilterPanel}}},[s("i",{staticClass:"fas fa-filter"}),t._v(" "),s("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("general.filter")))])]),t._v(" "),s("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(" "),s("div",{staticClass:"btn-group"},[s("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"}},[s("i",{staticClass:"fas fa-ellipsis-h"}),t._v(" "),s("span",{staticClass:"d-none d-sm-inline"})]),t._v(" "),s("div",{class:["dropdown-menu","ltr"==t.getConfig("direction")?"dropdown-menu-right":""],attrs:{"aria-labelledby":"moreOption"}},[s("button",{staticClass:"dropdown-item custom-dropdown",on:{click:t.print}},[s("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.trans("general.print")))]),t._v(" "),s("button",{staticClass:"dropdown-item custom-dropdown",on:{click:t.pdf}},[s("i",{staticClass:"fas fa-file-pdf"}),t._v(" "+t._s(t.trans("general.generate_pdf")))])])]),t._v(" "),s("help-button",{on:{clicked:function(e){t.help_topic="resource.syllabus"}}})],1)])])]),t._v(" "),s("div",{staticClass:"container-fluid"},[s("transition",{attrs:{name:"fade"}},[t.showFilterPanel?s("div",{staticClass:"card card-form"},[s("div",{staticClass:"card-body"},[s("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("general.filter")))]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-3"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.batch")))]),t._v(" "),s("v-select",{attrs:{label:"name","track-by":"id","group-values":"batches","group-label":"course_group","group-select":!1,name:"batch_id",id:"batch_id",options:t.batches,placeholder:t.trans("academic.select_batch"),multiple:!0,"close-on-select":!1,"clear-on-select":!1,"hide-selected":!0,selected:t.selected_batches},on:{select:t.onBatchSelect,remove:t.onBatchRemove},model:{value:t.selected_batches,callback:function(e){t.selected_batches=e},expression:"selected_batches"}},[t.batches.length?t._e():s("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])])],1)])]),t._v(" "),s("div",{staticClass:"card-footer text-right"},[s("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(" "),s("button",{staticClass:"btn btn-info waves-effect waves-light",attrs:{type:"button"},on:{click:t.getSyllabuses}},[t._v(t._s(t.trans("general.filter")))])])])]):t._e()]),t._v(" "),s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[t.syllabuses.total?s("div",{staticClass:"table-responsive"},[s("table",{staticClass:"table table-sm"},[s("thead",[s("tr",[s("th",[t._v(t._s(t.trans("academic.subject")))]),t._v(" "),s("th",[t._v(t._s(t.trans("academic.batch")))]),t._v(" "),s("th",[t._v(t._s(t.trans("resource.syllabus_title")))]),t._v(" "),s("th",[t._v(t._s(t.trans("resource.syllabus_created_by")))]),t._v(" "),s("th",[t._v(t._s(t.trans("general.created_at")))]),t._v(" "),s("th",{staticClass:"table-option"},[t._v(t._s(t.trans("general.action")))])])]),t._v(" "),s("tbody",t._l(t.syllabuses.data,(function(e){return s("tr",[s("td",{domProps:{textContent:t._s(e.subject.name+" ("+e.subject.code+")")}}),t._v(" "),s("td",{domProps:{textContent:t._s(e.subject.batch.course.name+" "+e.subject.batch.name)}}),t._v(" "),s("td",{domProps:{textContent:t._s(e.title)}}),t._v(" "),s("td",[t._v(t._s(t.getEmployeeName(e.employee))+" "),s("br"),t._v(" "+t._s(t.getEmployeeDesignationOnDate(e.employee,e.start_date)))]),t._v(" "),s("td",[t._v(t._s(t._f("momentDateTime")(e.created_at)))]),t._v(" "),s("td",{staticClass:"table-option"},[s("div",{staticClass:"btn-group"},[s("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("general.print"),expression:"trans('general.print')"}],staticClass:"btn btn-secondary btn-sm",attrs:{target:"_blank",href:"/resource/syllabus/"+e.uuid+"/print?token="+t.authToken}},[s("i",{staticClass:"fas fa-print"})]),t._v(" "),s("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("resource.view_syllabus"),expression:"trans('resource.view_syllabus')"}],staticClass:"btn btn-success btn-sm",on:{click:function(s){return s.preventDefault(),t.showAction(e)}}},[s("i",{staticClass:"fas fa-arrow-circle-right"})]),t._v(" "),t.hasPermission("edit-syllabus")?s("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("resource.edit_syllabus"),expression:"trans('resource.edit_syllabus')"}],staticClass:"btn btn-info btn-sm",on:{click:function(s){return s.preventDefault(),t.editSyllabus(e)}}},[s("i",{staticClass:"fas fa-edit"})]):t._e(),t._v(" "),t.hasPermission("delete-syllabus")?s("button",{directives:[{name:"confirm",rawName:"v-confirm",value:{ok:t.confirmDelete(e)},expression:"{ok: confirmDelete(syllabus)}"},{name:"tooltip",rawName:"v-tooltip",value:t.trans("resource.delete_syllabus"),expression:"trans('resource.delete_syllabus')"}],key:e.id,staticClass:"btn btn-danger btn-sm"},[s("i",{staticClass:"fas fa-trash"})]):t._e()])])])})),0)])]):t._e(),t._v(" "),t.syllabuses.total?t._e():s("module-info",{attrs:{module:"resource",title:"syllabus_module_title",description:"syllabus_module_description",icon:"list"}},[s("div",{attrs:{slot:"btn"},slot:"btn"},[t.hasPermission("create-syllabus")?s("button",{staticClass:"btn btn-info btn-md",on:{click:function(e){return t.$router.push("/resource/syllabus/create")}}},[s("i",{staticClass:"fas fa-plus"}),t._v(" "+t._s(t.trans("general.add_new")))]):t._e()])]),t._v(" "),s("pagination-record",{attrs:{"page-length":t.filter.page_length,records:t.syllabuses},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.getSyllabuses}})],1)])],1),t._v(" "),t.showModal?s("syllabus-detail",{attrs:{uuid:t.showUuid},on:{close:function(e){t.showModal=!1}}}):t._e(),t._v(" "),s("right-panel",{attrs:{topic:t.help_topic}})],1)}),[],!1,null,null,null);e.default=r.exports},Q4oE:function(t,e,s){"use strict";var a=s("cS9s");s.n(a).a},UlKi:function(t,e,s){"use strict";var a={components:{},data:function(){return{syllabusForm:new Form({title:"",description:"",batch_id:"",subject_id:"",details:[],topics:[],upload_token:""}),batches:[],selected_batch:null,subjects:[],selected_subject:null,subject_detail:[],module_id:"",clearAttachment:!0}},props:["uuid"],mounted:function(){helper.hasPermission("create-syllabus")||helper.hasPermission("edit-syllabus")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.uuid?this.get():(this.addDetailRow(),this.addTopicRow(),this.syllabusForm.upload_token=this.$uuid.v4()),this.getPreRequisite()},methods:{hasPermission:function(t){return helper.hasPermission(t)},addDetailRow:function(){this.syllabusForm.details.push({title:"",description:""})},confirmDeleteDetail:function(t){var e=this;return function(s){return e.deleteDetail(t)}},deleteDetail:function(t){this.syllabusForm.details.splice(t,1)},getDetailTitleName:function(t){return t+"_detail_title"},getDetailDescriptionName:function(t){return t+"_detail_description"},addTopicRow:function(){this.syllabusForm.topics.push({title:"",start_date:"",end_date:"",description:""})},confirmDeleteTopic:function(t){var e=this;return function(s){return e.deleteTopic(t)}},deleteTopic:function(t){this.syllabusForm.topics.splice(t,1)},getTopicTitleName:function(t){return t+"_topic_title"},getTopicDescriptionName:function(t){return t+"_topic_description"},getTopicStartDateName:function(t){return t+"_topic_start_date"},getTopicEndDateName:function(t){return t+"_topic_end_date"},getPreRequisite:function(){var t=this,e=this.$loading.show();axios.get("/api/syllabus/pre-requisite").then((function(s){t.batches=s.batches,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getSubjects:function(){var t=this;this.uuid||(this.syllabusForm.subject_id="",this.selected_subject=null);var e=this.$loading.show();axios.post("/api/batch/"+this.syllabusForm.batch_id+"/subjects").then((function(s){t.subjects=s.subjects,t.subject_details=s.subject_details,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},proceed:function(){this.uuid?this.update():this.store()},store:function(){var t=this,e=this.$loading.show();this.syllabusForm.post("/api/syllabus").then((function(s){toastr.success(s.message),t.clearAttachment=!t.clearAttachment,t.syllabusForm.upload_token=t.$uuid.v4(),t.selected_batch=null,t.selected_subject=null,t.syllabusForm.details=[],t.syllabusForm.topics=[],t.addRow(),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/syllabus/"+this.uuid).then((function(s){var a=s.syllabus;t.syllabusForm.title=a.title,t.syllabusForm.description=a.description,t.syllabusForm.batch_id=a.subject.batch_id,t.syllabusForm.subject_id=a.subject_id,t.selected_batch=t.syllabusForm.batch_id?{id:a.subject.batch_id,name:a.subject.batch.course.name+" "+a.subject.batch.name}:null,t.selected_subject=a.subject_id?{id:a.subject_id,name:a.subject.name+" ("+a.subject.code+")"}:null,t.syllabusForm.upload_token=a.upload_token,a.syllabus_details.forEach((function(e){t.syllabusForm.details.push({title:e.title,description:e.description})})),a.syllabus_topics.forEach((function(e){t.syllabusForm.topics.push({title:e.title,start_date:e.start_date,end_date:e.end_date,description:e.description})})),t.module_id=a.id,e.hide()})).catch((function(s){e.hide(),helper.showErrorMsg(s),t.$router.push("/resource/syllabus")}))},update:function(){var t=this,e=this.$loading.show();this.syllabusForm.patch("/api/syllabus/"+this.uuid).then((function(s){toastr.success(s.message),e.hide(),t.$router.push("/resource/syllabus")})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},onBatchSelect:function(t){this.syllabusForm.batch_id=t.id},onSubjectSelect:function(t){this.syllabusForm.subject_id=t.id}},watch:{"syllabusForm.batch_id":function(t){t&&this.getSubjects()}}},l=(s("Q4oE"),s("KHd+")),i=Object(l.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("form",{on:{submit:function(e){return e.preventDefault(),t.proceed(e)},keydown:function(e){return t.syllabusForm.errors.clear(e.target.name)}}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-3"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.batch"))+" ")]),t._v(" "),s("v-select",{attrs:{label:"name","group-values":"batches","group-label":"course_group","group-select":!1,name:"batch_id",id:"batch_id",options:t.batches,placeholder:t.trans("academic.select_batch")},on:{select:t.onBatchSelect,close:function(e){return t.syllabusForm.errors.clear("batch_id")},remove:function(e){t.syllabusForm.batch_id=""}},model:{value:t.selected_batch,callback:function(e){t.selected_batch=e},expression:"selected_batch"}},[t.batches.length?t._e():s("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])]),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":"batch_id"}})],1)]),t._v(" "),s("div",{staticClass:"col-12 col-sm-3"},[t.syllabusForm.batch_id?s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("academic.subject"))+" ")]),t._v(" "),s("v-select",{attrs:{label:"name",name:"subject_id",id:"subject_id",options:t.subjects,placeholder:t.trans("resource.select_subject")},on:{select:t.onSubjectSelect,close:function(e){return t.syllabusForm.errors.clear("subject_id")},remove:function(e){t.syllabusForm.subject_id=""}},model:{value:t.selected_subject,callback:function(e){t.selected_subject=e},expression:"selected_subject"}},[t.subjects.length?t._e():s("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])]),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":"subject_id"}})],1):t._e()]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.syllabus_title")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.syllabusForm.title,expression:"syllabusForm.title"}],staticClass:"form-control",attrs:{type:"text",name:"title",placeholder:t.trans("resource.syllabus_title")},domProps:{value:t.syllabusForm.title},on:{input:function(e){e.target.composing||t.$set(t.syllabusForm,"title",e.target.value)}}}),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":"title"}})],1)]),t._v(" "),s("div",{staticClass:"col-12"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.syllabus_description")))]),t._v(" "),s("autosize-textarea",{attrs:{rows:"2",name:"description",placeholder:t.trans("resource.syllabus_description")},model:{value:t.syllabusForm.description,callback:function(e){t.$set(t.syllabusForm,"description",e)},expression:"syllabusForm.description"}}),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":"description"}})],1)])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-6"},[s("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("resource.syllabus_detail")))]),t._v(" "),t._l(t.syllabusForm.details,(function(e,a){return[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.syllabus_detail_title"))+" \n "),s("button",{directives:[{name:"confirm",rawName:"v-confirm",value:{ok:t.confirmDeleteDetail(a)},expression:"{ok: confirmDeleteDetail(index)}"},{name:"tooltip",rawName:"v-tooltip",value:t.trans("general.delete"),expression:"trans('general.delete')"}],key:a+"_delete_detail",staticClass:"btn btn-xs btn-danger m-l-20",attrs:{type:"button"}},[s("i",{staticClass:"fas fa-times"})])]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.title,expression:"detail.title"}],staticClass:"form-control",attrs:{type:"text",name:t.getDetailTitleName(a),placeholder:t.trans("resource.syllabus_detail_title")},domProps:{value:e.title},on:{input:function(s){s.target.composing||t.$set(e,"title",s.target.value)}}}),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":t.getDetailTitleName(a)}})],1),t._v(" "),s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.syllabus_detail_description")))]),t._v(" "),s("autosize-textarea",{attrs:{rows:"2",name:t.getDetailDescriptionName(a),placeholder:t.trans("resource.syllabus_detail_description")},model:{value:e.description,callback:function(s){t.$set(e,"description",s)},expression:"detail.description"}}),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":t.getDetailDescriptionName(a)}})],1)]})),t._v(" "),s("div",{staticClass:"form-group"},[s("button",{staticClass:"btn btn-info btn-sm waves-effect waves-light",attrs:{type:"button"},on:{click:t.addDetailRow}},[t._v(t._s(t.trans("resource.syllabus_add_new_detail")))])])],2),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("resource.syllabus_topic")))]),t._v(" "),t._l(t.syllabusForm.topics,(function(e,a){return[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.syllabus_topic_title"))+" \n "),s("button",{directives:[{name:"confirm",rawName:"v-confirm",value:{ok:t.confirmDeleteTopic(a)},expression:"{ok: confirmDeleteTopic(index)}"},{name:"tooltip",rawName:"v-tooltip",value:t.trans("general.delete"),expression:"trans('general.delete')"}],key:a+"_delete_topic",staticClass:"btn btn-xs btn-danger m-l-20",attrs:{type:"button"}},[s("i",{staticClass:"fas fa-times"})])]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.title,expression:"topic.title"}],staticClass:"form-control",attrs:{type:"text",name:t.getTopicTitleName(a),placeholder:t.trans("resource.syllabus_topic_title")},domProps:{value:e.title},on:{input:function(s){s.target.composing||t.$set(e,"title",s.target.value)}}}),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":t.getTopicTitleName(a)}})],1),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.syllabus_topic_start_date")))]),t._v(" "),s("datepicker",{attrs:{bootstrapStyling:!0,placeholder:t.trans("resource.syllabus_start_date")},on:{selected:function(e){t.syllabusForm.errors.clear(t.getTopicStartDateName(a))}},model:{value:e.start_date,callback:function(s){t.$set(e,"start_date",s)},expression:"topic.start_date"}}),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":t.getTopicStartDateName(a)}})],1)]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.syllabus_topic_end_date")))]),t._v(" "),s("datepicker",{attrs:{bootstrapStyling:!0,placeholder:t.trans("resource.syllabus_end_date")},on:{selected:function(e){t.syllabusForm.errors.clear(t.getTopicEndDateName(a))}},model:{value:e.end_date,callback:function(s){t.$set(e,"end_date",s)},expression:"topic.end_date"}}),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":t.getTopicEndDateName(a)}})],1)])]),t._v(" "),s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.syllabus_topic_description")))]),t._v(" "),s("autosize-textarea",{attrs:{rows:"2",name:t.getTopicDescriptionName(a),placeholder:t.trans("resource.syllabus_topic_description")},model:{value:e.description,callback:function(s){t.$set(e,"description",s)},expression:"topic.description"}}),t._v(" "),s("show-error",{attrs:{"form-name":t.syllabusForm,"prop-name":t.getTopicDescriptionName(a)}})],1)]})),t._v(" "),s("div",{staticClass:"form-group"},[s("button",{staticClass:"btn btn-info btn-sm waves-effect waves-light",attrs:{type:"button"},on:{click:t.addTopicRow}},[t._v(t._s(t.trans("resource.syllabus_add_new_topic")))])])],2),t._v(" "),s("div",{staticClass:"col-12"},[s("div",{staticClass:"form-group"},[s("file-upload-input",{attrs:{"button-text":t.trans("general.upload_document"),token:t.syllabusForm.upload_token,module:"syllabus","clear-file":t.clearAttachment,"module-id":t.module_id}})],1)])]),t._v(" "),s("div",{staticClass:"card-footer text-right"},[s("router-link",{staticClass:"btn btn-danger waves-effect waves-light ",attrs:{to:"/resource/syllabus"}},[t._v(t._s(t.trans("general.cancel")))]),t._v(" "),s("button",{staticClass:"btn btn-info waves-effect waves-light",attrs:{type:"submit"}},[t.uuid?s("span",[t._v(t._s(t.trans("general.update")))]):s("span",[t._v(t._s(t.trans("general.save")))])])],1)])])}),[],!1,null,null,null);e.a=i.exports},cS9s:function(t,e,s){var a=s("tmFb");"string"==typeof a&&(a=[[t.i,a,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(a,l);a.locals&&(t.exports=a.locals)},tmFb:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.loading-overlay.is-full-page{\n z-index: 1060;\n}\n",""])}}]); //# sourceMappingURL=index.js.map?id=cb60ca6d8839e31ea732