]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/de/code/action_ship_simu_login_profile.ctp
Typos fixed
[shipsimu.git] / application / ship-simu / templates / de / code / action_ship_simu_login_profile.ctp
index b97e27f5d09a2330378ff29f9ae68c52e1e183f3..8037a4ec096d706ad6724c804bffb45d009d9439 100644 (file)
@@ -2,7 +2,7 @@
 // Get helper instance for web forms. This will add the opening form-tag to
 // the helper's render cache which is simply a small variable in the class
 // BaseHelper.
-$helperInstance = WebFormHelper::createWebFormHelper($this, "shipsimu_profile");
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "shipsimu_profile"));
 
 // Pre-fetch field data with a given registry key
 $helperInstance->prefetchValueInstance('user');
@@ -32,7 +32,7 @@ if ($helperInstance->ifEmailChangeAllowed()) {
        } // END - if
 
        if ($helperInstance->ifEmailChangeRequireConfirmation()) {
-               $helperInstance->addFormNote('confirm_link', "Es wird ein Bestätigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann möglichst schnell an.");
+               $helperInstance->addFormNote('confirm', "Es wird ein Bestätigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann möglichst schnell an.");
        } // END - if
 } // END - if
 
@@ -50,6 +50,16 @@ if ($helperInstance->ifRegisterIncludesPersonaData()) {
        $helperInstance->addInputTextFieldWithDefault('street');
        $helperInstance->addFieldText('city', "Wohnort:");
        $helperInstance->addInputTextFieldWithDefault('city');
+
+       // Include birthday?
+       if ($helperInstance->ifProfileIncludesBirthDay()) {
+               $helperInstance->addFormSubGroup('birthday', "Verrate uns doch dein Geburtsdatum, als Dankeschön erhälst du interessante Prämien - ausschliesslich per Email - zum Geburtstag zugesandt! Gültiges Format: TT.MM.JJJJ");
+               $helperInstance->addInputTextField('birth_day');
+               $helperInstance->addFieldText('birth_day', ".");
+               $helperInstance->addInputTextField('birth_month');
+               $helperInstance->addFieldText('birth_day', ".");
+               $helperInstance->addInputTextField('birth_year');
+       } // END - if
 } // END - if
 
 // Add sub group for zip code
@@ -106,7 +116,7 @@ if ($helperInstance->ifRulesHaveChanged()) {
 
 // CAPTCHA enabled?
 if ($helperInstance->ifFormSecuredWithCaptcha()) {
-       $helperInstance->addFormGroup('captcha_user', "Unser Benuzter-Login ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, damit du dich einloggen kannst.");
+       $helperInstance->addFormGroup('captcha_user', "Das Ändern von Profildaten ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, damit deine Änderungen gespeichert werden können.");
        $helperInstance->addCaptcha();
 } // END - if
 
@@ -119,10 +129,12 @@ $helperInstance->addInputPasswordField('pass_old');
 $helperInstance->addFormGroup('buttons', "Sind alle Daten nun korrekt eingegeben? Dann sende sie mit einem Klick einfach ab!");
 $helperInstance->addInputResetButton("Alles nochmal eingeben");
 $helperInstance->addInputSubmitButton("Accountdaten aktualisieren");
-$helperInstance->addFormNote('data_protection', "Deine Daten werden nach den gültigen Datenschutzgesetzten gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link "Datenschutz".");
+$helperInstance->addFormNote('data_protection', "Deine Daten werden nach den gültigen Datenschutzgesetzen gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link "Datenschutz".");
 
 // Flush finished form
 $helperInstance->flushContent();
+
+// [EOC]
 ?>
 <div id="content_header">
        Deine Profildaten bearbeiten