2 // Get form helper instance
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_government_startup'));
5 // Prefetch user instance
6 $helperInstance->prefetchValueInstance('user');
9 $helperInstance->addFormNote('reality_warning', "WARNUNG: Bitte dieses Formular nicht mit echten Angaben ausfüllen! (Die Profildaten sollte jedoch echt sein.)");
11 // Add group for personal data
12 $helperInstance->addFormGroup('persona_data', "Deine persönliche Daten, die für die Beantragung 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>");
18 $helperInstance->addFormNote('birthday', "Geburtstag: <span class=\"persona_data\">".(int)$helperInstance->getValueField('birth_day').".".(int)$helperInstance->getValueField('birth_month').".".(int)$helperInstance->getValueField('birth_year')."</span>");
20 // Add link placeholder for profile page
21 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
23 // Ask again for current account password
24 $helperInstance->addFormGroup('password', "Bitte gebe zur Bestätigung dein derzeitiges Passwort ein.");
25 $helperInstance->addFieldText('password', "Derzeitiges Passwort:");
26 $helperInstance->addInputPasswordField('password');
29 if ($helperInstance->ifFormSecuredWithCaptcha()) {
30 $helperInstance->addFormGroup('captcha_user', "Die virtuelle Beantragung von Starthilfe ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, damit du die Starthilfe beantragen kannst.");
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("Starthilfe beantragen");
38 $helperInstance->addFormNote('data_protection', "Deine Daten werden nach den gültigen Datenschutzgesetzten 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('web_link_helper', array($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&page=login_area'));
47 $linkInstance->addActionLinkById('profile', 'goto_profile_link');
49 // Flush the finished form
50 $linkInstance->flushContent();
54 <div id="government_frame">
55 <div id="government_header">
56 Virtuelle Beantragung von Starthilfe
59 <div id="government_form">
60 {?shipsimu_government_startup?}