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

Prepare views for data injection

This commit is contained in:
2022-02-25 19:52:45 +00:00
parent c6433f4594
commit 28e95b8cc3
3 changed files with 15 additions and 47 deletions

View File

@@ -1,8 +1,7 @@
<section class='classes'>
{{> class name='13(3) Chemistry' teacher='Dr M Ashley' id=1 }}
{{> class name='13(3) Chemistry' teacher='Dr M Ashley' id=2 }}
{{> class name='13(3) Chemistry' teacher='Dr M Ashley' id=3 }}
{{> class name='13(3) Chemistry' teacher='Dr M Ashley' id=4 }}
{{#each classes}}
{{> class name=name teacher=teachers.[0] id=id }}
{{/each}}
</section>
<script>

View File

@@ -1,4 +1,6 @@
<div class='classes__class adminItem' data-id={{ id }}>
<h2>{{ name }}</h2>
<h3>{{ teacher }}</h3>
{{#with teacher}}
<h3>{{ fullName }}</h3>
{{/with}}
</div>

View File

@@ -11,48 +11,15 @@
<th>Date</th>
</tr>
</thead>
{{> test
id='1'
name='Organic Synthesis'
class='MKA_133'
subject='Chemistry'
date='01/08/2021'
}}
{{> test
id='2'
name='Organic Synthesis'
class='MKA_133'
subject='Chemistry'
date='01/08/2021'
}}
{{> test
id='3'
name='Organic Synthesis'
class='MKA_133'
subject='Chemistry'
date='01/08/2021'
}}
{{> test
id='4'
name='Organic Synthesis'
class='MKA_133'
subject='Chemistry'
date='01/08/2021'
}}
{{> test
id='5'
name='Organic Synthesis'
class='MKA_133'
subject='Chemistry'
date='01/08/2021'
}}
{{> test
id='6'
name='Organic Synthesis'
class='MKA_133'
subject='Chemistry'
date='01/08/2021'
}}
{{#each tests}}
{{> test
id=id
name=template.name
class=class.name
subject=class.subject.name
date=date
}}
{{/each}}
</table>
</div>
</div>