475c147c9d005812e02add1222005c000b7c73e7
[shipsimu.git] / application / ship-simu / templates / de / code / action_ship_simu_login_government_startup_help.ctp
1 <?php
2 // Get form helper instance
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_government_startup'));
4
5 // Prefetch user instance
6 $helperInstance->prefetchValueInstance('user');
7
8 // Add main form group
9 $helperInstance->addFormNote('reality_warning', "WARNUNG: Bitte dieses Formular nicht mit echten Angaben ausf&uuml;llen! (Die Profildaten sollte jedoch echt sein.)");
10
11 // Add group for personal data
12 $helperInstance->addFormGroup('persona_data', "Deine pers&ouml;nliche Daten, die f&uuml;r die Beantragung n&ouml;tig sind:");
13
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>");
19
20 // Add link placeholder for profile page
21 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
22
23 // Ask again for current account password
24 $helperInstance->addFormGroup('password', "Bitte gebe zur Best&auml;tigung dein derzeitiges Passwort ein.");
25 $helperInstance->addFieldText('password', "Derzeitiges Passwort:");
26 $helperInstance->addInputPasswordField('password');
27
28 // CAPTCHA enabled?
29 if ($helperInstance->ifFormSecuredWithCaptcha()) {
30         $helperInstance->addFormGroup('captcha_user', "Die virtuelle Beantragung von Starthilfe ist durch ein CAPTCHA gesch&uuml;tzt. Bitte wiederhole den angezeigten Code, damit du die Starthilfe beantragen kannst.");
31         $helperInstance->addCaptcha();
32 } // END - if
33
34 // Final notices
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&uuml;ltigen Datenschutzgesetzten gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link &quot;Datenschutz&quot;.");
39
40 // Flush the finished form
41 $helperInstance->flushContent();
42
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?}&amp;page=login_area'));
45
46 // Add action
47 $linkInstance->addActionLinkById('profile', 'link_text_profile');
48
49 // Flush the finished form
50 $linkInstance->flushContent();
51
52 // [EOC]
53 ?>
54 <div id="government_frame">
55         <div id="government_header">
56                 Virtuelle Beantragung von Starthilfe
57         </div>
58
59         <div id="government_form">
60                 {?shipsimu_government_startup?}
61         </div>
62 </div>