<section class='adminSection adminSection--buttons'>
	{{#eq userType 'account'}}
	<div class='classes__buttons'>
		{{> button style='full' colour='primary' to='/admin/test/add' content='Add a new test' size='lg' }}
	</div>
	{{/eq}}
</section>

<section class='adminSection tests'>
	<div class='adminItem'>
		<h2>Tests</h2>
		<div class='adminTable'>
			<table>
				<thead>
					<tr>
						<th>Name</th>
						<th>Class</th>
						<th>Subject</th>
						<th>Date</th>
					</tr>
				</thead>
				{{#each tests}}
					{{> test
						id=id
						name=template.name
						class=class.name
						subject=class.subject.name
						date=date
					}}
				{{/each}}
			</table>
		</div>
	</div>
</section>
