mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
Print a ticket as a work order and an asset as a spec sheet: Print Work Order in the ticket menu, or the browser print, gives the letterhead, who and where with access notes, the job details, assets, description, client-visible fill-ins, tasks as boxes to tick, public replies oldest first and a sign-off with times, work done lines and signatures, never internal notes; the asset print button beside Copy Details gives its hardware, network, location and assignee, interfaces, devices in it, licenses, services and quick notes with a QR code that opens it, never credentials or license keys; both print black on white in either theme and the ticket menu now shows for every agent; 26.12.3 changelog entries
This commit is contained in:
@@ -11370,3 +11370,294 @@ input.itflow-filter-on {
|
||||
outline-offset: -2px;
|
||||
background-color: var(--bs-primary-bg-subtle);
|
||||
}
|
||||
/* ==========================================================================
|
||||
Printed sheets - a ticket's work order and an asset's spec sheet
|
||||
(functions/print_sheet.php). Hidden on screen; printing a page that has one
|
||||
prints the sheet and nothing else of the page. Black on white in either
|
||||
theme, sized in points so the print-wide 71% root size doesn't shrink it.
|
||||
========================================================================== */
|
||||
.itflow-print-sheet {
|
||||
display: none;
|
||||
}
|
||||
@media print {
|
||||
.app-content > .container-fluid:has(> .itflow-print-sheet) > :not(.itflow-print-sheet) {
|
||||
display: none !important;
|
||||
}
|
||||
.itflow-print-sheet {
|
||||
--print-rule: #b8b8b8;
|
||||
--print-muted: #555;
|
||||
display: block;
|
||||
color: #000;
|
||||
background: #fff;
|
||||
font-size: 10pt;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.itflow-print-sheet a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
.itflow-print-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 14pt;
|
||||
padding-bottom: 8pt;
|
||||
margin-bottom: 10pt;
|
||||
border-bottom: 1.5pt solid #000;
|
||||
}
|
||||
.itflow-print-company {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8pt;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
font-size: 8.5pt;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-logo {
|
||||
max-width: 110pt;
|
||||
max-height: 40pt;
|
||||
object-fit: contain;
|
||||
}
|
||||
.itflow-print-company-name {
|
||||
font-size: 12pt;
|
||||
font-weight: 700;
|
||||
color: #000;
|
||||
}
|
||||
.itflow-print-doc {
|
||||
flex: 0 0 auto;
|
||||
text-align: right;
|
||||
font-size: 8.5pt;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-kind {
|
||||
font-size: 8.5pt;
|
||||
font-weight: 700;
|
||||
letter-spacing: .1em;
|
||||
text-transform: uppercase;
|
||||
color: #000;
|
||||
}
|
||||
.itflow-print-ref {
|
||||
font-size: 17pt;
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
color: #000;
|
||||
}
|
||||
.itflow-print-qr {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.itflow-print-qr svg {
|
||||
display: block;
|
||||
width: 62pt;
|
||||
height: 62pt;
|
||||
}
|
||||
.itflow-print-title {
|
||||
margin: 0;
|
||||
font-size: 15pt;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
}
|
||||
.itflow-print-subtitle {
|
||||
margin-top: 2pt;
|
||||
font-size: 9.5pt;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-grid {
|
||||
display: flex;
|
||||
gap: 8pt;
|
||||
margin-top: 10pt;
|
||||
}
|
||||
.itflow-print-box {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
padding: 6pt 8pt;
|
||||
border: .75pt solid var(--print-rule);
|
||||
border-radius: 3pt;
|
||||
font-size: 9pt;
|
||||
break-inside: avoid;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.itflow-print-heading {
|
||||
margin: 0 0 4pt;
|
||||
font-size: 7.5pt;
|
||||
font-weight: 700;
|
||||
letter-spacing: .1em;
|
||||
text-transform: uppercase;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-section {
|
||||
margin-top: 12pt;
|
||||
}
|
||||
.itflow-print-section > .itflow-print-heading {
|
||||
padding-bottom: 2pt;
|
||||
border-bottom: .75pt solid var(--print-rule);
|
||||
break-after: avoid;
|
||||
}
|
||||
.itflow-print-strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
.itflow-print-muted {
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-note {
|
||||
margin-top: 4pt;
|
||||
padding-top: 4pt;
|
||||
border-top: .75pt dotted var(--print-rule);
|
||||
}
|
||||
.itflow-print-fields {
|
||||
display: grid;
|
||||
grid-template-columns: max-content minmax(0, 1fr);
|
||||
gap: 1pt 8pt;
|
||||
margin: 0;
|
||||
}
|
||||
.itflow-print-fields dt {
|
||||
font-weight: 600;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-fields dd {
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.itflow-print-section > .itflow-print-fields {
|
||||
grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
|
||||
}
|
||||
.itflow-print-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 9pt;
|
||||
}
|
||||
.itflow-print-table th {
|
||||
padding: 2pt 6pt 2pt 0;
|
||||
font-size: 7.5pt;
|
||||
font-weight: 700;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-table td {
|
||||
padding: 3pt 6pt 3pt 0;
|
||||
vertical-align: top;
|
||||
border-top: .75pt solid var(--print-rule);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.itflow-print-table tr {
|
||||
break-inside: avoid;
|
||||
}
|
||||
/* A table with no heads sits right under its section's rule */
|
||||
.itflow-print-table > tbody:first-child > tr:first-child > td {
|
||||
border-top: 0;
|
||||
}
|
||||
.itflow-print-prose {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.itflow-print-prose > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.itflow-print-prose img {
|
||||
max-width: 100% !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.itflow-print-prose table {
|
||||
max-width: 100%;
|
||||
}
|
||||
.itflow-print-tasks {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.itflow-print-tasks li {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6pt;
|
||||
padding: 2.5pt 0;
|
||||
break-inside: avoid;
|
||||
}
|
||||
.itflow-print-tasks li.is-done {
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 0 0 auto;
|
||||
width: 10pt;
|
||||
height: 10pt;
|
||||
border: .75pt solid #000;
|
||||
font-size: 8pt;
|
||||
line-height: 1;
|
||||
color: #000;
|
||||
transform: translateY(1pt);
|
||||
}
|
||||
.itflow-print-reply {
|
||||
padding: 4pt 0 6pt 8pt;
|
||||
margin-bottom: 6pt;
|
||||
border-left: 1.5pt solid var(--print-rule);
|
||||
}
|
||||
.itflow-print-reply.is-client {
|
||||
border-left-color: #000;
|
||||
}
|
||||
.itflow-print-reply-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 2pt 10pt;
|
||||
margin-bottom: 2pt;
|
||||
font-size: 8.5pt;
|
||||
color: var(--print-muted);
|
||||
break-after: avoid;
|
||||
}
|
||||
.itflow-print-reply-head .fw-semibold {
|
||||
color: #000;
|
||||
}
|
||||
.itflow-print-signoff {
|
||||
break-inside: avoid;
|
||||
}
|
||||
.itflow-print-label {
|
||||
margin-top: 8pt;
|
||||
font-size: 8.5pt;
|
||||
font-weight: 600;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-times {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12pt;
|
||||
margin-top: 14pt;
|
||||
}
|
||||
.itflow-print-sign-line {
|
||||
min-height: 16pt;
|
||||
border-bottom: .75pt solid #000;
|
||||
}
|
||||
.itflow-print-times span,
|
||||
.itflow-print-sign span {
|
||||
display: block;
|
||||
font-size: 7.5pt;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
.itflow-print-lines > div {
|
||||
height: 18pt;
|
||||
border-bottom: .75pt solid var(--print-rule);
|
||||
}
|
||||
.itflow-print-sign {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18pt 24pt;
|
||||
margin-top: 22pt;
|
||||
}
|
||||
.itflow-print-sign-line {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
padding-bottom: 1pt;
|
||||
}
|
||||
.itflow-print-times span,
|
||||
.itflow-print-sign span {
|
||||
padding-top: 2pt;
|
||||
}
|
||||
.itflow-print-foot {
|
||||
margin-top: 14pt;
|
||||
padding-top: 4pt;
|
||||
border-top: .75pt solid var(--print-rule);
|
||||
font-size: 7.5pt;
|
||||
color: var(--print-muted);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user