style: restyle the questionnaire views

This commit is contained in:
fromme committed 2026-11-12 11:36:18 +01:00
1 parent 6b16c88a5b
commit 3c19401d8b
15 files changed
+93 -99

No files matched your search

@@ -4,19 +4,9 @@
{% block content %}
<div class="flex items-start justify-between pb-4">
<div>
<h1 class="text-2xl font-bold pb-2">
Fragebögen: {{ definition.title }}
</h1>
<div class="flex flex-wrap gap-2">
{% for other in definitions %}
<a href="{{ path('app_administrative_questionnaire_index', { 'questionnaire': other.key }) }}"
class="{{ html_classes('btn btn--small', { 'btn--secondary': other.key != definition.key }) }}">
{{ other.title }}
</a>
{% endfor %}
</div>
</div>
<h1 class="text-2xl font-bold">
Fragebögen
</h1>
<div class="flex flex-col items-end space-y-2 md:flex-row md:items-center md:space-x-2 md:space-y-0">
<button type="button"
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
@@ -38,6 +28,15 @@
{% endif %}
</div>
</div>
{# one tab per questionnaire, as the record tabs (_partials/_tabs.html.twig) #}
<nav aria-label="Fragebögen" class="flex overflow-x-auto border-b border-line mb-6">
{% for other in definitions %}
{% set current = other.key == definition.key %}
<a href="{{ path('app_administrative_questionnaire_index', { 'questionnaire': other.key }) }}"
class="{{ html_classes('-mb-px shrink-0 whitespace-nowrap border-b-4 px-3 py-2 text-sm', { 'border-brand-bright font-bold text-brand': current, 'border-transparent text-ink hover:text-brand': not current }) }}"
{% if current %}aria-current="page"{% endif %}>{{ other.title }}</a>
{% endfor %}
</nav>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner">
@@ -112,7 +111,7 @@
{{ response.submittedAt|date('d.m.Y') }}
</td>
<td>
<a href="{{ path('app_administrative_questionnaire_detail', { 'uuid': response.uuid, 'r': return_url() }) }}" title="Fragebogen anzeigen">
<a href="{{ path('app_administrative_questionnaire_detail', { 'uuid': response.uuid, 'r': return_url() }) }}" class="text-brand hover:text-brand-dark" title="Fragebogen anzeigen">
{{ icon('info', 'w-4 h-4') }}
</a>
</td>
@@ -120,7 +119,7 @@
{% else %}
<tr>
<td colspan="{{ definition.perBusLeg ? 7 : (aboutTravel ? 5 : 6) }}">
Keine Daten...
<span class="text-muted">Keine Fragebögen gefunden.</span>
</td>
</tr>
{% endfor %}