Renamed 'ship-simu' to 'shipsimu' + added 'core' and symlink to core/inc
[shipsimu.git] / application / shipsimu / templates / de / code / register_form.ctp
1 <?php
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
4 // BaseHelper.
5 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_register'));
6
7 // Always ask at least for nickname and password
8 $helperInstance->addFormGroup('login', "Bitte gebe hier gew&uuml;nschten Nickname und dein Zugangspasswort ein.");
9 $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.");
10 $helperInstance->addFieldText('username', "Nickname im Spiel:");
11 $helperInstance->addInputTextField('username');
12 $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.");
13 $helperInstance->addFieldText('pass1', "Passwort:");
14 $helperInstance->addInputPasswordField('pass1');
15 $helperInstance->addFieldText('pass2', "Passwortwiederholung:");
16 $helperInstance->addInputPasswordField('pass2');
17
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&auml;tigung) ein, damit wir dir deinen Freischaltlink zusenden k&ouml;nnen.");
21         $helperInstance->addFieldText('email1', "Email-Adresse:");
22         $helperInstance->addInputTextField('email1');
23         $helperInstance->addFieldText('email2', "Wiederholung Email-Adresse:");
24         $helperInstance->addInputTextField('email2');
25
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.");
29         } // END - if
30 } // END - if
31
32 // Shall we also ask some personal data to complete the profile?
33 if ($helperInstance->ifRegisterIncludesProfile()) {
34         $helperInstance->addFormGroup('profile', "Hier kannst du zus&auml;tzlich deine Profildaten vorweg eingeben, du kannst sie aber auch nach dem Login vervollst&auml;ndigen!");
35
36         if (!$helperInstance->ifRegisterRequiresEmailVerification()) {
37                 $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.");
38                 $helperInstance->addFieldText('email1', "Email-Adresse:");
39                 $helperInstance->addInputTextField('email1');
40
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.");
44                 } // END - if
45         } // END - if
46
47         // Persoenliche Daten mit in der Anmeldung abfragen?
48         if ($helperInstance->ifRegisterIncludesPersonaData()) {
49                 $helperInstance->addFormSubGroup('persona', "Wenn du magst, dann vervollst&auml;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');
58
59                 // Include birthday?
60                 if ($helperInstance->ifProfileIncludesBirthDay()) {
61                         $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");
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');
67                 } // END - if
68         } // END - if
69
70         $helperInstance->addFormSubGroup('zip', "Magst du uns auch deine Postleitzahl verraten?");
71         $helperInstance->addFieldText('zip', "Postleitzahl:");
72         $helperInstance->addInputTextField('zip');
73
74         $helperInstance->addFormSubGroup('chat', "Gebe hier deine Nicknames bzw. Nummern an:");
75
76         if ($helperInstance->ifChatEnabled('icq')) {
77                 $helperInstance->addFieldText('icq', "ICQ-Nummer:");
78                 $helperInstance->addInputTextField('icq');
79         } // END - if
80
81         if ($helperInstance->ifChatEnabled('jabber')) {
82                 $helperInstance->addFieldText('jabber', "Jabber:");
83                 $helperInstance->addInputTextField('jabber');
84         } // END - if
85
86         if ($helperInstance->ifChatEnabled('yahoo')) {
87                 $helperInstance->addFieldText('yahoo', "Yahoo!:");
88                 $helperInstance->addInputTextField('yahoo');
89         } // END - if
90
91         if ($helperInstance->ifChatEnabled('aol')) {
92                 $helperInstance->addFieldText('aol', "AOL-Screenname:");
93                 $helperInstance->addInputTextField('aol');
94         } // END - if
95
96         if ($helperInstance->ifChatEnabled('msn')) {
97                 $helperInstance->addFieldText('msn', "MSN:");
98                 $helperInstance->addInputTextField('msn');
99         } // END - if
100
101         if (!$helperInstance->ifRegisterRequiresEmailVerification()) {
102                 $helperInstance->addFormExtraNote(1, "Die Benachrichtigungen per sind im Loginbereich verfeinerbar, welche du genau haben willst.");
103         } // END - Extra note
104
105 } // END - ask profile data
106
107 // Spielregeln abfragen
108 $helperInstance->addFormGroup('rules', "Bitte lese dir die Spieleregeln gut durch und kreuze dann &quot;Ja, ich akzeptiere die aktuellen Spielregeln&quot; an.");
109 $helperInstance->addFieldText('rules', "Ja, ich akzeptiere die aktuellen Spielregeln:");
110 $helperInstance->addInputCheckboxField('rules', false);
111
112 // Add CAPTCHA?
113 if ($helperInstance->ifFormSecuredWithCaptcha()) {
114         $helperInstance->addFormGroup('captcha', "Bitte wiederhole den angezeigten Code damit die Anmeldung abgeschlossen werden kann.");
115         $helperInstance->addCaptcha();
116 } // END - if
117
118 // Final note and submit buttons
119 $helperInstance->addFormGroup('buttons', "Wenn du alle ben&ouml;tigten Felder korrekt ausgef&uuml;t hast, kannst du die Anmeldung abschliessen.");
120
121 $helperInstance->addInputResetButton("Alles nochmal eingeben");
122 $helperInstance->addInputSubmitButton("Anmeldung zum Spiel abschliessen");
123 $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;.");
124 $helperInstance->flushContent();
125
126 // [EOC]
127 ?>
128 <div id="content_header">
129         Anmeldung bei <span class="app_name">{?app_full_name?}</span>
130 </div>
131
132 <div id="register_box">
133         {?shipsimu_register?}
134 </div>