]> git.mxchange.org Git - admin.git/blob - application/admin/templates/de/code/login_form.ctp
Rewritten for updated core
[admin.git] / application / admin / templates / de / code / login_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, 'admin_user_login'));
6
7 // Formular deaktiviert?
8 if ($helperInstance->ifLoginIsEnabled()) {
9         // Formular ist aktiv
10         $helperInstance->addFormGroup('login', "Gebe hier deine Logindaten ein:");
11
12         // Welches Loginverfahren wurde konfiguriert?
13         if ($helperInstance->ifLoginWithUsername()) {
14                 // Login mit Username
15                 $helperInstance->addFormSubGroup('username', "Bitte mit deinem Nickname einloggen.");
16                 $helperInstance->addFieldText('username', "Dein Nickname:");
17                 $helperInstance->addInputTextField('username');
18         } elseif ($helperInstance->ifLoginWithEmail()) {
19                 // Login mit Email
20                 $helperInstance->addFormSubGroup('email', "Bitte mit deiner Email-Adresse einloggen.");
21                 $helperInstance->addFieldText('email', "Deine Email-Addresse:");
22                 $helperInstance->addInputTextField('email');
23         } else {
24                 // Login mit Email/Username
25                 $helperInstance->addFormSubGroup('user_email', "Bitte mit deinem Nickname oder Email-Adresse einloggen.");
26                 $helperInstance->addFieldText('user_email', "Dein Nickname/Email:");
27                 $helperInstance->addInputTextField('user_email');
28         }
29
30         $helperInstance->addFormSubGroup('pass', "Gebe dein Passwort von der Anmeldung ein.");
31         $helperInstance->addFieldText('pass', "Dein Passwort:");
32         $helperInstance->addInputPasswordField('pass');
33
34         // CAPTCHA enabled?
35         if ($helperInstance->ifFormSecuredWithCaptcha()) {
36                 $helperInstance->addFormGroup('captcha_user', "Das Benutzer-Login ist durch ein CAPTCHA gesch&uuml;tzt. Bitte wiederhole den angezeigten Code, damit du dich einloggen kannst.");
37                 $helperInstance->addCaptcha();
38         } // END - if
39
40         // Submit buttons
41         $helperInstance->addFormGroup('buttons_user', "Alles richtig eingegeben?");
42         $helperInstance->addInputResetButton("Formular leeren");
43         $helperInstance->addInputSubmitButton("Zum <span class=\"app_name\">{?app_full_name?}</span> einloggen");
44 } else {
45         // Formular deaktiviert
46         $helperInstance->addFormNote('form_deactivated', "Einloggen in den <span class=\"app_name\">{?app_full_name?}</span> ist deaktiviert worden. Bitte komme sp&auml;ter noch mal wieder.");
47         $helperInstance->addFormNote('admin_notice', "Nachricht vom Admin: <span id=\"disabled_reason\">".$this->getConfigInstance()->readConfig('login_disabled_reason')."</span>");
48 }
49
50 // Formular schliessen
51 $helperInstance->flushContent();
52
53 // Get helper instance
54 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form', 'index.php?app={?app_short_name?}&amp;page=register'));
55
56 // Set link text
57 $helperInstance->addLinkWithTextById('register_login');
58
59 // Flush the content
60 $helperInstance->flushContent();
61
62 // [EOC]
63 ?>
64 <div id="content_header">
65         Einloggen zu <span class="app_name">{?app_full_name?}</span>
66 </div>
67
68 <div id="content_body">
69         <div id="login_box">
70                 {?admin_user_login?}
71         </div>
72 </div>
73
74 <div id="content_footer">
75         Noch kein Loginaccount? {?register_login_form?}
76 </div>