fix: Kabel-Filter Checkbox besser sichtbar machen
- Checkbox jetzt rechts oben neben Titel positioniert - Grauer Hintergrund mit Rahmen für bessere Sichtbarkeit - Filter-Icon hinzugefügt - Inline-Form für sofortiges Submit beim Klicken Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
953774c9f7
commit
848f24e7c5
1 changed files with 9 additions and 8 deletions
17
import.php
17
import.php
|
|
@ -2908,19 +2908,20 @@ if ($action == 'edit' && $import->id > 0) {
|
||||||
print ' <span class="badge badge-info">'.count($datanormPreviewMatches).' '.$langs->trans('Matches').'</span>';
|
print ' <span class="badge badge-info">'.count($datanormPreviewMatches).' '.$langs->trans('Matches').'</span>';
|
||||||
|
|
||||||
// Filter: Kabel ausblenden (in eigenem Form für sofortiges Submit)
|
// Filter: Kabel ausblenden (in eigenem Form für sofortiges Submit)
|
||||||
print '<span style="margin-left: 15px;">';
|
$hideCables = GETPOST('hide_cables', 'int');
|
||||||
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'" style="display: inline;">';
|
$checked = $hideCables ? ' checked' : '';
|
||||||
|
print '<div style="float: right; margin-top: -5px;">';
|
||||||
|
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'" style="display: inline-block; margin: 0; padding: 5px 10px; background-color: #f8f8f8; border: 1px solid #ddd; border-radius: 4px;">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
print '<input type="hidden" name="action" value="previewdatanorm">';
|
print '<input type="hidden" name="action" value="previewdatanorm">';
|
||||||
print '<input type="hidden" name="id" value="'.$import->id.'">';
|
print '<input type="hidden" name="id" value="'.$import->id.'">';
|
||||||
$hideCables = GETPOST('hide_cables', 'int');
|
print '<label style="font-weight: normal; cursor: pointer; margin: 0;">';
|
||||||
$checked = $hideCables ? ' checked' : '';
|
print '<input type="checkbox" id="hide_cables" name="hide_cables" value="1"'.$checked.' onchange="this.form.submit();" style="vertical-align: middle; margin-right: 5px;">';
|
||||||
print '<label style="font-weight: normal; cursor: pointer;">';
|
print '<span style="color: #333; font-size: 13px;"><i class="fas fa-filter"></i> Kabel ausblenden</span>';
|
||||||
print '<input type="checkbox" id="hide_cables" name="hide_cables" value="1"'.$checked.' onchange="this.form.submit();">';
|
|
||||||
print ' <span style="color: #666;">Kabel ausblenden</span>';
|
|
||||||
print '</label>';
|
print '</label>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
print '</span>';
|
print '</div>';
|
||||||
|
print '<div style="clear: both;"></div>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'" id="datanorm_confirm_form">';
|
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'" id="datanorm_confirm_form">';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue