update
This commit is contained in:
@@ -1684,6 +1684,7 @@ details[open] > .order-statuses-side__title .order-statuses-side__arrow {
|
||||
.payment-add-form__actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.order-kv dt {
|
||||
|
||||
@@ -57,7 +57,7 @@ foreach ($addressesList as $address) {
|
||||
</div>
|
||||
<div class="order-details-actions">
|
||||
<button type="button" class="btn btn--secondary btn--disabled">Strefa klienta</button>
|
||||
<a href="/orders/<?= $e((string) ($orderId ?? 0)) ?>/shipment/prepare" class="btn btn--secondary">Przygotuj przesylke</a>
|
||||
<a href="/orders/<?= $e((string) ($orderId ?? 0)) ?>/shipment/prepare" class="btn btn--primary">Przygotuj przesylke</a>
|
||||
<?php if ($receiptConfigsList !== []): ?>
|
||||
<a href="/orders/<?= $e((string) ($orderId ?? 0)) ?>/receipt/create" class="btn btn--secondary">Wystaw paragon</a>
|
||||
<?php endif; ?>
|
||||
@@ -73,7 +73,7 @@ foreach ($addressesList as $address) {
|
||||
<?php else: ?>
|
||||
<button type="button" class="btn btn--secondary btn--disabled" title="Skonfiguruj skrzynke i szablony w Ustawieniach">Wyslij e-mail</button>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="btn btn--secondary btn--disabled">Platnosc</button>
|
||||
<button type="button" class="btn btn--secondary" id="btn-header-payment">Platnosc</button>
|
||||
<button type="button" class="btn btn--secondary btn--disabled">Drukuj</button>
|
||||
<button type="button" class="btn btn--primary btn--disabled">Pakuj</button>
|
||||
<button type="button" class="btn btn--secondary btn--disabled">Edytuj</button>
|
||||
@@ -781,6 +781,17 @@ foreach ($addressesList as $address) {
|
||||
try { savedTab = localStorage.getItem(storageKey); } catch (e) {}
|
||||
setActiveTab(forceTab || savedTab || 'details');
|
||||
|
||||
// Header "Platnosc" button — switch to payments tab and open form
|
||||
var btnHeaderPayment = document.getElementById('btn-header-payment');
|
||||
if (btnHeaderPayment) {
|
||||
btnHeaderPayment.addEventListener('click', function () {
|
||||
setActiveTab('payments');
|
||||
try { localStorage.setItem(storageKey, 'payments'); } catch (e) {}
|
||||
var form = document.getElementById('payment-add-form');
|
||||
if (form) form.style.display = '';
|
||||
});
|
||||
}
|
||||
|
||||
// Print label button handler (delegated for dynamically added buttons)
|
||||
document.addEventListener('click', function (e) {
|
||||
var btn = e.target.closest('.btn-print-label');
|
||||
|
||||
Reference in New Issue
Block a user