Jelajahi Sumber

small changes in Form as requested by leadership

AI 1 bulan lalu
induk
melakukan
76f03400c4
3 mengubah file dengan 33 tambahan dan 3 penghapusan
  1. 1 1
      admin/test-mail.php
  2. 31 1
      config/form_schema.php
  3. 1 1
      index.php

+ 1 - 1
admin/test-mail.php

@@ -41,7 +41,7 @@ $submission = [
         'mitgliedsart' => 'Aktiv',
         'qualifikation_vorhanden' => 'ja',
         'führerschein_vorhanden' => 'b',
-        'führerschein_nachweis' => 'Stapler',
+        'weitere_qualifikationen' => 'Stapler',
         'bisherige_dienstzeiten' => [
             ['FF Musterstadt', '2015-01-01', '2020-12-31'],
             ['THW OV Freising', '2021-03-01', ''],

+ 31 - 1
config/form_schema.php

@@ -282,11 +282,41 @@ return [
                     ],
                 ],
                 [
-                    'key' => 'führerschein_nachweis',
+                    'key' => 'weitere_qualifikationen',
                     'label' => 'Optional: Weitere Qualifikationen',
                     'type' => 'text',
                     'subtext' => 'z.B. Ladekran, Stapler, Feuerwehrführerschein, etc.',
                 ],
+                [
+                    'key' => 'weitere_bos_mitgliedschaft',
+                    'label' => 'Besteht eine Mitgliedschaft bei einer weiteren BOS-Organisation(z.B. BRK, THW, weitere Feuerwehr, ...)?',
+                    'type' => 'select',
+                    'subtext' => 'BOS = Behörde oder Organisation mit Sicherheitsaufgaben',
+                    'required' => true,
+                    'options' => [
+                        [
+                            'value' => 'nein',
+                            'label' => 'Nein',
+                        ],
+                        [
+                            'value' => 'ja',
+                            'label' => 'Ja',
+                        ],
+                    ],
+                ],
+                [
+                    'key' => 'bos_mitgliedschaft_text',
+                    'label' => 'Bei welcher Organisation/Organisationen besteht die Mitgliedschaft',
+                    'type' => 'text',
+                    'required_if' => [
+                        'field' => 'weitere_bos_mitgliedschaft',
+                        'equals' => 'ja',
+                    ],
+                    'visible_if' => [
+                        'field' => 'weitere_bos_mitgliedschaft',
+                        'equals' => 'ja'
+                    ],
+                ],
                 [
                     'key' => 'bisherige_dienstzeiten',
                     'label' => 'Bisherige Dienstzeiten in Hilfsorganisationen',

+ 1 - 1
index.php

@@ -284,7 +284,7 @@ function renderField(array $field, string $addressDisclaimerText): void
     </section>
 
     <section id="startSection" class="card">
-        <h2>Status</h2>
+        <h2>E-mail Verifizierung</h2>
         <p id="startIntroText"><?= htmlspecialchars($startIntroText) ?></p>
         <form id="startForm" novalidate>
             <input type="hidden" name="csrf" value="<?= htmlspecialchars($csrf) ?>">