]> 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 866489d89919be0777264b0b3c2a3da52b1b5d6d..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');
@@ -16,7 +16,7 @@ $helperInstance->addFieldText('pass2', "Neues Passwort, Wiederholung:");
 $helperInstance->addInputPasswordField('pass2');
 
 // Display current email
-$helperInstance->addFormNote('current_email', "Derzeitige Email-Adresse: <span id=\"displayed_field\">".$helperInstance->getValueField('email')."</span>");
+$helperInstance->addFormNote('current_email', "Derzeitige Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
 
 // Only for changing email address
 if ($helperInstance->ifEmailChangeAllowed()) {
@@ -29,12 +29,12 @@ if ($helperInstance->ifEmailChangeAllowed()) {
 
        if ($helperInstance->ifEmailMustBeUnique()) {
                $helperInstance->addFormNote('email', "Die von dir eingegebene Email-Adresse darf nur einmal im Spiel verwendet worden sein.");
-       } // END - Unique email addresses
+       } // END - if
 
        if ($helperInstance->ifEmailChangeRequireConfirmation()) {
-               $helperInstance->addFormNote('confirm_link', "Es wird ein Best&auml;tigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann m&ouml;glichst schnell an.");
-       } // END - Change requires confirmation
-} // END - email change allowed
+               $helperInstance->addFormNote('confirm', "Es wird ein Best&auml;tigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann m&ouml;glichst schnell an.");
+       } // END - if
+} // END - if
 
 // Add form group for user profile
 $helperInstance->addFormGroup('profile', "Hier kannst du deine Profildaten &auml;ndern.");
@@ -50,9 +50,19 @@ if ($helperInstance->ifRegisterIncludesPersonaData()) {
        $helperInstance->addInputTextFieldWithDefault('street');
        $helperInstance->addFieldText('city', "Wohnort:");
        $helperInstance->addInputTextFieldWithDefault('city');
-} // END - Persona data
 
-// Add su group for zip code
+       // Include birthday?
+       if ($helperInstance->ifProfileIncludesBirthDay()) {
+               $helperInstance->addFormSubGroup('birthday', "Verrate uns doch dein Geburtsdatum, als Dankesch&ouml;n erh&auml;lst du interessante Pr&auml;mien - ausschliesslich per Email - zum Geburtstag zugesandt! G&uuml;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
 $helperInstance->addFormSubGroup('zip', "Magst du uns auch deine Postleitzahl verraten?");
 $helperInstance->addFieldText('zip', "Postleitzahl:");
 $helperInstance->addInputTextFieldWithDefault('zip');
@@ -91,8 +101,8 @@ if ($helperInstance->ifChatEnabled('msn')) {
 } // END - if
 
 if (!$helperInstance->ifRegisterRequiresEmailVerification()) {
-       $helperInstance->addFormExtraNote(1, "Die Benachrichtigungen per sind im Loginbereich verfeinerbar, welche du genau haben willst.");
-} // END - Extra note
+       $helperInstance->addFormExtraNote(1, "Die Benachrichtigungen per Email sind im Loginbereich verfeinerbar, welche du genau haben willst.");
+} // END - if
 
 // Rules already accepted?
 if ($helperInstance->ifRulesHaveChanged()) {
@@ -104,17 +114,27 @@ if ($helperInstance->ifRulesHaveChanged()) {
        $helperInstance->addInputHiddenField('rules', "1");
 }
 
+// CAPTCHA enabled?
+if ($helperInstance->ifFormSecuredWithCaptcha()) {
+       $helperInstance->addFormGroup('captcha_user', "Das &Auml;ndern von Profildaten ist durch ein CAPTCHA gesch&uuml;tzt. Bitte wiederhole den angezeigten Code, damit deine &Auml;nderungen gespeichert werden k&ouml;nnen.");
+       $helperInstance->addCaptcha();
+} // END - if
+
 // Ask again for current account password
 $helperInstance->addFormGroup('pass_old', "Bitte gebe zur Best&auml;tigung der &Auml;nderungen dein derzeitiges Passwort ein.");
 $helperInstance->addFieldText('pass_old', "Derzeitiges Passwort:");
 $helperInstance->addInputPasswordField('pass_old');
 
-// Abschliessender Hinweis und Abschluss des Formulars
+// Final notices
 $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&uuml;ltigen Datenschutzgesetzten gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link &quot;Datenschutz&quot;.");
+$helperInstance->addFormNote('data_protection', "Deine Daten werden nach den g&uuml;ltigen Datenschutzgesetzen gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link &quot;Datenschutz&quot;.");
+
+// Flush finished form
 $helperInstance->flushContent();
+
+// [EOC]
 ?>
 <div id="content_header">
        Deine Profildaten bearbeiten