feat: standardize admin form limits and guidance

This commit is contained in:
Tống Thành Đạt
2026-04-10 15:55:15 +07:00
parent 7ce5921fe0
commit 51c6303437
34 changed files with 1692 additions and 361 deletions

View File

@@ -8,7 +8,7 @@ exports.getAllPages = async (req, res) => {
const pages = content.pages || [];
res.render('admin/pages/index', {
title: 'Quản lý trang',
title: 'Page Management',
pages
});
} catch (err) {
@@ -21,7 +21,7 @@ exports.getAllPages = async (req, res) => {
// Hiển thị form tạo trang mới
exports.getAddPage = (req, res) => {
res.render('admin/pages/add', {
title: 'Thêm trang mới'
title: 'Add New Page'
});
};
@@ -95,7 +95,7 @@ exports.getEditPage = async (req, res) => {
}
res.render('admin/pages/edit', {
title: 'Chỉnh sửa trang',
title: 'Edit Page',
page
});
} catch (err) {
@@ -225,4 +225,4 @@ exports.getPageBySlug = async (req, res) => {
message: 'An error occurred while loading the page. Please try again later.'
});
}
};
};