From 6f169caf78d4223be5611b194068656d7609a092 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 12 Mar 2021 10:09:39 +0100 Subject: [PATCH] Manage_Table : add CSS Class --- html/js/managetable.js | 7 +++++-- include/lib/manage_table_sql.class.php | 18 ++++++++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/html/js/managetable.js b/html/js/managetable.js index da5b8605f..78c2ddd60 100644 --- a/html/js/managetable.js +++ b/html/js/managetable.js @@ -76,6 +76,7 @@ var ManageTable = function (p_table_name) this.control = "dtr"; //search_table=true; $this->button_add_top=true; $this->title=_("Donnée"); + $this->cssclass="inner_box"; + } + function setCssClass($p_class) { + $this->cssclass=$p_class; + } + function getCssClass() { + return $this->cssclass; + } /** * Set the title of the diabox , default is Donnée * @param type $p_title @@ -450,6 +460,7 @@ function check() {$this->object_name}.set_sort({$this->get_col_sort()}); {$this->object_name}.set_control(\"{$this->get_dialog_box()}\"); {$this->object_name}.set_style($style); + {$this->object_name}.cssclass=\"{$this->cssclass}\"; "; @@ -978,7 +989,10 @@ function check() /** * @brief display into a dialog box the datarow in order * to be appended or modified. Can be override if you need - * a more complex form. + * a more complex form or add elements with "set_order" before + * calling this function. + * This function does not add the form , only the table, + * */ function input() {