34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
|
|
{% extends "base.html" %}
|
||
|
|
{% block title %}Feldkonfiguration — {{ entity_type }}{% endblock %}
|
||
|
|
{% block content %}
|
||
|
|
<div class="flex items-center justify-between mb-5">
|
||
|
|
<h1 class="page-title">Feldkonfiguration: {{ entity_type }}</h1>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="flex gap-2 mb-5 flex-wrap">
|
||
|
|
{% for et in entity_types %}
|
||
|
|
<a href="/felder/{{ et }}/"
|
||
|
|
class="px-3 py-1 rounded text-sm {% if et == entity_type %}bg-brand-600 text-white{% else %}bg-slate-100 text-slate-700 hover:bg-slate-200{% endif %}">
|
||
|
|
{{ et }}
|
||
|
|
</a>
|
||
|
|
{% endfor %}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="card">
|
||
|
|
<table class="w-full text-sm">
|
||
|
|
<thead>
|
||
|
|
<tr class="text-left border-b border-slate-200">
|
||
|
|
<th class="pb-2 font-medium text-slate-600">Feldname</th>
|
||
|
|
<th class="pb-2 font-medium text-slate-600">Anzeige-Label</th>
|
||
|
|
<th class="pb-2 font-medium text-slate-600 text-center">Ausgeblendet</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{% for eintrag in felder %}
|
||
|
|
{% include "core/partials/feld_zeile.html" with cfg=eintrag.cfg field_name=eintrag.feld.name entity_type=entity_type %}
|
||
|
|
{% endfor %}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
{% endblock %}
|