Fix menu dropdown

This commit is contained in:
FabioL 2024-05-22 17:16:50 +02:00
parent 41316a5557
commit feabb1b215
11 changed files with 21 additions and 16 deletions

View File

@ -1026,6 +1026,11 @@ table.dataTable {
margin-top: 4px;
}
.select2-container--bootstrap4 .select2-selection__clear {
padding-left: 0.21em;
padding-top: 0.05em;
}
.btn-group>.btn-xs>input[type="checkbox"], .label>input[type="checkbox"] {
margin: 2px 0px;
}

View File

@ -84,6 +84,7 @@ const JS = gulp.parallel(() => {
'autosize/dist/autosize.js',
'autocompleter/autocomplete.js',
'html5sortable/dist/html5sortable.js',
'popper.js/dist/umd/popper.js',
'bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js',
'moment/moment.js',
'components-jqueryui/jquery-ui.js',
@ -124,7 +125,6 @@ const JS = gulp.parallel(() => {
'leaflet-gesture-handling/dist/leaflet-gesture-handling.min.js',
'ismobilejs/dist/isMobile.min.js',
'ua-parser-js/dist/ua-parser.min.js',
'popper.js/dist/umd/popper.js',
];
for (const i in vendor) {

View File

@ -366,7 +366,7 @@ if (!$block_edit) {
</a>
<div class="btn-group tip" data-card-widget="tooltip">
<button type="button" class="btn btn-primary dropdown-toggle" data-card-widget="dropdown" aria-haspopup="true" aria-expanded="true">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-list"></i> '.tr('Altro').'
<span class="caret"></span>
</button>

View File

@ -91,7 +91,7 @@ echo '
<div class="row">
<!-- STATI INTERVENTO -->
<div class="dropdown col-md-3" id="dashboard_stati">
<button type="button" class="btn btn-block counter_object" data-card-widget="dropdown">
<button type="button" class="btn btn-block counter_object" data-toggle="dropdown">
<i class="fa fa-filter"></i> '.tr('Stati attività').'
(<span class="selected_counter"></span>/<span class="total_counter"></span>) <i class="caret"></i>
</button>
@ -128,7 +128,7 @@ echo '
<!-- TIPI INTERVENTO -->
<div class="dropdown col-md-3" id="dashboard_tipi">
<button type="button" class="btn btn-block counter_object" data-card-widget="dropdown">
<button type="button" class="btn btn-block counter_object" data-toggle="dropdown">
<i class="fa fa-filter"></i> '.tr('Tipi attività').'
(<span class="selected_counter"></span>/<span class="total_counter"></span>) <i class="caret"></i>
</button>
@ -165,7 +165,7 @@ echo '
<!-- TECNICI -->
<div class="dropdown col-md-3" id="dashboard_tecnici">
<button type="button" class="btn btn-block counter_object" data-card-widget="dropdown">
<button type="button" class="btn btn-block counter_object" data-toggle="dropdown">
<i class="fa fa-filter"></i> '.tr('Tecnici').'
(<span class="selected_counter"></span>/<span class="total_counter"></span>) <i class="caret"></i>
</button>
@ -201,7 +201,7 @@ echo '
<!-- ZONE -->
<div class="dropdown col-md-3" id="dashboard_zone">
<button type="button" class="btn btn-block counter_object" data-card-widget="dropdown">
<button type="button" class="btn btn-block counter_object" data-toggle="dropdown">
<i class="fa fa-filter"></i> '.tr('Zone').'
(<span class="selected_counter"></span>/<span class="total_counter"></span>) <i class="caret"></i>
</button>

View File

@ -590,7 +590,7 @@ if (!$block_edit) {
</a>
<div class="btn-group tip" data-card-widget="tooltip">
<button type="button" class="btn btn-primary dropdown-toggle" data-card-widget="dropdown" aria-haspopup="true" aria-expanded="true">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-list"></i> '.tr('Altro').'
<span class="caret"></span>
</button>

View File

@ -899,7 +899,7 @@ if (!$block_edit) {
</a>
<div class="btn-group tip" data-card-widget="tooltip">
<button type="button" class="btn btn-primary dropdown-toggle" data-card-widget="dropdown" aria-haspopup="true" aria-expanded="true">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-list"></i> '.tr('Altro').'
<span class="caret"></span>
</button>

View File

@ -70,7 +70,7 @@ echo '
<div class="card-header with-border">
<h3 class="card-title">'.tr('Dati cliente').'</h3>
<div class="card-tools pull-right">
<button type="button" class="btn btn-card-tool" data-card-widget="collapse">
<button type="button" class="btn btn-xs btn-card-tool" data-card-widget="collapse">
<i class="fa fa-'.(empty($espandi_dettagli) ? 'plus' : 'minus').'"></i>
</button>
</div>
@ -492,7 +492,7 @@ if (!$block_edit) {
</a>
<div class="btn-group tip" data-card-widget="tooltip">
<button type="button" class="btn btn-primary dropdown-toggle" data-card-widget="dropdown" aria-haspopup="true" aria-expanded="true">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-list"></i> '.tr('Altro').'
<span class="caret"></span>
</button>

View File

@ -282,7 +282,7 @@ if (!$block_edit) {
</a>
<div class="btn-group tip" data-card-widget="tooltip">
<button type="button" class="btn btn-primary dropdown-toggle" data-card-widget="dropdown" aria-haspopup="true" aria-expanded="true">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-list"></i> '.tr('Altro').'
<span class="caret"></span>
</button>

View File

@ -276,7 +276,7 @@ if (!$block_edit) {
</a>
<div class="btn-group tip" data-card-widget="tooltip">
<button type="button" class="btn btn-primary dropdown-toggle" data-card-widget="dropdown" aria-haspopup="true" aria-expanded="true">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-list"></i> '.tr('Altro').'
<span class="caret"></span>
</button>

View File

@ -42,7 +42,7 @@ if (sizeof($rs_doc) > 0) {
<br>
<div class="btn-group">
<a href="<?php echo base_path(); ?>/editor.php?id_module=<?php echo (new Module())->getByField('title', 'Preventivi', Models\Locale::getPredefined()->id); ?>&id_record=<?php echo $rs_doc[0]['iddocumento']; ?>" class="btn btn-info"><i class="fa fa-chevron-left"></i> <?php echo tr('Vai alla fattura'); ?></a>
<a type="button" class="btn btn-info dropdown-toggle" data-card-widget="dropdown" aria-haspopup="true" aria-expanded="false">
<a type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</a>
@ -57,7 +57,7 @@ if (sizeof($rs_doc) > 0) {
<div class="col-md-2">
<br>
<div class="btn-group">
<button type="button" class="btn btn-info dropdown-toggle" data-card-widget="dropdown" aria-haspopup="true" aria-expanded="false">
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php echo tr('Più fatture collegate'); ?>... <span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>

View File

@ -164,8 +164,8 @@ class ButtonManager implements ManagerInterface
}
$result .= '
<button type="button" class="btn '.$options['class'].' dropdown-toggle" data-widget="dropdown" aria-haspopup="true" aria-expanded="false">
'.($predefined === false ? $this->defaultText($options).' ' : '').'<span class="caret"></span>
<button type="button" class="btn '.$options['class'].' dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
'.($predefined === false ? $this->defaultText($options).' ' : '').'
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu dropdown-menu-right">';