X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fship-simu%2Ftemplates%2Fde%2Fcode%2Faction_ship_simu_login_profile.ctp;h=8037a4ec096d706ad6724c804bffb45d009d9439;hb=8f2f947816821753cf4f2739cd21b8057bab328b;hp=866489d89919be0777264b0b3c2a3da52b1b5d6d;hpb=bbf48d46cb9063a4d2b78c106747147712f5474e;p=shipsimu.git diff --git a/application/ship-simu/templates/de/code/action_ship_simu_login_profile.ctp b/application/ship-simu/templates/de/code/action_ship_simu_login_profile.ctp index 866489d..8037a4e 100644 --- a/application/ship-simu/templates/de/code/action_ship_simu_login_profile.ctp +++ b/application/ship-simu/templates/de/code/action_ship_simu_login_profile.ctp @@ -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: ".$helperInstance->getValueField('email').""); +$helperInstance->addFormNote('current_email', "Derzeitige Email-Adresse: ".$helperInstance->getValueField('email').""); // 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ätigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann möglichst schnell an."); - } // END - Change requires confirmation -} // END - email change allowed + $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 // Add form group for user profile $helperInstance->addFormGroup('profile', "Hier kannst du deine Profildaten ä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ö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 $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 Ä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 + // Ask again for current account password $helperInstance->addFormGroup('pass_old', "Bitte gebe zur Bestätigung der Ä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ü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] ?>
Deine Profildaten bearbeiten