imported && tolims

This commit is contained in:
2026-03-26 16:05:17 +03:00
parent 223688c372
commit 2a7b1fae17
11 changed files with 4480 additions and 23 deletions
+7 -8
View File
@@ -340,6 +340,7 @@ function fixedDefaultValue(array $f): string
align-items: center;
padding: 0;
border-bottom: 1px solid #dee2e6;
min-width: fit-content;
}
.grid-row:last-child {
@@ -890,9 +891,8 @@ function fixedDefaultValue(array $f): string
<div class="page-wrapper">
<div class="page-content">
<div class="mb-3 text">
<a href="historical_trf.php?id=<?= $template_id ?>&status=i" class="btn btn-warning me-2">Imported (i)</a>
<a href="historical_trf.php?id=<?= $template_id ?>&status=P" class="btn btn-primary me-2">In Progress (P)</a>
<a href="historical_trf.php?id=<?= $template_id ?>&status=l" class="btn btn-success">To LIMS (l)</a>
<a href="imported.php?id=<?= $template_id ?>" class="btn btn-warning me-2">Imported (i)</a>
<a href="tolims.php?id=<?= $template_id ?>" class="btn btn-success">To LIMS (l)</a>
</div>
<div class="card radius-10">
<div class="card-header">
@@ -2312,7 +2312,7 @@ function fixedDefaultValue(array $f): string
} else {
// Select nativa
try {
$(dropdown).select2('destroy');
if ($(dropdown).hasClass('select2-hidden-accessible')) $(dropdown).select2('destroy');
} catch (e) {}
dropdown.innerHTML = '<option value="">Seleziona...</option>';
items.forEach(value => {
@@ -2755,7 +2755,8 @@ function fixedDefaultValue(array $f): string
if (results.length > 12) {
// Select2 con ricerca
$select.select2('destroy').empty().select2({
if ($select.hasClass('select2-hidden-accessible')) $select.select2('destroy');
$select.empty().select2({
data: [{
id: '',
text: 'Seleziona...'
@@ -2766,9 +2767,7 @@ function fixedDefaultValue(array $f): string
});
} else {
// Select nativa senza Select2
try {
$select.select2('destroy');
} catch (e) {}
if ($select.hasClass('select2-hidden-accessible')) $select.select2('destroy');
$select.empty();
$select.append(new Option('Seleziona...', '', true, false));
results.forEach(r => {