1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 20:39:28 +00:00
Files
stratos/views/tests.hbs

35 lines
696 B
Handlebars

<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>