]> git.mxchange.org Git - city.git/blob - application/city/templates/code/action_city_login_government_startup_help.ctp
Continued:
[city.git] / application / city / templates / code / action_city_login_government_startup_help.ctp
1 <?php
2 // Import framework stuff
3 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
4
5 // Get form helper instance
6 $helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'city_government_startup'));
7
8 // Prefetch user instance
9 $helperInstance->prefetchValueInstance('user');
10
11 // Add main form group
12 $helperInstance->addFormNote('reality_warning', "WARNUNG: Bitte dieses Formular nicht mit echten Angaben ausf&uuml;llen! (Die Profildaten sollte jedoch echt sein.)");
13
14 // Add group for personal data
15 $helperInstance->addFormGroup('persona_data', "Deine pers&ouml;nliche Daten, die f&uuml;r die Beantragung n&ouml;tig sind:");
16
17 // Display email, surname and family name
18 $helperInstance->addFormNote('surname', "Vorname: <span class=\"persona_data\">".$helperInstance->getValueField('surname')."</span>");
19 $helperInstance->addFormNote('family', "Nachname: <span class=\"persona_data\">".$helperInstance->getValueField('family')."</span>");
20 $helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
21 $helperInstance->addFormNote('birthday', "Geburtstag: <span class=\"persona_data\">".(int)$helperInstance->getValueField('birth_day').".".(int)$helperInstance->getValueField('birth_month').".".(int)$helperInstance->getValueField('birth_year')."</span>");
22
23 // Add link placeholder for profile page
24 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?city_profile?}");
25
26 // Ask again for current account password
27 $helperInstance->addFormGroup('password', "Bitte gebe zur Best&auml;tigung dein derzeitiges Passwort ein.");
28 $helperInstance->addFieldText('password', "Derzeitiges Passwort:");
29 $helperInstance->addInputPasswordField('password');
30
31 // CAPTCHA enabled?
32 if ($helperInstance->ifFormSecuredWithCaptcha()) {
33         $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.");
34         $helperInstance->addCaptcha();
35 } // END - if
36
37 // Final notices
38 $helperInstance->addFormGroup('buttons', "Sind alle Daten nun korrekt eingegeben? Dann sende sie mit einem Klick einfach ab!");
39 $helperInstance->addInputResetButton("Alles nochmal eingeben");
40 $helperInstance->addInputSubmitButton("Starthilfe beantragen");
41 $helperInstance->addFormNote('data_protection', "Deine Daten werden nach den g&uuml;ltigen Datenschutzgesetzen gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link &quot;Datenschutz&quot;.");
42
43 // Flush the finished form
44 $helperInstance->flushContent();
45
46 // Get link helper for profile link
47 $linkInstance = ObjectFactory::createObjectByConfiguredName('html_link_helper_class', array($this, 'city_profile'));
48
49 // Add action
50 $linkInstance->addActionLinkById('profile', 'profile');
51
52 // Flush the finished form
53 $linkInstance->flushContent();
54
55 // [EOC]
56 ?>
57 <div id="government_frame">
58         <div id="government_header">
59                 Virtuelle Beantragung von Starthilfe
60         </div>
61
62         <div id="government_form">
63                 {?city_government_startup?}
64         </div>
65 </div>