2 // Get helper instance for web forms. This will add the opening form-tag to
3 // the helper's render cache which is simply a small variable in the class
5 $helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'city_register'));
7 // Always ask at least for nickname and password
8 $helperInstance->addFormGroup('login', "Bitte gebe hier gewünschten Nickname und dein Zugangspasswort ein.");
9 $helperInstance->addFormSubGroup('username', "Dein Nickname wird erst nach Absenden des Formulares geprüft. Später bauen wir dann einen automatischen Test ein, der dir sofort zeigt, ob der Nickname bereits vergeben ist.");
10 $helperInstance->addFieldText('username', "Nickname im Spiel:");
11 $helperInstance->addInputTextField('username');
12 $helperInstance->addFormSubGroup('pass', "Dein Passwort sollte nicht zu leicht erratbar sein. Später bauen wir hier noch einen automatischen Test ein, der dir sofort die Passwortstärke anzeigt.");
13 $helperInstance->addFieldText('pass1', "Passwort:");
14 $helperInstance->addInputPasswordField('pass1');
15 $helperInstance->addFieldText('pass2', "Passwortwiederholung:");
16 $helperInstance->addInputPasswordField('pass2');
18 // Does this registration require an email?
19 if ($helperInstance->ifRegisterRequiresEmailVerification()) {
20 $helperInstance->addFormGroup('email', "Bitte gebe deine Email zweimal (ein zweites Mal zur Bestätigung) ein, damit wir dir deinen Freischaltlink zusenden können.");
21 $helperInstance->addFieldText('email1', "Email-Adresse:");
22 $helperInstance->addInputTextField('email1');
23 $helperInstance->addFieldText('email2', "Wiederholung Email-Adresse:");
24 $helperInstance->addInputTextField('email2');
26 // Must the email address be unique in this system?
27 if ($helperInstance->ifEmailMustBeUnique()) {
28 $helperInstance->addFormNote('email', "Die von dir eingegebene Email-Adresse darf nur einmal im Spiel verwendet worden sein.");
32 // Shall we also ask some personal data to complete the profile?
33 if ($helperInstance->ifRegisterIncludesProfile()) {
34 $helperInstance->addFormGroup('profile', "Hier kannst du zusätzlich deine Profildaten vorweg eingeben, du kannst sie aber auch nach dem Login vervollständigen!");
36 if (!$helperInstance->ifRegisterRequiresEmailVerification()) {
37 $helperInstance->addFormSubGroup('email', "Die Angabe deiner Email-Adresse ist nur dann nötig, wenn du auch Email-Benachrichtigungen (<span id=\"add_note\">*1</span>) haben möchtest.");
38 $helperInstance->addFieldText('email1', "Email-Adresse:");
39 $helperInstance->addInputTextField('email1');
41 // Must the email address be unique in this system?
42 if ($helperInstance->ifEmailMustBeUnique()) {
43 $helperInstance->addFormNote('email', "Die von dir eingegebene Email-Adresse darf nur einmal im Spiel verwendet worden sein.");
47 // Persoenliche Daten mit in der Anmeldung abfragen?
48 if ($helperInstance->ifRegisterIncludesPersonaData()) {
49 $helperInstance->addFormSubGroup('persona', "Wenn du magst, dann vervollständige deine komplette Adresse mit deinem Namen.");
50 $helperInstance->addFieldText('surname', "Dein Vorname:");
51 $helperInstance->addInputTextField('surname');
52 $helperInstance->addFieldText('family', "Dein Nachname:");
53 $helperInstance->addInputTextField('family');
54 $helperInstance->addFieldText('street', "Strasse und Hausnummer:");
55 $helperInstance->addInputTextField('street');
56 $helperInstance->addFieldText('city', "Wohnort:");
57 $helperInstance->addInputTextField('city');
60 if ($helperInstance->ifProfileIncludesBirthDay()) {
61 $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");
62 $helperInstance->addInputTextField('birth_day');
63 $helperInstance->addFieldText('birth_day', ".");
64 $helperInstance->addInputTextField('birth_month');
65 $helperInstance->addFieldText('birth_day', ".");
66 $helperInstance->addInputTextField('birth_year');
70 $helperInstance->addFormSubGroup('zip', "Magst du uns auch deine Postleitzahl verraten?");
71 $helperInstance->addFieldText('zip', "Postleitzahl:");
72 $helperInstance->addInputTextField('zip');
74 $helperInstance->addFormSubGroup('chat', "Gebe hier deine Nicknames bzw. Nummern an:");
76 if ($helperInstance->ifChatEnabled('icq')) {
77 $helperInstance->addFieldText('icq', "ICQ-Nummer:");
78 $helperInstance->addInputTextField('icq');
81 if ($helperInstance->ifChatEnabled('jabber')) {
82 $helperInstance->addFieldText('jabber', "Jabber:");
83 $helperInstance->addInputTextField('jabber');
86 if ($helperInstance->ifChatEnabled('yahoo')) {
87 $helperInstance->addFieldText('yahoo', "Yahoo!:");
88 $helperInstance->addInputTextField('yahoo');
91 if ($helperInstance->ifChatEnabled('aol')) {
92 $helperInstance->addFieldText('aol', "AOL-Screenname:");
93 $helperInstance->addInputTextField('aol');
96 if ($helperInstance->ifChatEnabled('msn')) {
97 $helperInstance->addFieldText('msn', "MSN:");
98 $helperInstance->addInputTextField('msn');
101 if (!$helperInstance->ifRegisterRequiresEmailVerification()) {
102 $helperInstance->addFormExtraNote(1, "Die Benachrichtigungen per sind im Loginbereich verfeinerbar, welche du genau haben willst.");
103 } // END - Extra note
105 } // END - ask profile data
107 // Spielregeln abfragen
108 $helperInstance->addFormGroup('rules', "Bitte lese dir die Spieleregeln gut durch und kreuze dann "Ja, ich akzeptiere die aktuellen Spielregeln" an.");
109 $helperInstance->addFieldText('rules', "Ja, ich akzeptiere die aktuellen Spielregeln:");
110 $helperInstance->addInputCheckboxField('rules', false);
113 if ($helperInstance->ifFormSecuredWithCaptcha()) {
114 $helperInstance->addFormGroup('captcha', "Bitte wiederhole den angezeigten Code damit die Anmeldung abgeschlossen werden kann.");
115 $helperInstance->addCaptcha();
118 // Final note and submit buttons
119 $helperInstance->addFormGroup('buttons', "Wenn du alle benötigten Felder korrekt ausgefüt hast, kannst du die Anmeldung abschliessen.");
121 $helperInstance->addInputResetButton("Alles nochmal eingeben");
122 $helperInstance->addInputSubmitButton("Anmeldung zum Spiel abschliessen");
123 $helperInstance->addFormNote('data_protection', "Deine Daten werden nach den gültigen Datenschutzgesetzen gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link "Datenschutz".");
124 $helperInstance->flushContent();
128 <div id="content_header">
129 Anmeldung bei <span class="app_name">{?app_full_name?}</span>
132 <div id="register_box">