This commit is contained in:
2026-03-23 02:09:14 +01:00
parent 705329d3c2
commit d8d46ed8e9
61 changed files with 6054 additions and 3116 deletions

132
public/machines.html Normal file
View File

@@ -0,0 +1,132 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Maschinen — SDS CRM</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/pages/machines.css" />
</head>
<body>
<header class="header">
<h1><a href="/start.html">SDS CRM</a></h1>
<nav id="main-nav" aria-label="Hauptnavigation"></nav>
</header>
<main id="app" class="main">
<p id="page-loading" class="muted">Lade …</p>
<p id="page-error" class="error" hidden></p>
<div id="page-main" class="stack machines-overview" hidden>
<div class="machines-overview-header">
<div class="machines-overview-title">
<h2>Maschinen (Anlagenliste)</h2>
<p class="muted">
<span id="machine-count">0</span>
</p>
</div>
<aside class="machine-legend" aria-label="Legende Zeilenfarben">
<div class="machine-legend-title">Farben (Listen-Status)</div>
<ul class="machine-legend-list">
<li>
<span class="machine-legend-swatch machine-row--none" aria-hidden="true"></span>
<span>kein Status</span>
</li>
<li>
<span class="machine-legend-swatch machine-row--pruefen" aria-hidden="true"></span>
<span>Prüfen!</span>
</li>
<li>
<span class="machine-legend-swatch machine-row--verschrottet" aria-hidden="true"></span>
<span>Verschrottet</span>
</li>
<li>
<span class="machine-legend-swatch machine-row--sn" aria-hidden="true"></span>
<span>SN geändert</span>
</li>
<li>
<span class="machine-legend-swatch machine-row--bearbeitung" aria-hidden="true"></span>
<span>In Bearbeitung</span>
</li>
<li>
<span class="machine-legend-swatch machine-row--update" aria-hidden="true"></span>
<span>Update raus</span>
</li>
</ul>
</aside>
</div>
<div class="card">
<label
>Suche
<input
type="search"
id="machine-filter"
placeholder="Seriennummer, Typ, Ort, …"
style="min-width: min(100%, 22rem)"
/></label>
</div>
<div class="card table-wrap">
<table id="machine-table">
<thead>
<tr>
<th>Seriennr.</th>
<th>Typ</th>
<th>Konzern</th>
<th>Name (Excel)</th>
<th>Stadt</th>
<th>Land</th>
<th>Jahr</th>
</tr>
</thead>
<tbody id="machine-table-body"></tbody>
</table>
</div>
<div class="card options-section ldap-section machines-new-machine">
<button
type="button"
class="ldap-section-toggle"
id="new-machine-toggle"
aria-expanded="false"
aria-controls="new-machine-section-body"
>
<span class="ldap-section-heading">Neue Maschine anlegen</span>
<span class="ldap-chevron" aria-hidden="true"></span>
</button>
<div class="ldap-section-body" id="new-machine-section-body" hidden>
<form id="form-new-machine" class="stack">
<div class="row">
<label
>Name
<input
name="name"
required
autocomplete="organization"
placeholder="z.B. Anlage Standort A"
/></label>
<label>Typ <input name="typ" required placeholder="Maschinentyp" /></label>
</div>
<div class="row">
<label
>Seriennummer
<input name="seriennummer" required autocomplete="off" placeholder="eindeutig"
/></label>
<label>Standort <input name="standort" required placeholder="Ort / Adresse" /></label>
</div>
<label
>Status (Liste)
<select name="listStatus" id="new-machine-status">
<option value="">— keiner —</option>
<option value="PRUEFEN">Prüfen!</option>
<option value="VERSCHROTTET">Verschrottet</option>
<option value="SN_GEAENDERT">SN geändert</option>
<option value="IN_BEARBEITUNG">In Bearbeitung</option>
<option value="UPDATE_RAUS">Update raus</option>
</select>
</label>
<button type="submit">Maschine anlegen</button>
</form>
</div>
</div>
</div>
</main>
<script type="module" src="/js/pages/machines.js"></script>
</body>
</html>