NEW Better responsive for mass actions

This commit is contained in:
Laurent Destailleur
2023-02-20 20:17:19 +01:00
parent 9627bc14fa
commit 341a9ad283
2 changed files with 13 additions and 5 deletions

View File

@@ -5448,6 +5448,7 @@ function print_barre_liste($titre, $page, $file, $options = '', $sortfield = '',
if ($picto && $titre) { if ($picto && $titre) {
print '<td class="nobordernopadding widthpictotitle valignmiddle col-picto">'.img_picto('', $picto, 'class="valignmiddle pictotitle widthpictotitle"', $pictoisfullpath).'</td>'; print '<td class="nobordernopadding widthpictotitle valignmiddle col-picto">'.img_picto('', $picto, 'class="valignmiddle pictotitle widthpictotitle"', $pictoisfullpath).'</td>';
} }
print '<td class="nobordernopadding valignmiddle col-title">'; print '<td class="nobordernopadding valignmiddle col-title">';
print '<div class="titre inline-block">'.$titre; print '<div class="titre inline-block">'.$titre;
if (!empty($titre) && $savtotalnboflines >= 0 && (string) $savtotalnboflines != '') { if (!empty($titre) && $savtotalnboflines >= 0 && (string) $savtotalnboflines != '') {
@@ -5456,7 +5457,7 @@ function print_barre_liste($titre, $page, $file, $options = '', $sortfield = '',
print '</div></td>'; print '</div></td>';
// Center // Center
if ($morehtmlcenter) { if ($morehtmlcenter && empty($conf->dol_optimize_smallscreen)) {
print '<td class="nobordernopadding center valignmiddle col-center">'.$morehtmlcenter.'</td>'; print '<td class="nobordernopadding center valignmiddle col-center">'.$morehtmlcenter.'</td>';
} }
@@ -5541,8 +5542,15 @@ function print_barre_liste($titre, $page, $file, $options = '', $sortfield = '',
} }
print '</td>'; print '</td>';
print '</tr>';
print '</table>'."\n";
// Center
if ($morehtmlcenter && !empty($conf->dol_optimize_smallscreen)) {
print '<div class="nobordernopadding marginbottomonly center valignmiddle col-center centpercent">'.$morehtmlcenter.'</div>';
}
print '</tr></table>'."\n";
print "<!-- End title -->\n\n"; print "<!-- End title -->\n\n";
} }

View File

@@ -958,12 +958,12 @@ if ($user->hasRight("societe", "creer")) {
if ($user->hasRight("societe", "creer")) { if ($user->hasRight("societe", "creer")) {
$arrayofmassactions['presetcommercial'] = img_picto('', 'user', 'class="pictofixedwidth"').$langs->trans("AllocateCommercial"); $arrayofmassactions['presetcommercial'] = img_picto('', 'user', 'class="pictofixedwidth"').$langs->trans("AllocateCommercial");
} }
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete', 'preaffecttag', 'preenable', 'preclose'))) {
$arrayofmassactions = array();
}
if ($user->hasRight('societe', 'supprimer')) { if ($user->hasRight('societe', 'supprimer')) {
$arrayofmassactions['predelete'] = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Delete"); $arrayofmassactions['predelete'] = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Delete");
} }
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete', 'preaffecttag', 'preenable', 'preclose'))) {
$arrayofmassactions = array();
}
$massactionbutton = $form->selectMassAction('', $arrayofmassactions); $massactionbutton = $form->selectMassAction('', $arrayofmassactions);
$typefilter = ''; $typefilter = '';