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