fixed drag
This commit is contained in:
parent
8edccbdfef
commit
779821a08b
@ -425,6 +425,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
|
||||
<table id="tabProgrammati" class="table table-hover align-middle" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:30px;"></th>
|
||||
<th>Priority</th>
|
||||
<th>Matrice</th>
|
||||
<th>Mescola</th>
|
||||
@ -437,7 +438,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
|
||||
<th>kg p</th>
|
||||
<th>Ore</th>
|
||||
<th>Note</th>
|
||||
<th>Prod.</th>
|
||||
<th>Status</th>
|
||||
<th style="width: 80px;">Azioni</th>
|
||||
</tr>
|
||||
@ -448,7 +448,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
|
||||
<?php if ($r['id_status'] != 6) continue; ?>
|
||||
<tr data-id="<?= $r['id'] ?>" data-status="6" data-priority="<?= $r['priority'] ?? '' ?>"
|
||||
style="background-color: <?= $r['line_color'] ?> !important;">
|
||||
<?php include 'row_production.php'; ?>
|
||||
<?php $is_da_programmare = true;
|
||||
include 'row_production.php'; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
@ -465,7 +466,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
|
||||
<table id="tabDaProgrammare" class="table table-hover align-middle" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Data</th>
|
||||
<th style="width:30px;"></th>
|
||||
<th></th>
|
||||
<th>Matrice</th>
|
||||
<th>Mescola</th>
|
||||
<th>Linea</th>
|
||||
@ -477,7 +479,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
|
||||
<th>kg p</th>
|
||||
<th>Ore</th>
|
||||
<th>Note</th>
|
||||
<th>Prod.</th>
|
||||
<th>Status</th>
|
||||
<th style="width: 80px;">Azioni</th>
|
||||
</tr>
|
||||
@ -488,7 +489,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
|
||||
<?php if ($r['id_status'] != 1) continue; ?>
|
||||
<tr data-id="<?= $r['id'] ?>" data-status="1"
|
||||
style="background-color: <?= $r['line_color'] ?> !important;">
|
||||
<?php include 'row_production.php'; ?>
|
||||
<?php $is_da_programmare = true;
|
||||
include 'row_production.php'; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
@ -968,7 +970,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- MODALE PREVIEW FOTO -->
|
||||
<div id="imagePreviewModal" class="modal"
|
||||
|
||||
@ -1,57 +1,146 @@
|
||||
<td><span class='view'><?= $r['priority'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm' name='priority' type='text' value='<?= $r['priority'] ?>'>
|
||||
<td class="drag-handle text-center" style="cursor:grab;">
|
||||
<i class="bi bi-list" style="font-size:1.2rem;"></i>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['matrice'] ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2' name='idmatrice'><?= selectOptions($matrici, $r['idmatrice']) ?></select>
|
||||
|
||||
<td>
|
||||
<span class='view'><?= $r['priority'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm'
|
||||
name='priority'
|
||||
type='text'
|
||||
value='<?= $r['priority'] ?>'>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['mescola'] ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2' name='idmescola'><?= selectOptions($mescole, $r['idmescola']) ?></select>
|
||||
</td>
|
||||
<td data-line-id="<?= $r['id_linea'] ?>">
|
||||
<span class='view'><?= $r['linea'] ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2' name='id_linea'><?= selectOptions($linee, $r['id_linea'], 'id', 'name') ?></select>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['cliente'] ?? '-' ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2' name='id_cliente'>
|
||||
<option value=''>-</option><?= selectOptions($clienti, $r['id_cliente']) ?>
|
||||
|
||||
|
||||
<td>
|
||||
<span class='view'><?= $r['matrice'] ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2'
|
||||
name='idmatrice'>
|
||||
<?= selectOptions($matrici, $r['idmatrice']) ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['data_zibo'] ? date('d/m/Y', strtotime($r['data_zibo'])) : '-' ?></span>
|
||||
<input class='inline-edit form-control form-control-sm' name='data_zibo' type='date' value='<?= $r['data_zibo'] ?>'>
|
||||
|
||||
<td>
|
||||
<span class='view'><?= $r['mescola'] ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2'
|
||||
name='idmescola'>
|
||||
<?= selectOptions($mescole, $r['idmescola']) ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['data_cliente'] ? date('d/m/Y', strtotime($r['data_cliente'])) : '-' ?></span>
|
||||
<input class='inline-edit form-control form-control-sm' name='data_cliente' type='date' value='<?= $r['data_cliente'] ?>'>
|
||||
|
||||
<td data-line-id="<?= $r['id_linea'] ?>">
|
||||
<span class='view'><?= $r['linea'] ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2'
|
||||
name='id_linea'>
|
||||
<?= selectOptions($linee, $r['id_linea'], 'id', 'name') ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['metri'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm' name='metri' type='number' step='0.01' value='<?= $r['metri'] ?>'>
|
||||
|
||||
<td>
|
||||
<span class='view'><?= $r['cliente'] ?? '-' ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2'
|
||||
name='id_cliente'>
|
||||
<option value=''>-</option>
|
||||
<?= selectOptions($clienti, $r['id_cliente']) ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['kg_sp'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm' name='kg_sp' type='number' step='0.01' value='<?= $r['kg_sp'] ?>'>
|
||||
|
||||
<td>
|
||||
<span class='view'>
|
||||
<?= $r['data_zibo'] ? date('d/m/Y', strtotime($r['data_zibo'])) : '-' ?>
|
||||
</span>
|
||||
<input class='inline-edit form-control form-control-sm'
|
||||
name='data_zibo'
|
||||
type='date'
|
||||
value='<?= $r['data_zibo'] ?>'>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['kg_p'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm' name='kg_p' type='number' step='0.01' value='<?= $r['kg_p'] ?>'>
|
||||
|
||||
<td>
|
||||
<span class='view'>
|
||||
<?= $r['data_cliente'] ? date('d/m/Y', strtotime($r['data_cliente'])) : '-' ?>
|
||||
</span>
|
||||
<input class='inline-edit form-control form-control-sm'
|
||||
name='data_cliente'
|
||||
type='date'
|
||||
value='<?= $r['data_cliente'] ?>'>
|
||||
</td>
|
||||
<td><span class='view'><?= $r['ore_previste'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm' name='ore_previste' type='number' step='0.01' value='<?= $r['ore_previste'] ?>'>
|
||||
|
||||
<td>
|
||||
<span class='view'><?= $r['metri'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm'
|
||||
name='metri'
|
||||
type='number'
|
||||
step='0.01'
|
||||
value='<?= $r['metri'] ?>'>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<span class='view'><?= $r['kg_sp'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm'
|
||||
name='kg_sp'
|
||||
type='number'
|
||||
step='0.01'
|
||||
value='<?= $r['kg_sp'] ?>'>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<span class='view'><?= $r['kg_p'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm'
|
||||
name='kg_p'
|
||||
type='number'
|
||||
step='0.01'
|
||||
value='<?= $r['kg_p'] ?>'>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<span class='view'><?= $r['ore_previste'] ?></span>
|
||||
<input class='inline-edit form-control form-control-sm'
|
||||
name='ore_previste'
|
||||
type='number'
|
||||
step='0.01'
|
||||
value='<?= $r['ore_previste'] ?>'>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<span class='view'>
|
||||
<i class='bi bi-file-text note-icon <?= !empty($r['note_extra']) ? "has-note" : "" ?>'
|
||||
data-note='<?= htmlspecialchars($r['note_extra'] ?? '') ?>'
|
||||
data-bs-toggle='modal' data-bs-target='#modalNoteView'></i>
|
||||
data-bs-toggle='modal'
|
||||
data-bs-target='#modalNoteView'></i>
|
||||
</span>
|
||||
<textarea class='inline-edit form-control form-control-sm' name='note_extra' rows='2'><?= htmlspecialchars($r['note_extra'] ?? '') ?></textarea>
|
||||
</td>
|
||||
<td><span class='view'><?= date('d/m/Y', strtotime($r['data_produzione'])) ?></span>
|
||||
<input class='inline-edit form-control form-control-sm' name='data_produzione' type='date' value='<?= $r['data_produzione'] ?>'>
|
||||
|
||||
<textarea class='inline-edit form-control form-control-sm'
|
||||
name='note_extra'
|
||||
rows='2'><?= htmlspecialchars($r['note_extra'] ?? '') ?></textarea>
|
||||
</td>
|
||||
|
||||
<!-- COLONNA PROD. ELIMINATA -->
|
||||
|
||||
<td>
|
||||
<span class='badge view' style='background-color: <?= $r['badge_color'] ?>; color: #fff;'><?= ucfirst($r['status_nome']) ?></span>
|
||||
<select class='inline-edit form-select form-select-sm select2' name='id_status'><?= selectOptions($status_list, $r['id_status'], 'id', 'nome') ?></select>
|
||||
<span class='badge view'
|
||||
style='background-color: <?= $r['badge_color'] ?>; color:#fff;'>
|
||||
<?= ucfirst($r['status_nome']) ?>
|
||||
</span>
|
||||
|
||||
<select class='inline-edit form-select form-select-sm select2'
|
||||
name='id_status'>
|
||||
<?= selectOptions($status_list, $r['id_status'], 'id', 'nome') ?>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<button class='btn btn-xs btn-outline-primary edit-row'><i class='bi bi-pencil'></i></button>
|
||||
<button class='btn btn-xs btn-success save-row d-none'><i class='bi bi-check-lg'></i></button>
|
||||
<button class='btn btn-xs btn-secondary cancel-row d-none'><i class='bi bi-x-lg'></i></button>
|
||||
<button class='btn btn-xs btn-outline-danger delete-row'><i class='bi bi-trash-fill'></i></button>
|
||||
<button class='btn btn-xs btn-outline-primary edit-row'>
|
||||
<i class='bi bi-pencil'></i>
|
||||
</button>
|
||||
|
||||
<button class='btn btn-xs btn-success save-row d-none'>
|
||||
<i class='bi bi-check-lg'></i>
|
||||
</button>
|
||||
|
||||
<button class='btn btn-xs btn-secondary cancel-row d-none'>
|
||||
<i class='bi bi-x-lg'></i>
|
||||
</button>
|
||||
|
||||
<button class='btn btn-xs btn-outline-danger delete-row'>
|
||||
<i class='bi bi-trash-fill'></i>
|
||||
</button>
|
||||
</td>
|
||||
Loading…
x
Reference in New Issue
Block a user