(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{abwv:function(t,a,e){"use strict";e.r(a);var i={components:{},data:function(){return{id:this.$route.params.id,id_card_template:{},background_image:"",signature_image:""}},mounted:function(){this.getIdCardTemplate()},methods:{getIdCardTemplate:function(){var t=this,a=this.$loading.show();axios.get("/api/academic/id-card/template/"+this.id).then((function(e){t.id_card_template=e,t.background_image=e.options.background_image,t.signature_image=e.options.signature_image,a.hide()})).catch((function(e){a.hide(),helper.showErrorMsg(e),t.$router.push("/dashboard")}))},hasPermission:function(t){return helper.hasPermission(t)},updateImage:function(){}},filters:{moment:function(t){return helper.formatDate(t)},momentDateTime:function(t){return helper.formatDateTime(t)}}},s=e("KHd+"),d=Object(s.a)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"page-titles"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-6"},[e("h3",{staticClass:"text-themecolor"},[t._v(t._s(t.trans("academic.id_card_template")))])]),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("div",{staticClass:"action-buttons pull-right"},[e("router-link",{staticClass:"btn btn-info btn-sm",attrs:{to:"/configuration/academic/id-card/template"}},[e("i",{staticClass:"fas fa-list"}),t._v(" "),e("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("academic.id_card_template")))])])],1)])])]),t._v(" "),e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-6"},[e("div",{staticClass:"card border-right"},[e("div",{staticClass:"card-body"},[e("h4",{staticClass:"card-title m-3"},[e("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.id_card_template.name))])]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-sm custom-show-table"},[e("tbody",[e("tr",[e("td",[t._v(t._s(t.trans("academic.id_card_template_type")))]),t._v(" "),e("td",[t._v(t._s("student"==t.id_card_template.type?t.trans("student.student"):t.trans("employee.employee")))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("academic.id_card_template_width")))]),t._v(" "),e("td",[t._v(t._s(t.id_card_template.width)+"mm")])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("academic.id_card_template_height")))]),t._v(" "),e("td",[t._v(t._s(t.id_card_template.height)+"mm")])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("academic.id_card_template_per_page_limit")))]),t._v(" "),e("td",[t._v(t._s(t.id_card_template.options.per_page_limit))])])])])])])])]),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-6"},[e("h2",{staticClass:"text-center"},[t._v(t._s(t.trans("academic.id_card_template_background_image")))]),t._v(" "),e("upload-image",{attrs:{id:"background_image","upload-path":"/academic/id-card/template/background/"+t.id_card_template.id,"remove-path":"/academic/id-card/template/background/remove/"+t.id_card_template.id,"image-source":t.background_image},on:{uploaded:t.updateImage,removed:t.updateImage}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("h2",{staticClass:"text-center"},[t._v(t._s(t.trans("academic.id_card_template_signature_image")))]),t._v(" "),e("upload-image",{attrs:{id:"signature_image","upload-path":"/academic/id-card/template/signature/"+t.id_card_template.id,"remove-path":"/academic/id-card/template/signature/remove/"+t.id_card_template.id,"image-source":t.signature_image},on:{uploaded:t.updateImage,removed:t.updateImage}})],1)])])])])])}),[],!1,null,null,null);a.default=d.exports}}]);
//# sourceMappingURL=show.js.map?id=01b93fe0141bc0094ef7