pos-gis/public/assets/js/pages/custom/education/school/teachers.min.js

1 line
8.8 KiB
JavaScript
Raw Normal View History

2024-10-07 06:13:42 +00:00
"use strict";var KTAppsEducationSchoolTeacher={init:function(){var t;t=$("#kt_datatable").KTDatatable({data:{type:"remote",source:{read:{url:HOST_URL+"/api/datatables/demos/default.php"}},pageSize:10,serverPaging:!0,serverFiltering:!0,serverSorting:!0},layout:{scroll:!1,footer:!1},sortable:!0,pagination:!0,columns:[{field:"CompanyName",title:"Teacher",width:250,template:function(t){var a="300_"+KTUtil.getRandomInt(1,20)+".jpg",e=KTUtil.getRandomInt(1,5);return'<div class="d-flex align-items-center">\t\t\t\t\t\t\t<div class="symbol symbol-40 symbol-sm flex-shrink-0">\t\t\t\t\t\t\t\t<img class="" src="assets/media/users/'+a+'" alt="photo">\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<div class="ml-4">\t\t\t\t\t\t\t\t<a href="#" class="text-dark-75 text-hover-primary font-weight-bolder font-size-lg mb-0">'+t.CompanyAgent+'</a>\t\t\t\t\t\t\t\t<div class="text-muted font-weight-bold">'+{1:{title:"Mathematics, BA"},2:{title:"Geography, BSc"},3:{title:"History, PhD"},4:{title:"Physics, MS"},5:{title:"astronomy, MA"}}[e].title+"</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>"}},{field:"CompanyAgent",title:"Department",template:function(t){var a="";return a+='<a href="#" class="text-dark-50 text-hover-primary font-weight-bold">'+t.CompanyName+"</a>"}},{field:"JoinedDate",title:"Joined",type:"date",width:100,format:"MM/DD/YYYY",template:function(t){var a="";return a+='<div class="font-weight-bolder text-primary mb-0">'+t.ShipDate+"</div>"}},{field:"Status",title:"Status",autoHide:!1,width:100,template:function(t){var a=KTUtil.getRandomInt(1,3),e={1:{title:"New",class:" label-light-primary"},2:{title:"Active",class:" label-light-danger"},3:{title:"In-active",class:" label-light-info"}};return'<span class="label label-lg font-weight-bold '+e[a].class+' label-inline">'+e[a].title+"</span>"}},{field:"Actions",title:"Actions",sortable:!1,width:130,overflow:"visible",autoHide:!1,template:function(){return'\t <div class="dropdown dropdown-inline">\t <a href="javascript:;" class="btn btn-sm btn-default btn-text-primary btn-hover-primary btn-icon mr-2" data-toggle="dropdown">\t\t\t\t\t\t\t\t\t<span class="svg-icon svg-icon-md">\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1" class="svg-icon">\t\t\t\t\t\t\t\t\t\t\t<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\t\t\t\t\t\t\t\t\t\t\t\t<rect x="0" y="0" width="24" height="24"/>\t\t\t\t\t\t\t\t\t\t\t\t<path d="M7,3 L17,3 C19.209139,3 21,4.790861 21,7 C21,9.209139 19.209139,11 17,11 L7,11 C4.790861,11 3,9.209139 3,7 C3,4.790861 4.790861,3 7,3 Z M7,9 C8.1045695,9 9,8.1045695 9,7 C9,5.8954305 8.1045695,5 7,5 C5.8954305,5 5,5.8954305 5,7 C5,8.1045695 5.8954305,9 7,9 Z" fill="#000000"/>\t\t\t\t\t\t\t\t\t\t\t\t<path d="M7,13 L17,13 C19.209139,13 21,14.790861 21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 C3,14.790861 4.790861,13 7,13 Z M17,19 C18.1045695,19 19,18.1045695 19,17 C19,15.8954305 18.1045695,15 17,15 C15.8954305,15 15,15.8954305 15,17 C15,18.1045695 15.8954305,19 17,19 Z" fill="#000000" opacity="0.3"/>\t\t\t\t\t\t\t\t\t\t\t</g>\t\t\t\t\t\t\t\t\t\t</svg>\t\t\t\t\t\t\t\t\t</span>\t </a>\t <div class="dropdown-menu dropdown-menu-sm dropdown-menu-right">\t <ul class="navi flex-column navi-hover py-2">\t <li class="navi-header font-weight-bolder text-uppercase font-size-xs text-primary pb-2">\t Choose an action:\t </li>\t <li class="navi-item">\t <a href="#" class="navi-link">\t <span class="navi-icon"><i class="la la-print"></i></span>\t <span class="navi-text">Print</span>\t </a>\t