forked from UKSOURCE/cms.hailearning.edu.vn
feat: standardize admin form limits and guidance
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user