Normalise file names
parent
d6e6fa0636
commit
36aa0375b5
|
@ -232,7 +232,7 @@ router.post('/admin/settings/update', restrict, checkAccess, (req, res) => {
|
|||
// settings menu
|
||||
router.get('/admin/settings/menu', restrict, async (req, res) => {
|
||||
const db = req.app.db;
|
||||
res.render('settings_menu', {
|
||||
res.render('settings-menu', {
|
||||
title: 'Cart menu',
|
||||
session: req.session,
|
||||
admin: true,
|
||||
|
@ -249,7 +249,7 @@ router.get('/admin/settings/pages', restrict, async (req, res) => {
|
|||
const db = req.app.db;
|
||||
const pages = await db.pages.find({}).toArray();
|
||||
|
||||
res.render('settings_pages', {
|
||||
res.render('settings-pages', {
|
||||
title: 'Static pages',
|
||||
pages: pages,
|
||||
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) => {
|
||||
const db = req.app.db;
|
||||
|
||||
res.render('settings_page', {
|
||||
res.render('settings-page', {
|
||||
title: 'Static pages',
|
||||
session: req.session,
|
||||
admin: true,
|
||||
|
@ -296,7 +296,7 @@ router.get('/admin/settings/pages/edit/:page', restrict, checkAccess, async (req
|
|||
return;
|
||||
}
|
||||
|
||||
res.render('settings_page', {
|
||||
res.render('settings-page', {
|
||||
title: 'Static pages',
|
||||
page: page,
|
||||
button_text: 'Update',
|
||||
|
|
|
@ -60,7 +60,7 @@ router.get('/admin/products/filter/:search', restrict, async (req, res, next) =>
|
|||
|
||||
// insert form
|
||||
router.get('/admin/product/new', restrict, checkAccess, (req, res) => {
|
||||
res.render('product_new', {
|
||||
res.render('product-new', {
|
||||
title: 'New product',
|
||||
session: req.session,
|
||||
productTitle: common.clearSessionValue(req.session, 'productTitle'),
|
||||
|
@ -168,7 +168,7 @@ router.get('/admin/product/edit/:id', restrict, checkAccess, async (req, res) =>
|
|||
return;
|
||||
}
|
||||
|
||||
res.render('product_edit', {
|
||||
res.render('product-edit', {
|
||||
title: 'Edit product',
|
||||
result: product,
|
||||
images: images,
|
||||
|
|
|
@ -60,7 +60,7 @@ router.get('/admin/user/edit/:id', restrict, async (req, res) => {
|
|||
return;
|
||||
}
|
||||
|
||||
res.render('user_edit', {
|
||||
res.render('user-edit', {
|
||||
title: 'User edit',
|
||||
user: user,
|
||||
admin: true,
|
||||
|
@ -74,7 +74,7 @@ router.get('/admin/user/edit/:id', restrict, async (req, res) => {
|
|||
|
||||
// users new
|
||||
router.get('/admin/user/new', restrict, (req, res) => {
|
||||
res.render('user_new', {
|
||||
res.render('user-new', {
|
||||
title: 'User - New',
|
||||
admin: true,
|
||||
session: req.session,
|
||||
|
|
Loading…
Reference in New Issue