Contractqueue changes

This commit is contained in:
Frank Schubert
2024-08-01 19:15:44 +02:00
parent ffa5497759
commit 7f3075dae6
5 changed files with 117 additions and 26 deletions

View File

@@ -194,8 +194,12 @@
</div>
<div class="col-6">
<div class="card mb-1">
<div class="card mb-1" id="orderjournal-<?=$order->id?>" style="max-height: 280px; overflow: hidden; ">
<div onclick="toggleJournal(<?=$order->id?>)" class="opener text-center align-bottom pointer" style="position: absolute ; bottom: 0; height: 60px; width: 100%; background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);">
<i class="fas fa-chevron-down text-secondary" style="font-size: 18px; position:absolute; bottom:8px;"></i>
</div>
<div class="card-body">
<h5 class="m-0">Bestelljournal</h5>
<table class="table table-sm table-striped mt-1 mb-0">
@@ -248,6 +252,7 @@
<th>Verz. Verrechnungsstart</th>
<th>Erstellt</th>
<th>Zuletzt bearbeitet</th>
<th></th>
</tr>
<?php foreach($contracts as $contract): ?>
@@ -354,6 +359,11 @@
</td>
<td class="text-monospace"><?=date('d.m.Y H:i', $contract->orderproduct->create)?><br /><?=$contract->orderproduct->creator->name?></td>
<td class="text-monospace"><?=date('d.m.Y H:i', $contract->orderproduct->edit)?><br /><?=$contract->orderproduct->editor->name?></td>
<td>
<a href="<?=self::getUrl("Contractqueue", "deletePosition", ["op_id" => $contract->orderproduct_id])?>" onclick="if(!confirm('Löscht die Position in Bestellung und Contractqueue. Wirklich löschen?')) return false;">
<i class="far fa-xmark text-danger" title="Position in Bestellung und Contractqueue löschen"></i>
</a>
</td>
</tr>
<?php endforeach; ?>
</table>
@@ -721,6 +731,11 @@
});
}
function toggleJournal(order_id) {
$("#orderjournal-" + order_id).find("div.opener").remove();
$("#orderjournal-" + order_id).css("max-height", "550px").css("overflow", "auto");
}
</script>