2 // Get form helper instance
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_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');
20 if ($helperInstance->ifFormSecuredWithCaptcha()) {
21 $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.");
22 $helperInstance->addCaptcha();
25 // Display email, surname and family name
26 $helperInstance->addFormNote('surname', "Vorname: <span class=\"persona_data\">".$helperInstance->getValueField('surname')."</span>");
27 $helperInstance->addFormNote('family', "Nachname: <span class=\"persona_data\">".$helperInstance->getValueField('family')."</span>");
28 $helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
30 // Add link placeholder for profile page
31 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
33 // Flush the finished form
34 $helperInstance->flushContent();
36 // Get link helper for profile link
37 $linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
40 $linkInstance->addActionLinkById('profile', 'link_text_profile');
42 // Flush the finished form
43 $linkInstance->flushContent();
47 <div id="government_frame">
48 <div id="government_header">
49 Virtuelle Beantragung eines Training-Kursus
52 <div id="government_form">
53 {?shipsimu_government_training?}