Files
wdm/build/templates/maschinenverwaltung.html
T
bryan.hoffmann 8713a8c25d
Build und Push Docker Image / build-and-push (push) Successful in 7s
user verwaltung
2026-11-05 13:00:31 +01:00

45 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% block content %}
<div class="top-actions">
<a class="big-btn small neutral" href="{{ url_for('leitstand_home') }}">&#8592; Zur&uuml;ck</a>
<form method="post" action="{{ url_for('logout') }}">
<button type="submit" class="big-btn small neutral">&#128274; Abmelden</button>
</form>
</div>
<div class="btn-grid" style="margin-bottom:10px;">
<a class="big-btn small primary" href="{{ url_for('maschinenverwaltung_neu') }}">&#10133; Neue Maschine anlegen</a>
<a class="big-btn small neutral" href="{{ url_for('maschinenverwaltung_export') }}">&#8595; Maschinenliste exportieren</a>
</div>
{% if not maschinen %}
<div class="empty-state">Keine Maschinen vorhanden.</div>
{% else %}
<div class="list-meta">{{ maschinen|length }} Maschinen</div>
<div class="table-wrap">
<table class="data-table">
<thead>
<tr><th>ID</th><th>Name</th><th>Standort</th><th class="col-actions"></th></tr>
</thead>
<tbody>
{% for m in maschinen %}
<tr>
<td>{{ m.id }}</td>
<td>{{ m.name or '' }}</td>
<td>{{ m.standort or '' }}</td>
<td class="col-actions">
<div class="row-actions">
<a class="icon-btn" href="{{ url_for('maschinenverwaltung_bearbeiten', maschine_id=m.id) }}">Bearbeiten</a>
<form method="post" action="{{ url_for('maschinenverwaltung_loeschen', maschine_id=m.id) }}" class="order-form">
<button type="submit" class="icon-btn danger">L&ouml;schen</button>
</form>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% endblock %}