1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 16:19:26 +00:00

Added add test and add class buttons to tests and classes pages

This commit is contained in:
2022-03-06 22:46:32 +00:00
parent cface26bc9
commit c6419cad8b
8 changed files with 50 additions and 17 deletions

View File

@@ -1,7 +1,17 @@
<section class='classes'>
{{#each classes}}
{{> class name=name teacher=teachers.[0] id=id }}
{{/each}}
<section class='adminSection adminSection--buttons'>
{{#eq userType 'account'}}
<div class='classes__buttons'>
{{> button style='full' colour='primary' to='/admin/class/add' content='Add a new class' size='lg' }}
</div>
{{/eq}}
</section>
<section class='adminSection classes'>
<div class='classes__classes'>
{{#each classes}}
{{> class name=name teacher=teachers.[0] id=id }}
{{/each}}
</div>
</section>
<script>

View File

@@ -1,3 +1,3 @@
<a class='btn btn--{{ style }} btn--{{ colour }}' href='{{ to }}'>
<a class='btn btn--{{ style }} btn--{{ colour }} btn--{{ size }}' href='{{ to }}'>
{{ content }}
</a>

View File

@@ -1,4 +1,12 @@
<section class='tests adminSection'>
<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'>