All checks were successful
Deploy bericht / deploy (push) Successful in 1s
Dolibarr-Modul für Arbeitsberichte aus Rechnungs-Anhängen mit Browser-PDF-Editor. - Reiter "Bericht" auf Rechnungen, Aufträgen und Angeboten - Anhänge-Browser inkl. verknüpfter Objekte (Auftrag → Rechnung) - PDF.js + Fabric.js Browser-Editor: Pfeile, Kreise, Rechtecke, Freihand, Text - SortableJS Seiten-Verwaltung mit Drag&Drop - ODT-Deckblatt mit Platzhaltern, Templates im Admin verwaltbar - TCPDF + FPDI Finalisierung mit eingebrannten Annotationen - ECM-Verknüpfung: PDF erscheint unter Verknüpfte Dokumente - Auftragsnummer aus existierendem Extrafield options_auftragsnummer - Mehrere Berichte pro Dokument - Beim Aktivieren werden vorhandene Extrafields nicht überschrieben Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
108 lines
3.9 KiB
CSS
108 lines
3.9 KiB
CSS
/* Bericht-Modul Stylesheet */
|
|
|
|
.bericht-overview-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
|
|
|
|
.bericht-editor { padding-top: 10px; }
|
|
.bericht-meta { margin-bottom: 12px; }
|
|
|
|
.bericht-layout {
|
|
display: grid;
|
|
grid-template-columns: 280px 1fr 200px;
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.bericht-attachments,
|
|
.bericht-pages {
|
|
background: #f7f7f9;
|
|
border: 1px solid #e3e3e7;
|
|
border-radius: 6px;
|
|
padding: 10px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
}
|
|
.bericht-attachments h4,
|
|
.bericht-pages h4 { margin: 0 0 8px 0; font-size: 13px; text-transform: uppercase; color: #555; }
|
|
|
|
.bericht-att-group { margin-bottom: 10px; }
|
|
.bericht-att-group-title { font-weight: 600; font-size: 11px; color: #777; padding: 4px 0; border-bottom: 1px solid #ddd; }
|
|
.bericht-att-item {
|
|
display: flex; align-items: center; gap: 6px;
|
|
padding: 4px 2px; cursor: pointer; font-size: 12px;
|
|
}
|
|
.bericht-att-item:hover { background: #eef; }
|
|
.att-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.att-size { font-size: 10px; }
|
|
.att-icon { font-size: 14px; }
|
|
|
|
.bericht-upload { margin-top: 10px; }
|
|
|
|
.bericht-canvas-area {
|
|
background: #2a2a2e;
|
|
border-radius: 6px;
|
|
padding: 10px;
|
|
min-height: 80vh;
|
|
display: flex; flex-direction: column;
|
|
}
|
|
.bericht-toolbar {
|
|
display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
|
|
background: #fff; padding: 6px; border-radius: 4px; margin-bottom: 8px;
|
|
}
|
|
.bericht-toolbar button, .bericht-toolbar .tool-btn {
|
|
background: #fff; border: 1px solid #ccc; border-radius: 4px;
|
|
padding: 4px 10px; cursor: pointer; font-size: 16px;
|
|
}
|
|
.bericht-toolbar .tool-btn.active { background: #5cb85c; color: #fff; border-color: #4cae4c; }
|
|
.bericht-toolbar .sep { width: 1px; background: #ddd; height: 24px; margin: 0 6px; }
|
|
.bericht-toolbar label { display: flex; align-items: center; gap: 4px; font-size: 12px; }
|
|
|
|
.bericht-canvas-wrap {
|
|
flex: 1; position: relative; overflow: auto;
|
|
background: #444; padding: 10px; border-radius: 4px;
|
|
display: flex; align-items: flex-start; justify-content: center;
|
|
}
|
|
#pdf-canvas { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
|
|
#fabric-canvas.fabric-overlay { position: absolute !important; pointer-events: auto; }
|
|
|
|
.bericht-page-note { margin-top: 8px; }
|
|
.bericht-page-note label { display: block; color: #fff; font-size: 12px; margin-bottom: 4px; }
|
|
.bericht-page-note textarea { width: 100%; box-sizing: border-box; }
|
|
|
|
.page-list { display: flex; flex-direction: column; gap: 6px; }
|
|
.page-thumb {
|
|
background: #fff; border: 2px solid #ddd; border-radius: 4px;
|
|
padding: 6px; cursor: pointer; position: relative;
|
|
transition: border-color 0.15s;
|
|
}
|
|
.page-thumb:hover { border-color: #888; }
|
|
.page-thumb.active { border-color: #337ab7; box-shadow: 0 0 0 2px rgba(51,122,183,0.3); }
|
|
.page-thumb-inner {
|
|
height: 100px; background: #f0f0f0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 24px; color: #999;
|
|
}
|
|
.page-thumb-actions { position: absolute; top: 4px; right: 4px; }
|
|
.thumb-del { background: rgba(255,255,255,0.9); border: 1px solid #ccc; border-radius: 3px; cursor: pointer; }
|
|
|
|
.bericht-actions {
|
|
margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end;
|
|
}
|
|
|
|
.bericht-toast {
|
|
position: fixed; top: 20px; right: 20px;
|
|
background: #5cb85c; color: #fff; padding: 12px 20px;
|
|
border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.2);
|
|
z-index: 9999; animation: fadeIn 0.2s;
|
|
}
|
|
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; } }
|
|
|
|
.bericht-setup-section {
|
|
background: #fff; border: 1px solid #e3e3e7;
|
|
border-radius: 6px; padding: 16px; margin-bottom: 16px;
|
|
}
|
|
.bericht-setup-section h3 { margin-top: 0; }
|
|
|
|
@media (max-width: 1100px) {
|
|
.bericht-layout { grid-template-columns: 1fr; }
|
|
.bericht-attachments, .bericht-pages { max-height: 300px; }
|
|
}
|