mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Prepare views for data injection
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user