invoice link
This commit is contained in:
@@ -1238,6 +1238,7 @@ function renderInvoices(data) {
|
|||||||
<span>Agent</span>
|
<span>Agent</span>
|
||||||
<span>Product</span>
|
<span>Product</span>
|
||||||
<span>Price</span>
|
<span>Price</span>
|
||||||
|
<span>PDF</span>
|
||||||
</div>
|
</div>
|
||||||
${data
|
${data
|
||||||
.map(
|
.map(
|
||||||
@@ -1247,6 +1248,7 @@ function renderInvoices(data) {
|
|||||||
<span class="invoice-uuid">${escHtml(inv.uuid || "—")}</span>
|
<span class="invoice-uuid">${escHtml(inv.uuid || "—")}</span>
|
||||||
<span class="invoice-product">${escHtml(inv.product || "—")}</span>
|
<span class="invoice-product">${escHtml(inv.product || "—")}</span>
|
||||||
<span class="invoice-price">€ ${escHtml(String(inv.price ?? "—"))}</span>
|
<span class="invoice-price">€ ${escHtml(String(inv.price ?? "—"))}</span>
|
||||||
|
<span class="invoice-dl">${inv.invoice_link ? `<a href="${escAttr(inv.invoice_link)}" target="_blank" rel="noopener" class="invoice-dl-link">Download</a>` : `<span class="invoice-dl-link invoice-dl-link--disabled">—</span>`}</span>
|
||||||
</div>`,
|
</div>`,
|
||||||
)
|
)
|
||||||
.join("")}
|
.join("")}
|
||||||
|
|||||||
+21
-1
@@ -1585,7 +1585,7 @@ body::after {
|
|||||||
|
|
||||||
.invoice-row {
|
.invoice-row {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 100px 1fr 1fr 80px;
|
grid-template-columns: 100px 1fr 1fr 80px 60px;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 7px 10px;
|
padding: 7px 10px;
|
||||||
@@ -1641,6 +1641,26 @@ body::after {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.invoice-dl {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invoice-dl-link {
|
||||||
|
color: var(--accent);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 11px;
|
||||||
|
transition: opacity 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invoice-dl-link:hover {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invoice-dl-link--disabled {
|
||||||
|
color: var(--text-muted);
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
/* ─── Credits Modal ────────────────────────────────────────── */
|
/* ─── Credits Modal ────────────────────────────────────────── */
|
||||||
.credits-key-label {
|
.credits-key-label {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|||||||
Reference in New Issue
Block a user