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

@@ -7,11 +7,11 @@ exports.getSettings = async (req, res) => {
const content = readJsonFile('content');
const settings = content.settings || {
siteName: 'CMS-SIMS',
description: 'Hệ thống quản lý nội dung đơn giản'
description: 'Simple content management system'
};
res.render('admin/settings', {
title: 'Cài đặt hệ thống',
title: 'System Settings',
settings
});
} catch (err) {
@@ -53,4 +53,4 @@ exports.updateSettings = async (req, res) => {
req.flash('error_msg', 'Error updating settings');
res.redirect('/admin/settings');
}
};
};