浏览代码

adding all missing items from the live-form

Medowar 1 月之前
父节点
当前提交
f5c50b1f8e
共有 2 个文件被更改,包括 128 次插入3 次删除
  1. 2 0
      assets/css/base.css
  2. 126 3
      config/form_schema.php

+ 2 - 0
assets/css/base.css

@@ -329,6 +329,7 @@ small {
   font-size: 0.85rem;
 }
 
+/*
 .mandatory-field {
   padding-left: 0.55rem;
   border-left: 3px solid rgba(193, 18, 31, 0.75);
@@ -337,6 +338,7 @@ small {
 .mandatory-field-hard {
   border-left-color: rgba(193, 18, 31, 0.75);
 }
+*/
 
 .address-disclaimer {
   margin-top: 0.45rem;

+ 126 - 3
config/form_schema.php

@@ -154,6 +154,10 @@ return [
                         'field' => 'is_minor',
                         'equals' => '1',
                     ],
+                    'visible_if' => [
+                        'field' => 'is_minor',
+                        'equals' => '1',
+                    ],
                 ],
                 [
                     'key' => 'bestätigung_eignung',
@@ -235,8 +239,13 @@ return [
                 ],
                 [
                     'key' => 'führerschein_nachweis',
-                    'label' => 'Optional: Weitere Qualifikationen(z.B. Ladekran, Stapler, Feuerwehrführerschein, etc.)',
-                    'type' => 'text'
+                    'label' => 'Optional: Weitere Qualifikationen',
+                    'type' => 'text',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                    'subtext' => 'z.B. Ladekran, Stapler, Feuerwehrführerschein, etc.',
                 ],
                 [
                     'key' => 'bisherige_dienstzeiten',
@@ -265,7 +274,108 @@ return [
                         'field' => 'qualifikation_vorhanden',
                         'equals' => 'ja',
                     ],
-                ]
+                ],
+                [
+                    'key' => 'letzter_dienstgrad',
+                    'label' => 'Letzter Dienstgrad',
+                    'type' => 'text',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                ],
+                [
+                    'key' => 'basismodul',
+                    'label' => 'Abgeschlossenes MTA Basismodul',
+                    'type' => 'checkbox',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                ],
+                [
+                    'key' => 'truppführer',
+                    'label' => 'Abgeschlossenes Truppführermodul',
+                    'type' => 'checkbox',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                ],
+                [
+                    'key' => 'gruppenführer',
+                    'label' => 'Gruppenführer',
+                    'type' => 'checkbox',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                ],
+                [
+                    'key' => 'atemschutzgeräteträger',
+                    'label' => 'Atemschutzgeräteträger',
+                    'type' => 'checkbox',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                ],
+                [
+                    'key' => 'gültige_g26',
+                    'label' => 'Ich verfüge über eine aktuell gültige Tauglichkeitsbescheinigung nach G26.3 (Atemschutzgeräteträger).',
+                    'type' => 'checkbox',
+                    'visible_if' => [
+                        'field' => 'atemschutzgeräteträger',
+                        'equals' => '1',
+                    ],
+                ],
+                [
+                    'key' => 'motorsägenführer',
+                    'label' => 'Motorsägenführer',
+                    'type' => 'checkbox',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                ],
+                [
+                    'key' => 'feuerwehrsanitäter',
+                    'label' => 'Feuerwehrsanitäter',
+                    'type' => 'checkbox',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                ],
+                [
+                    'key' => 'weitere_lehrgaenge',
+                    'label' => 'Weitere Lehrgänge und Ausbildungen',
+                    'type' => 'text',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                ],
+                [
+                    'key' => 'abzeichen_lösch',
+                    'label' => 'Leistungsabzeichen Einheiten im Löscheinsatz Stufe',
+                    'type' => 'number',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                    'subtext' => 'nur wenn vorhanden',
+                ],
+                [
+                    'key' => 'abzeichen_thl',
+                    'label' => 'Leistungsabzeichen Technische Hilfe Stufe',
+                    'type' => 'number',
+                    'visible_if' => [
+                        'field' => 'qualifikation_vorhanden',
+                        'equals' => 'ja',
+                    ],
+                    'subtext' => 'nur wenn vorhanden',
+                ],
             ],
         ],
         [
@@ -329,6 +439,19 @@ return [
                     'required'   => false,
                     'max_length' => 2000,
                 ],
+                [
+                    'key' => 'körperliche_eignung',
+                    'label' => 'Körperliche Eignung',
+                    'type' => 'checkbox',
+                    'required' => true,
+                    'subtext' => 'Ich bestätige, körperlich und geistig für den Feuerwehrdienst geeignet zu sein. ',
+                ],
+                [
+                    'key' => 'schwimmer',
+                    'label' => 'Ich bin Schwimmer',
+                    'type' => 'checkbox',
+                    'required' => false,
+                ],
                 [
                     'key'      => 'einwilligung_datenschutz',
                     'label'    => 'Ich stimme der Verarbeitung meiner Daten zu.',