Compare commits
2 Commits
74009324a5
...
c7529500d1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7529500d1 | ||
|
|
44b57f91a8 |
22
app.py
22
app.py
@@ -495,6 +495,20 @@ TPL_BASE = """
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
/* Every box prints on its own page */
|
||||||
|
@media print {
|
||||||
|
.print-block {
|
||||||
|
page-break-before: always !important;
|
||||||
|
break-before: page !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* remove first blank page */
|
||||||
|
.print-block:first-child {
|
||||||
|
page-break-before: avoid !important;
|
||||||
|
break-before: avoid !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Base print reset */
|
/* Base print reset */
|
||||||
@media print {
|
@media print {
|
||||||
html, body {
|
html, body {
|
||||||
@@ -839,7 +853,7 @@ TPL_INFO_PAGE = """
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Quick Contacts -->
|
<!-- Quick Contacts -->
|
||||||
<div class="rounded-2xl border border-slate-800 bg-slate-900/60">
|
<div class="rounded-2xl border border-slate-800 bg-slate-900/60 print-block">
|
||||||
<div class="flex items-center justify-between p-4 border-b border-slate-800">
|
<div class="flex items-center justify-between p-4 border-b border-slate-800">
|
||||||
<h2 class="text-lg font-semibold">Quick Contacts</h2>
|
<h2 class="text-lg font-semibold">Quick Contacts</h2>
|
||||||
<input id="q" placeholder="Filter by name…" class="px-3 py-2 rounded-lg bg-slate-950 border border-slate-700 text-sm" oninput="filterContacts(this.value)">
|
<input id="q" placeholder="Filter by name…" class="px-3 py-2 rounded-lg bg-slate-950 border border-slate-700 text-sm" oninput="filterContacts(this.value)">
|
||||||
@@ -859,7 +873,7 @@ TPL_INFO_PAGE = """
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Department Extensions -->
|
<!-- Department Extensions -->
|
||||||
<div class="rounded-2xl border border-slate-800 bg-slate-900/60 overflow-x-auto">
|
<div class="rounded-2xl border border-slate-800 bg-slate-900/60 overflow-x-auto print-block">
|
||||||
<div class="p-4 border-b border-slate-800">
|
<div class="p-4 border-b border-slate-800">
|
||||||
<h2 class="text-lg font-semibold">Department Extensions</h2>
|
<h2 class="text-lg font-semibold">Department Extensions</h2>
|
||||||
</div>
|
</div>
|
||||||
@@ -874,7 +888,7 @@ TPL_INFO_PAGE = """
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Support Items -->
|
<!-- Support Items -->
|
||||||
<div class="rounded-2xl border border-slate-800 bg-slate-900/60">
|
<div class="rounded-2xl border border-slate-800 bg-slate-900/60 print-block">
|
||||||
<div class="p-4 border-b border-slate-800"><h2 class="text-lg font-semibold">Support & Escalation</h2></div>
|
<div class="p-4 border-b border-slate-800"><h2 class="text-lg font-semibold">Support & Escalation</h2></div>
|
||||||
<div class="p-4 grid gap-3" style="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));">
|
<div class="p-4 grid gap-3" style="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));">
|
||||||
{% for s in supports %}
|
{% for s in supports %}
|
||||||
@@ -894,7 +908,7 @@ TPL_INFO_PAGE = """
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if admin_secrets %}
|
{% if admin_secrets %}
|
||||||
<div class="rounded-2xl border border-slate-800 bg-slate-900/60">
|
<div class="rounded-2xl border border-slate-800 bg-slate-900/60 print-block">
|
||||||
<div class="p-4 border-b border-slate-800 flex items-center justify-between ">
|
<div class="p-4 border-b border-slate-800 flex items-center justify-between ">
|
||||||
<h2 class="text-lg font-semibold">Admin Quick Notes</h2>
|
<h2 class="text-lg font-semibold">Admin Quick Notes</h2>
|
||||||
<span class="text-xs text-slate-400">Visible to admins only</span>
|
<span class="text-xs text-slate-400">Visible to admins only</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user