2 // Get form helper instance
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'city_government_training'));
5 // Prefetch user instance
6 $helperInstance->prefetchValueInstance('user');
9 $helperInstance->addFormNote('reality_warning', "WARNUNG: Bitte dieses Formular nicht mit echten Angaben ausfüllen!");
11 // Add group for personal data
12 $helperInstance->addFormGroup('persona_data', "Deine persönliche Daten, die für die Kursusteilnahme nötig sind:");
14 // Ask again for current account password
15 $helperInstance->addFormGroup('password', "Bitte gebe zur Bestätigung dein derzeitiges Passwort ein.");
16 $helperInstance->addFieldText('password', "Derzeitiges Passwort:");
17 $helperInstance->addInputPasswordField('password');
19 // Display email, surname and family name
20 $helperInstance->addFormNote('surname', "Vorname: <span class=\"persona_data\">".$helperInstance->getValueField('surname')."</span>");
21 $helperInstance->addFormNote('family', "Nachname: <span class=\"persona_data\">".$helperInstance->getValueField('family')."</span>");
22 $helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
23 $helperInstance->addFormNote('birthday', "Geburtstag: <span class=\"persona_data\">".(int)$helperInstance->getValueField('birth_day').".".(int)$helperInstance->getValueField('birth_month').".".(int)$helperInstance->getValueField('birth_year')."</span>");
25 // Add link placeholder for profile page
26 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?city_profile?}");
29 if ($helperInstance->ifFormSecuredWithCaptcha()) {
30 $helperInstance->addFormGroup('captcha_user', "Die virtuelle Beantragung eines Trainingkursus ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, um den Trainingskursus zu beantragen.");
31 $helperInstance->addCaptcha();
35 $helperInstance->addFormGroup('buttons', "Sind alle Daten nun korrekt eingegeben? Dann sende sie mit einem Klick einfach ab!");
36 $helperInstance->addInputResetButton("Alles nochmal eingeben");
37 $helperInstance->addInputSubmitButton("Trainingskurs beantragen");
38 $helperInstance->addFormNote('data_protection', "Deine Daten werden nach den gültigen Datenschutzgesetzen gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link "Datenschutz".");
40 // Flush the finished form
41 $helperInstance->flushContent();
43 // Get link helper for profile link
44 $linkInstance = ObjectFactory::createObjectByConfiguredName('html_link_helper_class', array($this, 'city_profile'));
47 $linkInstance->addActionLinkById('profile', 'profile');
49 // Flush the finished form
50 $linkInstance->flushContent();
54 <div id="government_frame">
55 <div id="government_header">
56 Virtuelle Beantragung eines Training-Kursus
59 <div id="government_form">
60 {?city_government_training?}