/home/techb158/ileadtechnology.com/SSM/public/js/resource/assignment
NameSizeModeActions
edit~js/-0755rm
edit.js97420644editdlrm
edit.js.map1670644editdlrm
index.js251500644editdlrm
index.js.map1600644editdlrm
show.js36130644editdlrm
show.js.map1670644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/resource/assignment/index.js (25150B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[310,311],{HcbY:function(t,e,s){"use strict";s.r(e);var n=s("NDCc"),a=s("Jr6T"),i={components:{assignmentForm:n.a,assignmentDetail:a.default},data:function(){return{assignments:{total:0,data:[]},filter:{sort_by:"date_of_assignment",order:"desc",title:"",batch_id:[],date_of_assignment_start_date:"",date_of_assignment_end_date:"",due_date_start_date:"",due_date_end_date:"",page_length:helper.getConfig("page_length")},orderByOptions:[{value:"date_of_assignment",translation:i18n.resource.date_of_assignment},{value:"title",translation:i18n.resource.assignment_title}],batches:[],selected_batches:null,showFilterPanel:!1,showCreatePanel:!1,help_topic:"",showUuid:"",showModal:!1}},mounted:function(){helper.hasPermission("list-assignment")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getAssignments(),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)},getAssignments:function(t){var e=this,s=this.$loading.show();"number"!=typeof t&&(t=1),this.filter.date_of_assignment_start_date=helper.toDate(this.filter.date_of_assignment_start_date),this.filter.date_of_assignment_end_date=helper.toDate(this.filter.date_of_assignment_end_date),this.filter.due_date_start_date=helper.toDate(this.filter.due_date_start_date),this.filter.due_date_end_date=helper.toDate(this.filter.due_date_end_date);var n=helper.getFilterURL(this.filter);axios.get("/api/assignment?page="+t+n).then((function(t){e.assignments=t.assignments,e.batches=t.filters.batches,s.hide()})).catch((function(t){s.hide(),helper.showErrorMsg(t)}))},editAssignment:function(t){this.$router.push("/resource/assignment/"+t.uuid+"/edit")},confirmDelete:function(t){var e=this;return function(s){return e.deleteAssignment(t)}},deleteAssignment:function(t){var e=this,s=this.$loading.show();axios.delete("/api/assignment/"+t.uuid).then((function(t){toastr.success(t.message),e.getAssignments(),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/assignment/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/assignment/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.getAssignments()},"filter.order":function(t){this.getAssignments()},"filter.page_length":function(t){this.getAssignments()}},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.assignment"))+" \n "),t.assignments.total?s("span",{staticClass:"card-subtitle d-none d-sm-inline"},[t._v(t._s(t.trans("general.total_result_found",{count:t.assignments.total,from:t.assignments.from,to:t.assignments.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.assignments.total&&!t.showCreatePanel&&t.hasPermission("create-assignment")?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){t.showCreatePanel=!t.showCreatePanel}}},[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_assignment")))])]):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.assignment"}}})],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:"col-12 col-sm-3"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.assignment_title")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.filter.title,expression:"filter.title"}],staticClass:"form-control",attrs:{name:"title"},domProps:{value:t.filter.title},on:{input:function(e){e.target.composing||t.$set(t.filter,"title",e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("date-range-picker",{attrs:{"start-date":t.filter.date_of_assignment_start_date,"end-date":t.filter.date_of_assignment_end_date,label:t.trans("resource.date_of_assignment_between")},on:{"update:startDate":function(e){return t.$set(t.filter,"date_of_assignment_start_date",e)},"update:start-date":function(e){return t.$set(t.filter,"date_of_assignment_start_date",e)},"update:endDate":function(e){return t.$set(t.filter,"date_of_assignment_end_date",e)},"update:end-date":function(e){return t.$set(t.filter,"date_of_assignment_end_date",e)}}})],1),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("date-range-picker",{attrs:{"start-date":t.filter.due_date_start_date,"end-date":t.filter.due_date_end_date,label:t.trans("resource.due_date_between")},on:{"update:startDate":function(e){return t.$set(t.filter,"due_date_start_date",e)},"update:start-date":function(e){return t.$set(t.filter,"due_date_start_date",e)},"update:endDate":function(e){return t.$set(t.filter,"due_date_end_date",e)},"update:end-date":function(e){return t.$set(t.filter,"due_date_end_date",e)}}})],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.getAssignments}},[t._v(t._s(t.trans("general.filter")))])])])]):t._e()]),t._v(" "),t.hasPermission("create-assignment")?s("transition",{attrs:{name:"fade"}},[t.showCreatePanel?s("div",{staticClass:"card card-form"},[s("div",{staticClass:"card-body"},[s("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("resource.add_new_assignment")))]),t._v(" "),s("assignment-form",{on:{completed:t.getAssignments,cancel:function(e){t.showCreatePanel=!t.showCreatePanel}}})],1)]):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[t.assignments.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.assignment_title")))]),t._v(" "),s("th",[t._v(t._s(t.trans("resource.date_of_assignment")))]),t._v(" "),s("th",[t._v(t._s(t.trans("resource.due_date_of_assignment")))]),t._v(" "),s("th",[t._v(t._s(t.trans("resource.assignment_posted_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.assignments.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._f("moment")(e.date_of_assignment)))]),t._v(" "),s("td",[t._v(t._s(t._f("moment")(e.due_date)))]),t._v(" "),s("td",[t._v(t._s(t.getEmployeeName(e.employee))+" "),s("br"),t._v(" "+t._s(t.getEmployeeDesignationOnDate(e.employee,e.date_of_assignment)))]),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("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("resource.view_assignment"),expression:"trans('resource.view_assignment')"}],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-assignment")?s("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("resource.edit_assignment"),expression:"trans('resource.edit_assignment')"}],staticClass:"btn btn-info btn-sm",on:{click:function(s){return s.preventDefault(),t.editAssignment(e)}}},[s("i",{staticClass:"fas fa-edit"})]):t._e(),t._v(" "),t.hasPermission("delete-assignment")?s("button",{directives:[{name:"confirm",rawName:"v-confirm",value:{ok:t.confirmDelete(e)},expression:"{ok: confirmDelete(assignment)}"},{name:"tooltip",rawName:"v-tooltip",value:t.trans("resource.delete_assignment"),expression:"trans('resource.delete_assignment')"}],key:e.id,staticClass:"btn btn-danger btn-sm"},[s("i",{staticClass:"fas fa-trash"})]):t._e()])])])})),0)])]):t._e(),t._v(" "),t.assignments.total?t._e():s("module-info",{attrs:{module:"resource",title:"assignment_module_title",description:"assignment_module_description",icon:"list"}},[s("div",{attrs:{slot:"btn"},slot:"btn"},[!t.showCreatePanel&&t.hasPermission("create-assignment")?s("button",{staticClass:"btn btn-info btn-md",on:{click:function(e){t.showCreatePanel=!t.showCreatePanel}}},[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.assignments},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.getAssignments}})],1)])],1),t._v(" "),t.showModal?s("assignment-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},Jr6T:function(t,e,s){"use strict";s.r(e);var n={components:{},props:["uuid","url"],mounted:function(){this.uuid&&this.get()},data:function(){return{assignment:[],attachments:[]}},methods:{get:function(){var t=this,e=this.$loading.show();axios.get("/api/assignment/"+this.uuid).then((function(s){t.assignment=s.assignment,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)}}},a=s("KHd+"),i=Object(a.a)(n,(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.assignment.id?s("div",{staticClass:"modal-header"},[t._t("header",[s("span",[t._v(t._s(t.assignment.title))]),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.assignment.id?s("div",{staticClass:"modal-body"},[t._t("body",[s("h6",{staticClass:"card-title"},[s("strong",[t._v(t._s(t.trans("academic.subject"))+":")]),t._v(" "+t._s(t.assignment.subject.name+" ("+t.assignment.subject.code+")")+" \n "),s("br"),t._v(" "),s("strong",[t._v(t._s(t.trans("academic.batch"))+":")]),t._v(" "+t._s(t.assignment.subject.batch.course.name+" "+t.assignment.subject.batch.name)+" \n "),s("br"),t._v(" "),s("strong",[t._v(t._s(t.trans("resource.date_of_assignment"))+":")]),t._v(" "+t._s(t._f("moment")(t.assignment.date_of_assignment))+" \n "),s("br"),t._v(" "),s("strong",[t._v(t._s(t.trans("resource.due_date_of_assignment"))+":")]),t._v(" "+t._s(t._f("moment")(t.assignment.due_date))+" \n "),t.assignment.employee?s("p",{staticClass:"pull-right"},[s("strong",[t._v(t._s(t.trans("resource.assignment_posted_by"))+":")]),t._v(" "+t._s(t.getEmployeeName(t.assignment.employee))+" "+t._s(t.getEmployeeDesignation(t.assignment.employee,t.assignment.date_of_assignment))+"\n ")]):t._e()]),t._v(" "),s("div",{staticClass:"m-t-20 html-view",domProps:{innerHTML:t._s(t.assignment.description)}}),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/assignment/"+t.assignment.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.assignment.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.assignment.updated_at)))])])])])],2):t._e()])])])])}),[],!1,null,null,null);e.default=i.exports},NDCc:function(t,e,s){"use strict";var n={components:{},data:function(){return{assignmentForm:new Form({batch_id:"",subject_id:"",title:"",date_of_assignment:"",due_date:"",description:"",upload_token:""}),batches:[],selected_batch:null,subjects:[],selected_subject:null,subject_detail:[],module_id:"",clearAttachment:!0}},props:["uuid"],mounted:function(){helper.hasPermission("create-assignment")||helper.hasPermission("edit-assignment")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.uuid?this.get():this.assignmentForm.upload_token=this.$uuid.v4(),this.getPreRequisite()},methods:{hasPermission:function(t){return helper.hasPermission(t)},getPreRequisite:function(){var t=this,e=this.$loading.show();axios.get("/api/assignment/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.assignmentForm.subject_id="",this.selected_subject=null);var e=this.$loading.show();axios.post("/api/batch/"+this.assignmentForm.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.assignmentForm.post("/api/assignment").then((function(s){toastr.success(s.message),t.clearAttachment=!t.clearAttachment,t.assignmentForm.upload_token=t.$uuid.v4(),t.selected_batch=null,t.selected_subject=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/assignment/"+this.uuid).then((function(s){var n=s.assignment;t.assignmentForm.title=n.title,t.assignmentForm.date_of_assignment=n.date_of_assignment,t.assignmentForm.due_date=n.due_date,t.assignmentForm.description=n.description,t.assignmentForm.batch_id=n.subject.batch_id,t.assignmentForm.subject_id=n.subject_id,t.selected_batch=t.assignmentForm.batch_id?{id:n.subject.batch_id,name:n.subject.batch.course.name+" "+n.subject.batch.name}:null,t.selected_subject=n.subject_id?{id:n.subject_id,name:n.subject.name+" ("+n.subject.code+")"}:null,t.assignmentForm.upload_token=n.upload_token,t.module_id=n.id,e.hide()})).catch((function(s){e.hide(),helper.showErrorMsg(s),t.$router.push("/resource/assignment")}))},update:function(){var t=this,e=this.$loading.show();this.assignmentForm.patch("/api/assignment/"+this.uuid).then((function(s){toastr.success(s.message),e.hide(),t.$router.push("/resource/assignment")})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},onBatchSelect:function(t){this.assignmentForm.batch_id=t.id},onSubjectSelect:function(t){this.assignmentForm.subject_id=t.id}},watch:{"assignmentForm.batch_id":function(t){t&&this.getSubjects()}}},a=(s("Re69"),s("KHd+")),i=Object(a.a)(n,(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.assignmentForm.errors.clear(e.target.name)}}},[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("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.assignmentForm.errors.clear("batch_id")},remove:function(e){t.assignmentForm.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.assignmentForm,"prop-name":"batch_id"}})],1),t._v(" "),t.assignmentForm.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.assignmentForm.errors.clear("subject_id")},remove:function(e){t.assignmentForm.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.assignmentForm,"prop-name":"subject_id"}})],1):t._e(),t._v(" "),s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.assignment_title")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.assignmentForm.title,expression:"assignmentForm.title"}],staticClass:"form-control",attrs:{type:"text",name:"title",placeholder:t.trans("resource.assignment_title")},domProps:{value:t.assignmentForm.title},on:{input:function(e){e.target.composing||t.$set(t.assignmentForm,"title",e.target.value)}}}),t._v(" "),s("show-error",{attrs:{"form-name":t.assignmentForm,"prop-name":"title"}})],1),t._v(" "),s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.date_of_assignment")))]),t._v(" "),s("datepicker",{attrs:{bootstrapStyling:!0,placeholder:t.trans("resource.date_of_assignment")},on:{selected:function(e){return t.assignmentForm.errors.clear("date_of_assignment")}},model:{value:t.assignmentForm.date_of_assignment,callback:function(e){t.$set(t.assignmentForm,"date_of_assignment",e)},expression:"assignmentForm.date_of_assignment"}}),t._v(" "),s("show-error",{attrs:{"form-name":t.assignmentForm,"prop-name":"date_of_assignment"}})],1),t._v(" "),s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("resource.due_date_of_assignment")))]),t._v(" "),s("datepicker",{attrs:{bootstrapStyling:!0,placeholder:t.trans("resource.due_date_of_assignment")},on:{selected:function(e){return t.assignmentForm.errors.clear("due_date")}},model:{value:t.assignmentForm.due_date,callback:function(e){t.$set(t.assignmentForm,"due_date",e)},expression:"assignmentForm.due_date"}}),t._v(" "),s("show-error",{attrs:{"form-name":t.assignmentForm,"prop-name":"due_date"}})],1),t._v(" "),s("div",{staticClass:"form-group"},[s("file-upload-input",{attrs:{"button-text":t.trans("general.upload_document"),token:t.assignmentForm.upload_token,module:"assignment","clear-file":t.clearAttachment,"module-id":t.module_id}})],1)]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"form-group"},[s("html-editor",{attrs:{name:"description",model:t.assignmentForm.description,height:"300",isUpdate:!!t.uuid},on:{"update:model":function(e){return t.$set(t.assignmentForm,"description",e)},clearErrors:function(e){return t.assignmentForm.errors.clear("description")}}}),t._v(" "),s("show-error",{attrs:{"form-name":t.assignmentForm,"prop-name":"description"}})],1)])]),t._v(" "),s("div",{staticClass:"card-footer text-right"},[s("router-link",{directives:[{name:"show",rawName:"v-show",value:t.uuid,expression:"uuid"}],staticClass:"btn btn-danger waves-effect waves-light ",attrs:{to:"/resource/assignment"}},[t._v(t._s(t.trans("general.cancel")))]),t._v(" "),t.uuid?t._e():s("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(" "),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},Re69:function(t,e,s){"use strict";var n=s("bNSu");s.n(n).a},bNSu:function(t,e,s){var n=s("iSf7");"string"==typeof n&&(n=[[t.i,n,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(n,a);n.locals&&(t.exports=n.locals)},iSf7: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=a610a2f88d8ceccc649c