Normalise file names

master
Mark Moffat 2020-01-01 19:56:21 +10:30
parent d6e6fa0636
commit 36aa0375b5
10 changed files with 8 additions and 8 deletions

View File

@ -232,7 +232,7 @@ router.post('/admin/settings/update', restrict, checkAccess, (req, res) => {
// settings menu // settings menu
router.get('/admin/settings/menu', restrict, async (req, res) => { router.get('/admin/settings/menu', restrict, async (req, res) => {
const db = req.app.db; const db = req.app.db;
res.render('settings_menu', { res.render('settings-menu', {
title: 'Cart menu', title: 'Cart menu',
session: req.session, session: req.session,
admin: true, admin: true,
@ -249,7 +249,7 @@ router.get('/admin/settings/pages', restrict, async (req, res) => {
const db = req.app.db; const db = req.app.db;
const pages = await db.pages.find({}).toArray(); const pages = await db.pages.find({}).toArray();
res.render('settings_pages', { res.render('settings-pages', {
title: 'Static pages', title: 'Static pages',
pages: pages, pages: pages,
session: req.session, session: req.session,
@ -266,7 +266,7 @@ router.get('/admin/settings/pages', restrict, async (req, res) => {
router.get('/admin/settings/pages/new', restrict, checkAccess, async (req, res) => { router.get('/admin/settings/pages/new', restrict, checkAccess, async (req, res) => {
const db = req.app.db; const db = req.app.db;
res.render('settings_page', { res.render('settings-page', {
title: 'Static pages', title: 'Static pages',
session: req.session, session: req.session,
admin: true, admin: true,
@ -296,7 +296,7 @@ router.get('/admin/settings/pages/edit/:page', restrict, checkAccess, async (req
return; return;
} }
res.render('settings_page', { res.render('settings-page', {
title: 'Static pages', title: 'Static pages',
page: page, page: page,
button_text: 'Update', button_text: 'Update',

View File

@ -60,7 +60,7 @@ router.get('/admin/products/filter/:search', restrict, async (req, res, next) =>
// insert form // insert form
router.get('/admin/product/new', restrict, checkAccess, (req, res) => { router.get('/admin/product/new', restrict, checkAccess, (req, res) => {
res.render('product_new', { res.render('product-new', {
title: 'New product', title: 'New product',
session: req.session, session: req.session,
productTitle: common.clearSessionValue(req.session, 'productTitle'), productTitle: common.clearSessionValue(req.session, 'productTitle'),
@ -168,7 +168,7 @@ router.get('/admin/product/edit/:id', restrict, checkAccess, async (req, res) =>
return; return;
} }
res.render('product_edit', { res.render('product-edit', {
title: 'Edit product', title: 'Edit product',
result: product, result: product,
images: images, images: images,

View File

@ -60,7 +60,7 @@ router.get('/admin/user/edit/:id', restrict, async (req, res) => {
return; return;
} }
res.render('user_edit', { res.render('user-edit', {
title: 'User edit', title: 'User edit',
user: user, user: user,
admin: true, admin: true,
@ -74,7 +74,7 @@ router.get('/admin/user/edit/:id', restrict, async (req, res) => {
// users new // users new
router.get('/admin/user/new', restrict, (req, res) => { router.get('/admin/user/new', restrict, (req, res) => {
res.render('user_new', { res.render('user-new', {
title: 'User - New', title: 'User - New',
admin: true, admin: true,
session: req.session, session: req.session,