]> git.mxchange.org Git - shipsimu.git/blob - application/ship-simu/templates/de/code/action_ship_simu_login_goverment_training.ctp
802ea9efb03dca7fa8ee2fc4746ff3f1f668a746
[shipsimu.git] / application / ship-simu / templates / de / code / action_ship_simu_login_goverment_training.ctp
1 <?php
2 // Get form helper instance
3 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_training_form'));
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 // 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>");
17
18 // Add link placeholder for profile page
19 $helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
20
21 // Flush the finished form
22 $helperInstance->flushContent();
23
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?}&amp;page=login_area'));
26
27 // Add action
28 $linkInstance->addActionLinkById('profile', 'goto_profile_link');
29
30 // Flush the finished form
31 $linkInstance->flushContent();
32
33 ?>
34 <div id="goverment_frame">
35         <div id="goverment_header">
36                 Virtuelle Beantragung eines Training-Kursus
37         </div>
38
39         <div id="goverment_form">
40                 {?shipsimu_training_form?}
41         </div>
42 </div>