File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2008,3 +2008,30 @@ body:not(.sidebar-collapse) .sidebar .nav-treeview .nav-treeview .nav-link {
20082008 font-size : 2.4em ;
20092009 }
20102010}
2011+
2012+ /* Stile migliorato per i titoli dei plugin */
2013+ .plugin-title {
2014+ padding : 10px 0 ;
2015+ border-bottom : 1px solid # eee ;
2016+ margin-bottom : 20px !important ;
2017+ width : 100% ;
2018+ }
2019+
2020+ .plugin-title .badge {
2021+ font-size : 85% ;
2022+ width : 22px ;
2023+ height : 22px ;
2024+ display : inline-flex;
2025+ align-items : center;
2026+ justify-content : center;
2027+ border-radius : 50% ;
2028+ }
2029+
2030+ .plugin-title .text-primary {
2031+ margin-left : 5px ;
2032+ }
2033+
2034+ /* Padding per il contenuto dei plugin */
2035+ .tab-pane [id ^= "tab_" ]: not (# tab_0 ) {
2036+ padding : 0 20px 20px 20px ;
2037+ }
Original file line number Diff line number Diff line change 4343 }
4444
4545 echo '
46- <h4>
47- <span class=" ' .(!empty ($ structure ['help ' ]) ? ' tip ' : '' ).'" ' .(!empty ($ structure ['help ' ]) ? ' title=" ' .prepareToField ($ structure ['help ' ]).'" data-position="bottom" ' : '' ).' >
48- ' .$ structure ->getTranslation ('title ' ).(!empty ($ structure ['help ' ]) ? ' <i class="fa fa-question-circle-o"></i> ' : '' ).'</span> ' ;
49-
50- echo '</span> ' ;
46+ <h4 class="plugin-title mb-3 d-flex align-items-center">
47+ <span class="badge badge-primary p-1 mr-2"><i class="fa fa-plug"></i></span>
48+ <span class=" ' .(!empty ($ structure ['help ' ]) ? ' tip ' : '' ).'" ' .(!empty ($ structure ['help ' ]) ? ' title=" ' .prepareToField ($ structure ['help ' ]).'" data-position="bottom" ' : '' ).' >
49+ <strong class="text-primary"> ' .$ structure ->getTranslation ('title ' ).'</strong> ' .(!empty ($ structure ['help ' ]) ? ' <i class="fa fa-question-circle-o"></i> ' : '' ).'</span> ' ;
5150
5251 if ($ structure ->hasAddFile ()) {
5352 echo '
54- <div class="pull-right ">
53+ <div class="ml-auto ">
5554 <button type="button" class="btn btn-primary" data-toggle="modal" data-title=" ' .tr ('Aggiungi ' ).'..." data-href="add.php?id_module= ' .$ id_module .'&id_plugin= ' .$ id_plugin .'&id_parent= ' .$ id_record .'"><i class="fa fa-plus"></i> ' .tr ('Nuovo ' ).'</button>
5655 </div> ' ;
5756 }
Original file line number Diff line number Diff line change @@ -644,9 +644,15 @@ function checkActiveTab() {
644644 if (activeTabId !== "tab_0") {
645645 // Nascondi il pulsante "Aggiungi" principale (quello accanto al nome del modulo)
646646 $(".content-header .btn-primary[data-title= \'Aggiungi... \'], .content-header .btn-primary[data-title= \'Aggiungi \'], .content-header button.btn-primary:has(i.fa-plus)").hide();
647+
648+ // Rendi il nome del modulo in text-muted
649+ $(".content-header h1").addClass("text-muted");
647650 } else {
648651 // Mostra il pulsante "Aggiungi" principale quando siamo nel tab principale
649652 $(".content-header .btn-primary[data-title= \'Aggiungi... \'], .content-header .btn-primary[data-title= \'Aggiungi \'], .content-header button.btn-primary:has(i.fa-plus)").show();
653+
654+ // Ripristina il colore normale del nome del modulo
655+ $(".content-header h1").removeClass("text-muted");
650656 }
651657 }
652658
You can’t perform that action at this time.
0 commit comments