WIP: Implement stuff

This commit is contained in:
Björn Fromme
2023-10-03 18:05:12 +02:00
parent 25a016a02b
commit dec8feedf2
10 changed files with 53 additions and 10 deletions
+9
View File
@@ -0,0 +1,9 @@
{% extends 'teamer/layout.html.twig' %}
{% block title %}Kontakt{% endblock %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Kontakt
</h1>
{% endblock %}
+3 -3
View File
@@ -10,13 +10,13 @@
{% for faq in faqs %}
<div {{ stimulus_controller('toggle', [], {'closed': 'hidden'}) }}>
<div {{ stimulus_action('toggle', 'toggle', 'click') }} role="button" class="flex items-center space-x-2">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-8 h-8" {{ stimulus_target('toggle', 'icon') }}>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6" {{ stimulus_target('toggle', 'icon') }}>
<path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5" />
</svg>
<span class="flex-1 text-xl">{{ faq.question }}</span>
<span class="flex-1 text-lg">{{ faq.question }}</span>
</div>
<div class="hidden" {{ stimulus_target('toggle', 'toggle') }}>
<div class="pl-10 pr-4 py-2">
<div class="pl-8 pr-4 py-2">
{{ faq.answer|nl2br }}
</div>
</div>
+7 -3
View File
@@ -76,9 +76,13 @@
<h2 class="text-xl font-bold pb-2">
Sonstiges
</h2>
<div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.status) }}
{{ form_row(form.remarks) }}
<div class="grid md:grid-cols-2 gap-y-4 md:gap-x-8 pb-8">
<div>
{{ form_row(form.status) }}
</div>
<div>
{{ form_row(form.remarks) }}
</div>
</div>
<button type="submit" class="btn">