2021-11-16 18:55:29 +01:00
|
|
|
#ifndef HTML_MACROS_H
|
|
|
|
#define HTML_MACROS_H
|
|
|
|
|
|
|
|
#define ADMIN_EDIT_INPUT_TEXT(p_edit_name, p_var_name, p_show_post, p_var, p_request_var) \
|
|
|
|
b.div("row_edit"); \
|
|
|
|
b.fdiv(p_edit_name, "edit_name"); \
|
2022-01-09 17:05:04 +01:00
|
|
|
b.div("edit_input")->input_text(p_var_name, p_show_post ? p_request_var : p_var, "", "input")->cdiv(); \
|
2021-11-16 18:55:29 +01:00
|
|
|
b.cdiv();
|
|
|
|
|
|
|
|
#define ADMIN_EDIT_INPUT_TEXTAREA(p_edit_name, p_var_name, p_show_post, p_var, p_request_var) \
|
|
|
|
b.div("row_edit_textbox"); \
|
|
|
|
b.fdiv(p_edit_name, "edit_name"); \
|
2022-01-09 17:05:04 +01:00
|
|
|
b.div("edit_input")->ftextarea(p_var_name, p_show_post ? p_request_var : p_var, "textarea")->cdiv(); \
|
2021-11-16 18:55:29 +01:00
|
|
|
b.cdiv();
|
|
|
|
|
|
|
|
#define ADMIN_EDIT_LINE_SPACER() \
|
|
|
|
b.fdiv("", "edit_spacer");
|
|
|
|
|
|
|
|
#endif
|