extends layout_side block content link(rel='stylesheet', href='https://use.fontawesome.com/releases/v5.6.1/css/all.css', integrity='sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP', crossorigin='anonymous') .container#wrapper(style='width:100%;') h2.contHeader #{title} each employee, i in employees if (employee.konyvelesre==='on') if (employee.isSubcontractor===null) if(employee.holidayData.length>0) #darktable.container h2.container(style='color:white') #{employee.name} table.container(style='width:90%;') col(width='5%') col(width='20%') col(width='20%') col(width='auto') //col(width='15%') //col(width='10%') thead tr th h1(style='text-align:center') # -// th -// h1 Név th h1(style='text-align:left') Kezdet th h1(style='text-align:left') Lejárat th h1(style='text-align:left') Napok tbody each hd, i in employee.holidayData tr.clickable-clientRow(data-href="/employee/detailstemp/"+employee._id) td #{i+1} td(style='text-align:left') #{moment(hd.start_date,'DD-MM-YYYY').format('YYYY.MM.DD')} td(style='text-align:left') #{moment(hd.end_date,'DD-MM-YYYY').format('YYYY.MM.DD')} td(style='text-align:left') #{hd.duration} br script. $(document).ready(function () { $("#mworkers").click(); $("#listholidaysadd").addClass("active"); $('tr[data-href]').on("click", function() { document.location = $(this).data('href'); }); });