]> git.mxchange.org Git - city.git/blob - application/city/templates/code/register_form.ctp
Continued:
[city.git] / application / city / templates / code / register_form.ctp
1 <?php
2 // Import framework stuff
3 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
4
5 // Get helper instance for web forms. This will add the opening form-tag to
6 // the helper's render cache which is simply a small variable in the class
7 // BaseHelper.
8 $helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'city_register'));
9
10 // Always ask at least for nickname and password
11 $helperInstance->addFormGroup('login', "Bitte gebe hier gew&uuml;nschten Nickname und dein Zugangspasswort ein.");
12 $helperInstance->addFormSubGroup('username', "Dein Nickname wird erst nach Absenden des Formulares gepr&uuml;ft. Sp&auml;ter bauen wir dann einen automatischen Test ein, der dir sofort zeigt, ob der Nickname bereits vergeben ist.");
13 $helperInstance->addFieldText('username', "Nickname im Spiel:");
14 $helperInstance->addInputTextField('username');
15 $helperInstance->addFormSubGroup('pass', "Dein Passwort sollte nicht zu leicht erratbar sein. Sp&auml;ter bauen wir hier noch einen automatischen Test ein, der dir sofort die Passwortst&auml;rke anzeigt.");
16 $helperInstance->addFieldText('pass1', "Passwort:");
17 $helperInstance->addInputPasswordField('pass1');
18 $helperInstance->addFieldText('pass2', "Passwortwiederholung:");
19 $helperInstance->addInputPasswordField('pass2');
20
21 // Does this registration require an email?
22 if ($helperInstance->ifRegisterRequiresEmailVerification()) {
23         $helperInstance->addFormGroup('email', "Bitte gebe deine Email zweimal (ein zweites Mal zur Best&auml;tigung) ein, damit wir dir deinen Freischaltlink zusenden k&ouml;nnen.");
24         $helperInstance->addFieldText('email1', "Email-Adresse:");
25         $helperInstance->addInputTextField('email1');
26         $helperInstance->addFieldText('email2', "Wiederholung Email-Adresse:");
27         $helperInstance->addInputTextField('email2');
28
29         // Must the email address be unique in this system?
30         if ($helperInstance->ifEmailMustBeUnique()) {
31                 $helperInstance->addFormNote('email', "Die von dir eingegebene Email-Adresse darf nur einmal im Spiel verwendet worden sein.");
32         } // END - if
33 } // END - if
34
35 // Shall we also ask some personal data to complete the profile?
36 if ($helperInstance->ifRegisterIncludesProfile()) {
37         $helperInstance->addFormGroup('profile', "Hier kannst du zus&auml;tzlich deine Profildaten vorweg eingeben, du kannst sie aber auch nach dem Login vervollst&auml;ndigen!");
38
39         if (!$helperInstance->ifRegisterRequiresEmailVerification()) {
40                 $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.");
41                 $helperInstance->addFieldText('email1', "Email-Adresse:");
42                 $helperInstance->addInputTextField('email1');
43
44                 // Must the email address be unique in this system?
45                 if ($helperInstance->ifEmailMustBeUnique()) {
46                         $helperInstance->addFormNote('email', "Die von dir eingegebene Email-Adresse darf nur einmal im Spiel verwendet worden sein.");
47                 } // END - if
48         } // END - if
49
50         // Persoenliche Daten mit in der Anmeldung abfragen?
51         if ($helperInstance->ifRegisterIncludesPersonaData()) {
52                 $helperInstance->addFormSubGroup('persona', "Wenn du magst, dann vervollst&auml;ndige deine komplette Adresse mit deinem Namen.");
53                 $helperInstance->addFieldText('surname', "Dein Vorname:");
54                 $helperInstance->addInputTextField('surname');
55                 $helperInstance->addFieldText('family', "Dein Nachname:");
56                 $helperInstance->addInputTextField('family');
57                 $helperInstance->addFieldText('street', "Strasse und Hausnummer:");
58                 $helperInstance->addInputTextField('street');
59                 $helperInstance->addFieldText('city', "Wohnort:");
60                 $helperInstance->addInputTextField('city');
61
62                 // Include birthday?
63                 if ($helperInstance->ifProfileIncludesBirthDay()) {
64                         $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");
65                         $helperInstance->addInputTextField('birth_day');
66                         $helperInstance->addFieldText('birth_day', ".");
67                         $helperInstance->addInputTextField('birth_month');
68                         $helperInstance->addFieldText('birth_day', ".");
69                         $helperInstance->addInputTextField('birth_year');
70                 } // END - if
71         } // END - if
72
73         $helperInstance->addFormSubGroup('zip', "Magst du uns auch deine Postleitzahl verraten?");
74         $helperInstance->addFieldText('zip', "Postleitzahl:");
75         $helperInstance->addInputTextField('zip');
76
77         $helperInstance->addFormSubGroup('chat', "Gebe hier deine Nicknames bzw. Nummern an:");
78
79         if ($helperInstance->ifChatEnabled('icq')) {
80                 $helperInstance->addFieldText('icq', "ICQ-Nummer:");
81                 $helperInstance->addInputTextField('icq');
82         } // END - if
83
84         if ($helperInstance->ifChatEnabled('jabber')) {
85                 $helperInstance->addFieldText('jabber', "Jabber:");
86                 $helperInstance->addInputTextField('jabber');
87         } // END - if
88
89         if ($helperInstance->ifChatEnabled('yahoo')) {
90                 $helperInstance->addFieldText('yahoo', "Yahoo!:");
91                 $helperInstance->addInputTextField('yahoo');
92         } // END - if
93
94         if ($helperInstance->ifChatEnabled('aol')) {
95                 $helperInstance->addFieldText('aol', "AOL-Screenname:");
96                 $helperInstance->addInputTextField('aol');
97         } // END - if
98
99         if ($helperInstance->ifChatEnabled('msn')) {
100                 $helperInstance->addFieldText('msn', "MSN:");
101                 $helperInstance->addInputTextField('msn');
102         } // END - if
103
104         if (!$helperInstance->ifRegisterRequiresEmailVerification()) {
105                 $helperInstance->addFormExtraNote(1, "Die Benachrichtigungen per sind im Loginbereich verfeinerbar, welche du genau haben willst.");
106         } // END - Extra note
107
108 } // END - ask profile data
109
110 // Spielregeln abfragen
111 $helperInstance->addFormGroup('rules', "Bitte lese dir die Spieleregeln gut durch und kreuze dann &quot;Ja, ich akzeptiere die aktuellen Spielregeln&quot; an.");
112 $helperInstance->addFieldText('rules', "Ja, ich akzeptiere die aktuellen Spielregeln:");
113 $helperInstance->addInputCheckboxField('rules', false);
114
115 // Add CAPTCHA?
116 if ($helperInstance->ifFormSecuredWithCaptcha()) {
117         $helperInstance->addFormGroup('captcha', "Bitte wiederhole den angezeigten Code damit die Anmeldung abgeschlossen werden kann.");
118         $helperInstance->addCaptcha();
119 } // END - if
120
121 // Final note and submit buttons
122 $helperInstance->addFormGroup('buttons', "Wenn du alle ben&ouml;tigten Felder korrekt ausgef&uuml;t hast, kannst du die Anmeldung abschliessen.");
123
124 $helperInstance->addInputResetButton("Alles nochmal eingeben");
125 $helperInstance->addInputSubmitButton("Anmeldung zum Spiel abschliessen");
126 $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;.");
127 $helperInstance->flushContent();
128
129 // [EOC]
130 ?>
131 <div id="content_header">
132         Anmeldung bei <span class="app_name">{?app_full_name?}</span>
133 </div>
134
135 <div id="register_box">
136         {?city_register?}
137 </div>