2 // Get form helper instance
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_training_form'));
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 // Display email, surname and family name
15 $helperInstance->addFormNote('surname', "Vorname: <span class=\"persona_data\">".$helperInstance->getValueField('surname')."</span>");
16 $helperInstance->addFormNote('family', "Nachname: <span class=\"persona_data\">".$helperInstance->getValueField('family')."</span>");
17 $helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
19 // Add link placeholder for profile page
20 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
22 // Flush the finished form
23 $helperInstance->flushContent();
25 // Get link helper for profile link
26 $linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
29 $linkInstance->addActionLinkById('profile', 'goto_profile_link');
31 // Flush the finished form
32 $linkInstance->flushContent();
36 <div id="goverment_frame">
37 <div id="goverment_header">
38 Virtuelle Beantragung eines Training-Kursus
41 <div id="goverment_form">
42 {?shipsimu_training_form?}