Merge pull request 'Updates Vorstand page with current information' (#21) from develop into main

Reviewed-on: https://git.feigel.it/SFBadSteben/schachfreunde-badsteben/pulls/21
This commit is contained in:
2025-09-06 13:02:35 +02:00
6 changed files with 14 additions and 7 deletions
+4
View File
@@ -6,6 +6,10 @@ Text: Bei der Jahreshauptversammlung am 05.04.2025 wurden in den aktuellen Vorst
----
Bildbeschreibung: Auf dem Bild von links: Dominik Döge, Tobias Feigel, Bernd Haberzettl, Jürgen Franz, Alexander Döge und Tanja Wolfrum.
----
Vorstandschaft:
-
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

+4 -1
View File
@@ -10,6 +10,9 @@ columns:
text:
type: textarea
size: small
bildbeschreibung:
type: textarea
size: small
vorstandschaft:
label: Vorstandschaft
type: structure
@@ -37,4 +40,4 @@ columns:
type: text
image:
label: Bild der Vorstandschaft
type: files
type: files
+6 -6
View File
@@ -1,11 +1,11 @@
<?php
$vorstand = $page->vorstandschaft()->toStructure();
?>
$vorstand = $page->vorstandschaft()->toStructure(); ?>
<?php snippet('layout', slots: true) ?>
<?php snippet('layout', slots: true); ?>
<section class="py-8">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<img src="<?= $page->image()->url() ?>" alt="<?= $page->title()->html() ?>">
<p class="text-xl pt-4"><?= $page->bildbeschreibung() ?></p>
</div>
</section>
@@ -13,7 +13,7 @@
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-4">
<p class="text-2xl pt-4"><?= $page->text() ?></p>
<ul class="pt-6">
<?php foreach($vorstand as $vorstand): ?>
<?php foreach ($vorstand as $vorstand): ?>
<li>
<p class="font-semibold text-xl">
<?= $vorstand->name() ?>
@@ -22,8 +22,8 @@
</span>
</p>
</li>
<?php endforeach ?>
<?php endforeach; ?>
</ul>
</div>
</section>
<?php endsnippet() ?>
<?php endsnippet(); ?>