<?php $pageTitle='Imaging sessions';
include realpath(__DIR__).'/../../core/_common/header.php'; ?>
<script type="text/javascript">
window.addEventListener('DOMContentLoaded',function(){

    const headers = ['Inspection', 'Plate', 'Imager'];
    const cellTemplates = [[ImagingSession.getLink, 'imageddatetime'], '<a href="/plate/{{plateid}}">{{platename}}</a>', '<a href="/imager/{{imagerid}}" title="{{imagername}}">{{imagerfriendlyname}}</a>'];
    ui.grid().box({
		classes:'r1 c1 h3 w3',
		url:'/api/imagingsession?sortby=imageddatetime&sortdescending=1&pagesize=25',
		headers:headers,
		cellTemplates:cellTemplates
	});

});
</script>
<?php include realpath(__DIR__).'/../../core/_common/footer.php';