From bf8c520d0f2c0ed280678932effdfb17b0a6a5d1 Mon Sep 17 00:00:00 2001 From: pek5892 Date: Fri, 24 May 2024 11:42:35 +0200 Subject: [PATCH] Fix minore --- controller.php | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/controller.php b/controller.php index 56e986842..da22a512c 100755 --- a/controller.php +++ b/controller.php @@ -48,32 +48,33 @@ if ($segmenti) { // Lettura eventuali plugins modulo da inserire come tab echo ' -
-
-
-
-

- '.$structure->getTranslation('title'); +
+
+
+
+

+ '.$structure->getTranslation('title'); // Pulsante "Aggiungi" solo se il modulo รจ di tipo "table" e se esiste il template per la popup if ($structure->hasAddFile() && $structure->permission == 'rw') { echo ' - '; + '; } echo '

-
+

+
-
-
'; +
+
'; include base_dir().'/include/manager.php'; echo ' -
'; +
'; // Plugin $module_record = $record; @@ -81,14 +82,14 @@ foreach ($plugins as $plugin) { $record = $module_record; echo ' -
'; +
'; $id_plugin = $plugin->id; include base_dir().'/include/manager.php'; echo ' -
'; +
'; } $record = $module_record; @@ -99,14 +100,15 @@ redirectOperation($id_module, !empty($id_parent) ? $id_parent : $id_record); if ($user->is_admin && string_contains($module['option'], '|select|')) { echo '
-
- -
 
'; } -echo '
'; +echo ' +
'; // Widget in basso echo '{( "name": "widgets", "id_module": "'.$id_module.'", "position": "right", "place": "controller" )}';