diff --git a/routes/admin.js b/routes/admin.js index 290cee7..a4dce99 100644 --- a/routes/admin.js +++ b/routes/admin.js @@ -17,6 +17,12 @@ router.get('/classes', (req, res) => { }); }); +router.get('/tests', (req, res) => { + return res.render('tests', { + title: 'Stratos - Tests' + }); +}); + module.exports = { root: '/admin', router: router diff --git a/views/partials/test.hbs b/views/partials/test.hbs new file mode 100644 index 0000000..0f8e621 --- /dev/null +++ b/views/partials/test.hbs @@ -0,0 +1,6 @@ + + {{ name }} + {{ class }} + {{ subject }} + {{ date }} + diff --git a/views/tests.hbs b/views/tests.hbs new file mode 100644 index 0000000..b4ff84c --- /dev/null +++ b/views/tests.hbs @@ -0,0 +1,69 @@ +
+
+

Tests

+
+ + + + + + + + + + {{> test + id='1' + name='Organic Synthesis' + subject='Chemistry' + class='MKA_133' + date='01/08/2021' + }} + {{> test + id='2' + name='Organic Synthesis' + subject='Chemistry' + class='MKA_133' + date='01/08/2021' + }} + {{> test + id='3' + name='Organic Synthesis' + subject='Chemistry' + class='MKA_133' + date='01/08/2021' + }} + {{> test + id='4' + name='Organic Synthesis' + subject='Chemistry' + class='MKA_133' + date='01/08/2021' + }} + {{> test + id='5' + name='Organic Synthesis' + subject='Chemistry' + class='MKA_133' + date='01/08/2021' + }} + {{> test + id='6' + name='Organic Synthesis' + subject='Chemistry' + class='MKA_133' + date='01/08/2021' + }} +
NameSubjectClassDate
+
+
+
+ +