Rewritten for updated core
[shipsimu.git] / application / ship-simu / templates / de / code / action_ship_simu_login_status_problem.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, "resend"));
6
7 // Pre-fetch field data with a given registry key
8 $helperInstance->prefetchValueInstance('user');
9
10 // Add submit button or notice
11 if ($helperInstance->ifUserAccountUnconfirmed()) {
12         // Add submit button
13         $helperInstance->addInputHiddenFieldWithDefault('email');
14         $helperInstance->addInputSubmitButton("Best&auml;tigungslink erneut aussenden");
15 } elseif ($helperInstance->ifUserAccountLocked()) {
16         // Account is locked
17         $helperInstance->addFormNote('status_locked', "Dein Account wurde gesperrt! Grund der Sperre:
18                 <span id=\"lock_reason\">".$helperInstance->getValueField('lock_reason')."</span>
19                 Bitte melde dich beim Support, damit dieser dir weiterhelfen kann."
20         );
21 } elseif ($helperInstance->ifUserAccountGuest()) {
22         // Account is guest account
23         $helperInstance->addFormNote('status_guest', "G&auml;steaccounts sind in der Funktionalit&auml;t
24                 leicht eingeschr&auml;nkt. Bitte melde dich an, damit du ein
25                 vollwertiges Account bekommst."
26         );
27 }
28
29 // Flush content and automatically close the form
30 $helperInstance->flushContent();
31
32 if ($helperInstance->ifUserAccountUnconfirmed()) {
33         // Build the form for confirmation
34         $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "confirm_code"));
35
36         // Add code box
37         $helperInstance->addFormGroup('code', "Bitte gebe hier den Best&auml;tigungscode aus der Willkommensemail ein. Solltest du diese nicht erhalten haben, kannst du dir diesen jetzt zusenden lassen.");
38         $helperInstance->addFieldText('code', "Best&auml;tigungscode aus der Mail:");
39         $helperInstance->addInputTextField('code');
40
41         // Add submit button
42         $helperInstance->addFormGroup('buttons', "Bitte einmal abschicken und das Ergebnis abwarten!");
43         $helperInstance->addInputResetButton("Nochmal eingeben");
44         $helperInstance->addInputSubmitButton("Best&auml;tigungscode absenden");
45
46         // Flush content and automatically close the form
47         $helperInstance->flushContent();
48 } // END - if
49
50 // [EOC]
51 ?>
52 <div id="content_header">
53         Problem mit deinem Account gefunden:
54 </div>
55
56 <div id="status_box">
57         Du bist m&ouml;glicherweise f&uuml;r deine ausgew&auml;hlte Aktion nicht
58         berechtigt oder du hast noch deine Email-Adresse nicht best&auml;tigt. Du
59         kannst dir nun den Best&auml;tigungslink erneut aussenden lassen, oder den
60         Best&auml;tigungscode unten eingeben.
61
62         <div id="resend_box">
63                 {?resend?}
64         </div>
65
66         <div id="confirm_code_box">
67                 {?confirm_code?}
68         </div>
69 </div>