diff --git a/core/config.class.inc.php b/core/config.class.inc.php index b52b21d26f..c5b05a6324 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -401,6 +401,15 @@ class Config 'source_of_value' => '', 'show_in_conf_sample' => true, ), + 'display_actions_at_top' => array( + 'type' => 'bool', + 'description' => 'Whether or not the actions/buttons should be displayed at the top of the screen', + // examples... not used + 'default' => true, + 'value' => false, + 'source_of_value' => '', + 'show_in_conf_sample' => true, + ), ); public function IsProperty($sPropCode) diff --git a/pages/UI.php b/pages/UI.php index 12207f6d8b..5c459d6c73 100644 --- a/pages/UI.php +++ b/pages/UI.php @@ -1510,9 +1510,14 @@ EOF $iFieldIndex++; } } - $oP->add('
'); + $bDisplayFormAtTop = MetaModel::GetConfig()->Get('display_actions_at_top'); + if (!$bDisplayFormAtTop) + { + // Displays the ticket details BEFORE the actions + $oP->add(''); + } $oP->add("