- Tab 1 now has two upload zones: PDF Template + Laufzettel DOCX - API accepts both files in /generate endpoint - Removed hardcoded template path 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
99 lines
3.9 KiB
HTML
99 lines
3.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Schadenprotokoll Tool</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<h1>Schadenprotokoll Tool</h1>
|
|
<p>Automatisierte Verarbeitung von Schadenprotokollen</p>
|
|
</header>
|
|
|
|
<div class="tabs">
|
|
<button class="tab active" data-tab="generate">1. Generieren</button>
|
|
<button class="tab" data-tab="analyze">2. Auswerten</button>
|
|
<button class="tab" data-tab="vorbericht">3. Vorbericht</button>
|
|
</div>
|
|
|
|
<!-- Tab 1: Generieren -->
|
|
<div id="generate" class="tab-content active">
|
|
<div class="info-box">
|
|
<h4>Schadenlaufzettel + PDF Template = Ausgefuelltes Protokoll</h4>
|
|
<p>Waehle beide Dateien aus und klicke auf Generieren.</p>
|
|
</div>
|
|
|
|
<div class="upload-row">
|
|
<div class="upload-zone" id="template-zone">
|
|
<input type="file" id="template-input" accept=".pdf">
|
|
<h3>1. PDF Template</h3>
|
|
<p>Schadenprotokoll-Vorlage.pdf</p>
|
|
</div>
|
|
<div class="upload-zone" id="laufzettel-zone">
|
|
<input type="file" id="laufzettel-input" accept=".docx">
|
|
<h3>2. Laufzettel</h3>
|
|
<p>Schadenlaufzettel.docx</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="file-info" id="template-info"></div>
|
|
<div class="file-info" id="laufzettel-info"></div>
|
|
|
|
<div class="actions">
|
|
<button class="btn btn-primary" id="generate-btn" disabled>PDF generieren</button>
|
|
</div>
|
|
<div class="status" id="generate-status"></div>
|
|
</div>
|
|
|
|
<!-- Tab 2: Auswerten -->
|
|
<div id="analyze" class="tab-content">
|
|
<div class="info-box">
|
|
<h4>Ausgefuelltes PDF analysieren</h4>
|
|
<p>Liest alle Formularfelder und Dropdown-Auswahlen aus.</p>
|
|
</div>
|
|
<div class="upload-zone" id="pdf-zone">
|
|
<input type="file" id="pdf-input" accept=".pdf">
|
|
<h3>Schadenprotokoll.pdf</h3>
|
|
<p>Das ausgefuellte PDF-Formular</p>
|
|
</div>
|
|
<div class="file-info" id="pdf-info"></div>
|
|
<div class="actions">
|
|
<button class="btn btn-primary" id="analyze-btn" disabled>Analysieren</button>
|
|
</div>
|
|
<div class="status" id="analyze-status"></div>
|
|
<div class="result" id="analyze-result">
|
|
<h4>Analyseergebnis:</h4>
|
|
<div id="analyze-data"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Tab 3: Vorbericht -->
|
|
<div id="vorbericht" class="tab-content">
|
|
<div class="info-box">
|
|
<h4>Protokoll zu Vorbericht Word</h4>
|
|
<p>Generiert einen strukturierten Vorbericht aus dem ausgefuellten PDF.</p>
|
|
</div>
|
|
<div class="upload-zone" id="vorbericht-zone">
|
|
<input type="file" id="vorbericht-input" accept=".pdf">
|
|
<h3>Ausgefuelltes Schadenprotokoll.pdf</h3>
|
|
<p>Das vollstaendig ausgefuellte PDF</p>
|
|
</div>
|
|
<div class="file-info" id="vorbericht-info"></div>
|
|
<div class="actions">
|
|
<button class="btn btn-primary" id="vorbericht-btn" disabled>Vorbericht erstellen</button>
|
|
</div>
|
|
<div class="status" id="vorbericht-status"></div>
|
|
</div>
|
|
|
|
<footer>
|
|
<p>Schadenprotokoll Tool v1.1 | artetui.de</p>
|
|
</footer>
|
|
</div>
|
|
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|