Class name typo fixed, typo goverment->government fixed
[shipsimu.git] / application / ship-simu / templates / de / code / action_ship_simu_login_government_training.ctp
1 <?php
2 // Get form helper instance
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_government_training'));
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!");
10
11 // Add group for personal data
12 $helperInstance->addFormGroup('persona_data', "Deine pers&ouml;nliche Daten, die f&uuml;r die Kursusteilnahme n&ouml;tig sind:");
13
14 // Ask again for current account password
15 $helperInstance->addFormGroup('password', "Bitte gebe zur Best&auml;tigung dein derzeitiges Passwort ein.");
16 $helperInstance->addFieldText('password', "Derzeitiges Passwort:");
17 $helperInstance->addInputPasswordField('password');
18
19 // CAPTCHA enabled?
20 if ($helperInstance->ifFormSecuredWithCaptcha()) {
21         $helperInstance->addFormGroup('captcha_user', "Die virtuelle Beantragung eines Trainingkursus ist durch ein CAPTCHA gesch&uuml;tzt. Bitte wiederhole den angezeigten Code, um den Trainingskursus zu beantragen.");
22         $helperInstance->addCaptcha();
23 } // END - if
24
25 // Display email, surname and family name
26 $helperInstance->addFormNote('surname', "Vorname: <span class=\"persona_data\">".$helperInstance->getValueField('surname')."</span>");
27 $helperInstance->addFormNote('family', "Nachname: <span class=\"persona_data\">".$helperInstance->getValueField('family')."</span>");
28 $helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
29
30 // Add link placeholder for profile page
31 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
32
33 // Flush the finished form
34 $helperInstance->flushContent();
35
36 // Get link helper for profile link
37 $linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&amp;page=login_area'));
38
39 // Add action
40 $linkInstance->addActionLinkById('profile', 'link_text_profile');
41
42 // Flush the finished form
43 $linkInstance->flushContent();
44
45 // [EOC]
46 ?>
47 <div id="government_frame">
48         <div id="government_header">
49                 Virtuelle Beantragung eines Training-Kursus
50         </div>
51
52         <div id="government_form">
53                 {?shipsimu_government_training?}
54         </div>
55 </div>