More renamed
[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_link'));
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 // Build the form for confirmation
33 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'confirm_code'));
34
35 // Pre-fetch field data with a given registry key
36 $helperInstance->prefetchValueInstance('user');
37
38 if ($helperInstance->ifUserAccountUnconfirmed()) {
39         // Add code box
40         $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.");
41         $helperInstance->addFieldText('code', "Best&auml;tigungscode aus der Mail:");
42         $helperInstance->addInputTextField('code');
43
44         // Add submit button
45         $helperInstance->addFormGroup('buttons', "Bitte einmal abschicken und das Ergebnis abwarten!");
46         $helperInstance->addInputResetButton("Nochmal eingeben");
47         $helperInstance->addInputSubmitButton("Best&auml;tigungscode absenden");
48 } else {
49         // Add message
50         $helperInstance->addFormNote('status_not_unconfirmed', "M&ouml;glicherweise hast du einen Best&auml;tigungslink angeklickt, obwohl dein Account bereits freigegeben oder gesperrt ist.");
51 }
52
53 // Flush content and automatically close the form
54 $helperInstance->flushContent();
55
56 // [EOC]
57 ?>
58 <div id="content_header">
59         Problem mit deinem Account gefunden:
60 </div>
61
62 <div id="status_box">
63         Du bist m&ouml;glicherweise f&uuml;r deine ausgew&auml;hlte Aktion nicht
64         berechtigt oder du hast noch deine Email-Adresse nicht best&auml;tigt. Du
65         kannst dir nun den Best&auml;tigungslink erneut aussenden lassen, oder den
66         Best&auml;tigungscode unten eingeben.
67
68         <div id="resend_link_box">
69                 {?resend_link?}
70         </div>
71
72         <div id="confirm_code_header">
73                 Weitere M&ouml;glichkeiten:
74         </div>
75
76         <div id="confirm_code_box">
77                 {?confirm_code?}
78         </div>
79 </div>