mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-02 13:47:56 +02:00
Added a new body top parameter to the admin panel.
This commit is contained in:
parent
7485a80d12
commit
5462650e10
@ -110,6 +110,8 @@ void AdminPanel::clear() {
|
|||||||
|
|
||||||
void AdminPanel::render_headers(Request *request) {
|
void AdminPanel::render_headers(Request *request) {
|
||||||
request->head += _default_headers;
|
request->head += _default_headers;
|
||||||
|
|
||||||
|
request->body += _default_body_top;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdminPanel::render_footer(Request *request) {
|
void AdminPanel::render_footer(Request *request) {
|
||||||
@ -119,6 +121,9 @@ void AdminPanel::render_footer(Request *request) {
|
|||||||
void AdminPanel::set_default_header(const String &val) {
|
void AdminPanel::set_default_header(const String &val) {
|
||||||
_default_headers = val;
|
_default_headers = val;
|
||||||
}
|
}
|
||||||
|
void AdminPanel::set_default_body_top(const String &val) {
|
||||||
|
_default_body_top = val;
|
||||||
|
}
|
||||||
void AdminPanel::set_default_footer(const String &val) {
|
void AdminPanel::set_default_footer(const String &val) {
|
||||||
_default_footer = val;
|
_default_footer = val;
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@ public:
|
|||||||
virtual void render_footer(Request *request);
|
virtual void render_footer(Request *request);
|
||||||
|
|
||||||
void set_default_header(const String &val);
|
void set_default_header(const String &val);
|
||||||
|
void set_default_body_top(const String &val);
|
||||||
void set_default_footer(const String &val);
|
void set_default_footer(const String &val);
|
||||||
|
|
||||||
static AdminPanel *get_singleton();
|
static AdminPanel *get_singleton();
|
||||||
@ -45,6 +46,7 @@ protected:
|
|||||||
Vector<AdminPanelSection> _controllers;
|
Vector<AdminPanelSection> _controllers;
|
||||||
|
|
||||||
String _default_headers;
|
String _default_headers;
|
||||||
|
String _default_body_top;
|
||||||
String _default_footer;
|
String _default_footer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user