diff --git a/add.php b/add.php index 98f48dc75..c56d95fa5 100755 --- a/add.php +++ b/add.php @@ -62,6 +62,10 @@ $(document).ready(function(){ last = form.find(".box").last(); } + if (!last.length) { + last = form.find(".card").last(); + } + if (!last.length) { last = form.find(".row").eq(-2); } diff --git a/ajax_dataload.php b/ajax_dataload.php index 550b4ef9d..1bab2116f 100755 --- a/ajax_dataload.php +++ b/ajax_dataload.php @@ -168,7 +168,7 @@ if (!empty($query)) { // Icona elseif (preg_match('/^icon_(.+?)$/', trim($field), $m)) { - $value = ' '.$r['icon_title_'.$m[1]].''; + $value = ' '.$r['icon_title_'.$m[1]].''; } // Colore del testo diff --git a/assets/src/css/style.css b/assets/src/css/style.css index b30fb231f..5d225410d 100755 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -70,10 +70,9 @@ a.disabled { #progress .progress-bar span { position: absolute; - top: 2px; - left: 47%; - color: #a20; - font-weight: bold; + display: inline-block; + width: 100%; + text-align: center; } input[type=file] { @@ -149,7 +148,7 @@ input[type=file] { } .navbar a:hover, -.logo:hover, +.brand-link:hover, .alert a, .alert a:hover, a:hover, @@ -175,6 +174,11 @@ a:focus { margin: 7% auto } +.card-center-large { + width: 1000px; + margin: 7% auto +} + .box-center .box-body, .box-center-large .box-body { padding: 20px; @@ -246,7 +250,7 @@ a:focus { background: transparent url(../img/ajax-loader.gif) top left no-repeat; } -body .header .logo { +body .header .brand-link { font-family: inherit; } @@ -312,20 +316,18 @@ span.form-control { } .input-group-addon { - padding: 0px 12px; + padding: 3px 12px; } .colorpicker { margin-top: 0; } -#pulsanti.affix { +#pulsanti { top: 0; - padding: 10px 0; - width: 100%; - z-index: 800; - background: #fff; - border-bottom: 3px solid #ddd; + padding: 6px; + z-index: 1; + background: #f6f6f6; } @@ -333,6 +335,7 @@ span.form-control { .widget li { margin-left: 0; + padding-top:10px; list-style-type: none; height: 106px; } @@ -411,8 +414,8 @@ span.form-control { height: 30px; position: absolute; margin-left: -30px; - bottom: 7px; - right: 17px; + bottom: 1px; + right: 15px; float: right; display: block; overflow: hidden; @@ -427,12 +430,10 @@ span.form-control { .info-box-icon i { color: #fff; } - -.progress-description, -.info-box-text { +.progress-description { white-space: normal; overflow: auto; - font-size: 12px; + font-size: 1rem; } .colorpicker, @@ -484,14 +485,6 @@ span.form-control { box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset; } -/*.sidebar-menu li > a > .pull-right-container { - position: absolute; - padding: 12px; - right: 10px; - top: 50%; - margin-top: -19px; -}*/ - .sidebar-form { border-radius: 3px; margin: 10px 10px; @@ -536,14 +529,6 @@ span.form-control { display: none } -.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice { - margin: 2px 0 0 2px; -} - -.select2-container--bootstrap .select2-selection--single .select2-selection__rendered { - padding: 4px; -} - .input-group-addon.no-padding { border: 0px; } @@ -915,9 +900,9 @@ input.small-width { max-height: 20px; } -.logo-image { - max-width: 320px; - max-height: 60px; +.brand-link { + max-width: 150px; + max-height: 100px; } .has-feedback .form-control { @@ -967,10 +952,6 @@ div.tip { display: none; } -.checkbox-group input[type="checkbox"]+.btn-group>label span { - /*width: 20px;*/ -} - .checkbox-group input[type="checkbox"]+.btn-group { width: 100%; display: flex; @@ -1012,6 +993,15 @@ div.tip { color: #888; } + +.control-sidebar > ul { + display: block; +} + +.hide { + display: none; +} + /* Fix stile */ .skin-default .nav.navbar-nav li a { color: #FFFFFF; @@ -1065,6 +1055,14 @@ div.tip { padding: 2px; } +.table { + padding: .5 rem !important; +} + +table.dataTable { + border-collapse: collapse !important; +} + .alert-warning { background-color: #EC971F !important; } @@ -1098,14 +1096,6 @@ div.tip { margin-top: 4px; } -/* -* Spunta checkbox viste -*/ -/*table.dataTable>tbody>tr.selected>td.select-checkbox::after, -table.dataTable>tbody>tr.selected>th.select-checkbox::after { - margin-top: -25px; -}*/ - .btn-group>.btn-xs>input[type="checkbox"], .label>input[type="checkbox"] { margin: 2px 0px; } @@ -1203,7 +1193,7 @@ kbd{ margin-top: 20px } - .main-header .logo { + .main-header .brand-link { display: none; } } @@ -1259,12 +1249,14 @@ kbd{ @media screen and (min-width: 1140px) { .with-control-sidebar { - margin-right: 230px; + margin-right: 150px; } .control-sidebar-open { right: 0; display: block !important; + width: 150px !important; + top: calc(5rem) !important; } .control-sidebar.control-sidebar-open, @@ -1272,13 +1264,8 @@ kbd{ right: 0; } - .control-sidebar-toggle { - /*display: none !important;*/ - } } - - /* * Component: Sidebar Mini */ diff --git a/assets/src/js/base/navigation.js b/assets/src/js/base/navigation.js index 3552efe16..0bf4d633a 100644 --- a/assets/src/js/base/navigation.js +++ b/assets/src/js/base/navigation.js @@ -62,7 +62,7 @@ $(document).ready(function () { }); // Fix per la visualizzazione di Datatables all'interno dei tab Bootstrap - $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { + $('a[data-widget="tab"]').on('shown.bs.tab', function (e) { $($.fn.dataTable.tables(true)).DataTable().columns.adjust(); $($.fn.dataTable.tables(true)).DataTable().scroller.measure(); }); diff --git a/assets/src/js/base/sidebar.js b/assets/src/js/base/sidebar.js index 675a5fcde..63a73894a 100644 --- a/assets/src/js/base/sidebar.js +++ b/assets/src/js/base/sidebar.js @@ -17,31 +17,9 @@ */ $(document).ready(function () { - // Fix per il menu principale - $('.sidebar-menu').tree({ - followLink: true, - }); - - $('.sidebar-menu > li.treeview i.fa-angle-left').click(function (e) { - e.preventDefault(); - $(this).find('ul').stop().slideDown(); - }); - - $('.sidebar-menu > li.treeview i.fa-angle-down').click(function (e) { - e.preventDefault(); - $(this).find('ul').stop().slideUp(); - }); - - const elenco_menu = $('.treeview-menu > li.active'); - for (i = 0; i < elenco_menu.length; i++) { - const elemento = $(elenco_menu[i]); - elemento.parent().show().parent().addClass('active'); - elemento.parent().parent().find('i.fa-angle-left').removeClass('fa-angle-left').addClass('fa-angle-down'); - } - // Menu ordinabile if (!globals.is_mobile) { - const menu = sortable(".sidebar-menu", { + const menu = sortable(".nav-sidebar", { axis: "y", cursor: "move", dropOnEmpty: true, @@ -50,7 +28,7 @@ $(document).ready(function () { if (menu) { menu.addEventListener("sortupdate", function (e) { - let order = $(".sidebar-menu > .treeview[data-id]").toArray().map(a => $(a).data("id")) + let order = $(".nav-sidebar > .nav-item[data-id]").toArray().map(a => $(a).data("id")) $.post(globals.rootdir + "/actions.php", { id_module: globals.order_manager_id, diff --git a/assets/src/js/base/supersearch.js b/assets/src/js/base/supersearch.js index d05872ae2..eac309c47 100644 --- a/assets/src/js/base/supersearch.js +++ b/assets/src/js/base/supersearch.js @@ -52,7 +52,7 @@ $(document).ready(function () { // Trasformazione risultati in formato leggibile const results = data.map(function (result) { return { - label: result.label ? result.label : '