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('name', "Dein Name: <span class=\"persona_data\">".$helperInstance->getValueField('surname')." ".$helperInstance->getValueField('family')."</span>");
16 $helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
18 // Add link placeholder for profile page
19 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
21 // Flush the finished form
22 $helperInstance->flushContent();
24 // Get link helper for profile link
25 $linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
28 $linkInstance->addActionLinkById('profile', 'goto_profile_link');
30 // Flush the finished form
31 $linkInstance->flushContent();
34 <div id="goverment_frame">
35 <div id="goverment_header">
36 Virtuelle Beantragung eines Training-Kursus
39 <div id="goverment_form">
40 {?shipsimu_training_form?}