mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-19 21:10:49 +01:00
Fix sidebar
This commit is contained in:
parent
7caf878698
commit
03abf74f58
@ -1559,6 +1559,34 @@ body:not(.sidebar-collapse) .sidebar .nav-treeview .nav-treeview .nav-link {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.with-control-sidebar {
|
||||||
|
margin-right: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-sidebar-open {
|
||||||
|
right: 0;
|
||||||
|
display: block !important;
|
||||||
|
width: 200px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-sidebar.control-sidebar-open,
|
||||||
|
.control-sidebar.control-sidebar-open+.control-sidebar-bg {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-sidebar-button{
|
||||||
|
position: fixed;
|
||||||
|
right: 0px;
|
||||||
|
padding: 10px;
|
||||||
|
top: 62px;
|
||||||
|
z-index: 50;
|
||||||
|
cursor: pointer;
|
||||||
|
background: #fff;
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-bottom-left-radius: 5px;
|
||||||
|
box-shadow: 0px 0px 3px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 767px) {
|
@media screen and (max-width: 767px) {
|
||||||
.navbar-left {
|
.navbar-left {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -1628,23 +1656,6 @@ body:not(.sidebar-collapse) .sidebar .nav-treeview .nav-treeview .nav-link {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media screen and (min-width: 1140px) {
|
|
||||||
.with-control-sidebar {
|
|
||||||
margin-right: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control-sidebar-open {
|
|
||||||
right: 0;
|
|
||||||
display: block !important;
|
|
||||||
width: 200px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control-sidebar.control-sidebar-open,
|
|
||||||
.control-sidebar.control-sidebar-open+.control-sidebar-bg {
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Component: Sidebar Mini
|
* Component: Sidebar Mini
|
||||||
|
@ -79,6 +79,18 @@ $(document).ready(function () {
|
|||||||
if (largeScreen && !globals.collapse_plugin_sidebar) {
|
if (largeScreen && !globals.collapse_plugin_sidebar) {
|
||||||
pluginToggle.click();
|
pluginToggle.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('.control-sidebar-button').on("click", function(){
|
||||||
|
toggleControlSidebar();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.control-sidebar .nav-item > a').on("click", function(){
|
||||||
|
toggleControlSidebar();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||||
|
window.dispatchEvent(new Event('resize'));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -88,13 +100,4 @@ function toggleControlSidebar() {
|
|||||||
const sidebar = $(".control-sidebar");
|
const sidebar = $(".control-sidebar");
|
||||||
|
|
||||||
sidebar.toggleClass("control-sidebar-open");
|
sidebar.toggleClass("control-sidebar-open");
|
||||||
|
|
||||||
if (sidebar.hasClass("control-sidebar-open")) {
|
|
||||||
sidebar.delay(50)
|
|
||||||
.animate(
|
|
||||||
{width: "show"},
|
|
||||||
350,
|
|
||||||
'easeInOutQuint'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -48,37 +48,25 @@ if ($segmenti) {
|
|||||||
|
|
||||||
// Lettura eventuali plugins modulo da inserire come tab
|
// Lettura eventuali plugins modulo da inserire come tab
|
||||||
echo '
|
echo '
|
||||||
<div class="nav-tabs-custom">
|
<section class="content-header">
|
||||||
<ul class="nav nav-tabs" id="tabs" role="tablist">
|
<div class="container-fluid">
|
||||||
<li class="pull-left active nav-item header">
|
<div class="row mb-2">
|
||||||
<a data-widget="tab" href="#tab_0" class="nav-link">
|
<div class="col-sm-6">
|
||||||
<i class="'.$structure['icon'].'"></i> '.$structure->getTranslation('title');
|
<h1>
|
||||||
|
<i class="'.$structure['icon'].'"></i> '.$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 '
|
||||||
|
<button type="button" class="btn btn-primary" data-widget="modal" data-title="'.tr('Aggiungi').'..." data-href="add.php?id_module='.$id_module.'&id_plugin='.$id_plugin.'"><i class="fa fa-plus"></i></button>';
|
||||||
|
}
|
||||||
|
|
||||||
// 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 '
|
||||||
|
</h1>
|
||||||
<button type="button" class="btn btn-primary" data-widget="modal" data-title="'.tr('Aggiungi').'..." data-href="add.php?id_module='.$id_module.'&id_plugin='.$id_plugin.'"><i class="fa fa-plus"></i></button>';
|
</div>
|
||||||
}
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
echo '
|
|
||||||
</a>
|
|
||||||
</li>';
|
|
||||||
|
|
||||||
$plugins = Plugin::where('idmodule_to', $id_module)->where('position', 'tab_main')->where('enabled', 1)->get();
|
|
||||||
|
|
||||||
// Tab dei plugin
|
|
||||||
foreach ($plugins as $plugin) {
|
|
||||||
echo '
|
|
||||||
<ul class="navbar-nav ml-auto">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" data-widget="tab" href="#tab_'.$plugin->id.'" id="link-tab_'.$plugin->id.'">'.$plugin->getTranslation('title').'</a>
|
|
||||||
</li>
|
|
||||||
</ul>';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '
|
|
||||||
</ul>
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="tab_0" class="tab-pane active">';
|
<div id="tab_0" class="tab-pane active">';
|
||||||
|
|
||||||
@ -105,9 +93,6 @@ foreach ($plugins as $plugin) {
|
|||||||
|
|
||||||
$record = $module_record;
|
$record = $module_record;
|
||||||
|
|
||||||
echo '
|
|
||||||
</div>';
|
|
||||||
|
|
||||||
redirectOperation($id_module, !empty($id_parent) ? $id_parent : $id_record);
|
redirectOperation($id_module, !empty($id_parent) ? $id_parent : $id_record);
|
||||||
|
|
||||||
// Interfaccia per la modifica dell'ordine e della visibilità delle colonne (Amministratore)
|
// Interfaccia per la modifica dell'ordine e della visibilità delle colonne (Amministratore)
|
||||||
|
38
editor.php
38
editor.php
@ -107,12 +107,12 @@ if (empty($record) || !$has_access) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
|
<section class="content-header">
|
||||||
<nav class="navbar navbar-expand navbar-light">
|
<div class="container-fluid">
|
||||||
<ul class="navbar-nav" id="tabs">
|
<div class="row mb-2">
|
||||||
<li class="nav-item">
|
<div class="col-sm-6">
|
||||||
<a data-widget="tab" href="#tab_0" class="nav-link">
|
<h1>
|
||||||
<i class="'.$structure['icon'].'"></i> '.$structure->getTranslation('title');
|
<i class="'.$structure['icon'].'"></i> '.$structure->getTranslation('title');
|
||||||
|
|
||||||
// Pulsante "Aggiungi" solo se il modulo è di tipo "table" e se esiste il template per la popup
|
// Pulsante "Aggiungi" solo se il modulo è di tipo "table" e se esiste il template per la popup
|
||||||
if ($structure->hasAddFile() && $structure->permission == 'rw') {
|
if ($structure->hasAddFile() && $structure->permission == 'rw') {
|
||||||
@ -121,19 +121,20 @@ if (empty($record) || !$has_access) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</a>
|
</h1>
|
||||||
</li>
|
</div>
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="navbar-nav ml-auto">
|
<div class="col-sm-6">
|
||||||
<li class="nav-item control-sidebar-toggle">
|
<ol class="breadcrumb float-sm-right">
|
||||||
<a class="nav-link" style="cursor: pointer">'.tr('Plugin').'</a>
|
<li class="breadcrumb-item"><a href="'.$rootdir.'/">Home</a></li>
|
||||||
</li>
|
<li class="breadcrumb-item"><a href="'.$rootdir.'/controller.php?id_module='.$id_module.'">'.$structure->getTranslation('title').'</a></li>
|
||||||
</ul>
|
</ol>
|
||||||
</nav>
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="tab_0" class="tab-pane active nav-item">';
|
<div id="tab_0" class="tab-pane active nav-item">';
|
||||||
|
|
||||||
if (!empty($record['deleted_at'])) {
|
if (!empty($record['deleted_at'])) {
|
||||||
$operation = $dbo->fetchOne("SELECT zz_operations.created_at, username FROM zz_operations INNER JOIN zz_users ON zz_operations.id_utente = zz_users.id WHERE op='delete' AND id_module=".prepare($id_module).' AND id_record='.prepare($id_record).' ORDER BY zz_operations.created_at DESC');
|
$operation = $dbo->fetchOne("SELECT zz_operations.created_at, username FROM zz_operations INNER JOIN zz_users ON zz_operations.id_utente = zz_users.id WHERE op='delete' AND id_module=".prepare($id_module).' AND id_record='.prepare($id_record).' ORDER BY zz_operations.created_at DESC');
|
||||||
@ -400,8 +401,7 @@ if (empty($record) || !$has_access) {
|
|||||||
$record = $module_record;
|
$record = $module_record;
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</div>
|
</div>';
|
||||||
</div>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
redirectOperation($id_module, !empty($id_parent) ? $id_parent : $id_record);
|
redirectOperation($id_module, !empty($id_parent) ? $id_parent : $id_record);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user