]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/de/code/register_form.ctp
Filteres rewritten, birthday added, some fixes:
[shipsimu.git] / application / ship-simu / templates / de / code / register_form.ctp
index 5426b38b3efd696b6a91d5eb9448506f15345ee6..8fc6549bdfdb80a3b305ca2f5c45fc1e44bacc8c 100644 (file)
@@ -15,6 +15,7 @@ $helperInstance->addInputPasswordField('pass1');
 $helperInstance->addFieldText('pass2', "Passwortwiederholung:");
 $helperInstance->addInputPasswordField('pass2');
 
+// Does this registration require an email?
 if ($helperInstance->ifRegisterRequiresEmailVerification()) {
        $helperInstance->addFormGroup('email', "Bitte gebe deine Email zweimal (ein zweites Mal zur Bestätigung) ein, damit wir dir deinen Freischaltlink zusenden können.");
        $helperInstance->addFieldText('email1', "Email-Adresse:");
@@ -22,12 +23,13 @@ if ($helperInstance->ifRegisterRequiresEmailVerification()) {
        $helperInstance->addFieldText('email2', "Wiederholung Email-Adresse:");
        $helperInstance->addInputTextField('email2');
 
+       // Must the email address be unique in this system?
        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 - email verification
+       } // END - if
+} // END - if
 
+// Shall we also ask some personal data to complete the profile?
 if ($helperInstance->ifRegisterIncludesProfile()) {
        $helperInstance->addFormGroup('profile', "Hier kannst du zusätzlich deine Profildaten vorweg eingeben, du kannst sie aber auch nach dem Login vervollständigen!");
 
@@ -35,7 +37,12 @@ if ($helperInstance->ifRegisterIncludesProfile()) {
                $helperInstance->addFormSubGroup('email', "Die Angabe deiner Email-Adresse ist nur dann n&ouml;tig, wenn du auch Email-Benachrichtigungen (<span id=\"add_note\">*1</span>) haben m&ouml;chtest.");
                $helperInstance->addFieldText('email1', "Email-Adresse:");
                $helperInstance->addInputTextField('email1');
-       } // END - No email verification
+
+               // Must the email address be unique in this system?
+               if ($helperInstance->ifEmailMustBeUnique()) {
+                       $helperInstance->addFormNote('email', "Die von dir eingegebene Email-Adresse darf nur einmal im Spiel verwendet worden sein.");
+               } // END - if
+       } // END - if
 
        // Persoenliche Daten mit in der Anmeldung abfragen?
        if ($helperInstance->ifRegisterIncludesPersonaData()) {
@@ -48,7 +55,17 @@ if ($helperInstance->ifRegisterIncludesProfile()) {
                $helperInstance->addInputTextField('street');
                $helperInstance->addFieldText('city', "Wohnort:");
                $helperInstance->addInputTextField('city');
-       } // END - Persona data
+
+               // 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
 
        $helperInstance->addFormSubGroup('zip', "Magst du uns auch deine Postleitzahl verraten?");
        $helperInstance->addFieldText('zip', "Postleitzahl:");