From b6e43df0e320108193d8a2143abd0ef192dc8a9c Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 6 Feb 2022 20:31:29 +0000 Subject: [PATCH] Added tests page --- routes/admin.js | 6 ++++ views/partials/test.hbs | 6 ++++ views/tests.hbs | 69 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 views/partials/test.hbs create mode 100644 views/tests.hbs 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
+
+
+
+ +