Contractqueue changes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user