Fix minore

This commit is contained in:
valentina 2024-06-13 09:52:45 +02:00
parent 5a143c9150
commit 067aeadb97
1 changed files with 6 additions and 6 deletions

View File

@ -37,16 +37,16 @@ foreach ($stati as $stato) {
} }
echo ' echo '
<div class="btn-group tip" data-widget="tooltip" title="'.tr("Per creare un documento deve essere inserita almeno una riga e lo stato dell'ordine deve essere tra: _STATE_LIST_", [ <div class="btn-group tip" data-toggle="tooltip" title="'.tr("Per creare un documento deve essere inserita almeno una riga e lo stato dell'ordine deve essere tra: _STATE_LIST_", [
'_STATE_LIST_' => implode(', ', $stati_importabili), '_STATE_LIST_' => implode(', ', $stati_importabili),
]).'"> ]).'">
<button class="btn btn-info dropdown-toggle '.(in_array($record['stato'], $stati_importabili) ? '' : 'disabled').'" type="button" data-widget="dropdown" aria-haspopup="true" aria-expanded="true"> <button class="btn btn-info dropdown-toggle '.(in_array($record['stato'], $stati_importabili) ? '' : 'disabled').'" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-magic"></i> '.tr('Crea').' <i class="fa fa-magic"></i> '.tr('Crea').'
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul class="dropdown-menu dropdown-menu-right"> <ul class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" data-href="'.$structure->fileurl('crea_documento.php').'?id_module='.$id_module.'&id_record='.$id_record.'&documento=intervento" data-widget="modal" data-title="'.tr('Crea attività').'"> <a class="dropdown-item" data-href="'.$structure->fileurl('crea_documento.php').'?id_module='.$id_module.'&id_record='.$id_record.'&documento=intervento" data-toggle="modal" data-title="'.tr('Crea attività').'">
<i class="fa fa-wrench"></i> '.tr('Attività').' <i class="fa fa-wrench"></i> '.tr('Attività').'
</a> </a>
'; ';
@ -54,7 +54,7 @@ echo '
if ($dir == 'entrata') { if ($dir == 'entrata') {
echo ' echo '
<a class="dropdown-item" data-href="'.$structure->fileurl('crea_documento.php').'?id_module='.$id_module.'&id_record='.$id_record.'&documento=ordine_fornitore" data-widget="modal" data-title="'.tr('Crea ordine fornitore').'"> <a class="dropdown-item" data-href="'.$structure->fileurl('crea_documento.php').'?id_module='.$id_module.'&id_record='.$id_record.'&documento=ordine_fornitore" data-toggle="modal" data-title="'.tr('Crea ordine fornitore').'">
<i class="fa fa-file-o"></i> '.tr('Ordine fornitore').' <i class="fa fa-file-o"></i> '.tr('Ordine fornitore').'
</a> </a>
'; ';
@ -62,11 +62,11 @@ if ($dir == 'entrata') {
echo ' echo '
<a class="dropdown-item" data-href="'.$structure->fileurl('crea_documento.php').'?id_module='.$id_module.'&id_record='.$id_record.'&documento=ddt" data-widget="modal" data-title="'.tr('Crea ddt').'"> <a class="dropdown-item" data-href="'.$structure->fileurl('crea_documento.php').'?id_module='.$id_module.'&id_record='.$id_record.'&documento=ddt" data-toggle="modal" data-title="'.tr('Crea ddt').'">
<i class="fa fa-truck"></i> '.tr('Ddt').' <i class="fa fa-truck"></i> '.tr('Ddt').'
</a> </a>
<a class="dropdown-item" data-href="'.$structure->fileurl('crea_documento.php').'?id_module='.$id_module.'&id_record='.$id_record.'&documento=fattura" data-widget="modal" data-title="'.tr('Crea fattura').'"> <a class="dropdown-item" data-href="'.$structure->fileurl('crea_documento.php').'?id_module='.$id_module.'&id_record='.$id_record.'&documento=fattura" data-toggle="modal" data-title="'.tr('Crea fattura').'">
<i class="fa fa-file"></i> '.tr('Fattura').' <i class="fa fa-file"></i> '.tr('Fattura').'
</a> </a>