]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/de/code/action_ship_simu_login_goverment_training.ctp
More improvements and fixes:
[shipsimu.git] / application / ship-simu / templates / de / code / action_ship_simu_login_goverment_training.ctp
index 3e602740eb47d3f3ed4c74875b557964e2cca920..e168ef9cb7cbca5e60347bf7f30663d70e68ff7d 100644 (file)
@@ -8,9 +8,28 @@ $helperInstance->prefetchValueInstance('user');
 // Add main form group
 $helperInstance->addFormNote('reality_warning', "WARNUNG: Bitte dieses Formular nicht mit echten Angaben ausfüllen!");
 
+// Add group for personal data
+$helperInstance->addFormGroup('persona_data', "Deine persönliche Daten, die für die Kursusteilnahme nötig sind:");
+
+// Display email, surname and family name
+$helperInstance->addFormNote('name', "Dein Name: <span class=\"persona_data\">".$helperInstance->getValueField('surname')." ".$helperInstance->getValueField('family')."</span>");
+$helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
+
+// Add link placeholder for profile page
+$helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
+
 // Flush the finished form
 $helperInstance->flushContent();
 
+// Get link helper for profile link
+$linkInstance = WebLinkHelper::createWebLinkHelper($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
+
+// Add action
+$linkInstance->addActionLinkById('profile', 'goto_profile_link');
+
+// Flush the finished form
+$linkInstance->flushContent();
+
 ?>
 <div id="goverment_frame">
        <div id="goverment_header">