63cea23b9f0923729b86f8fa679fec1c8572bb5e
[admin.git] / application / admin / templates / de / code / action_admin_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 }
22
23 // Flush content and automatically close the form
24 $helperInstance->flushContent();
25
26 if ($helperInstance->ifUserAccountUnconfirmed()) {
27         // Build the form for confirmation
28         $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "confirm_code"));
29
30         // Add code box
31         $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.");
32         $helperInstance->addFieldText('code', "Best&auml;tigungscode aus der Mail:");
33         $helperInstance->addInputTextField('code');
34
35         // Add submit button
36         $helperInstance->addFormGroup('buttons', "Bitte einmal abschicken und das Ergebnis abwarten!");
37         $helperInstance->addInputResetButton("Nochmal eingeben");
38         $helperInstance->addInputSubmitButton("Best&auml;tigungscode absenden");
39
40         // Flush content and automatically close the form
41         $helperInstance->flushContent();
42 } // END - if
43
44 // [EOC]
45 ?>
46 <div id="content_header">
47         Problem mit deinem Account gefunden:
48 </div>
49
50 <div id="status_box">
51         Du bist m&ouml;glicherweise f&uuml;r deine ausgew&auml;hlte Aktion nicht
52         berechtigt oder du hast noch deine Email-Adresse nicht best&auml;tigt. Du
53         kannst dir nun den Best&auml;tigungslink erneut aussenden lassen, oder den
54         Best&auml;tigungscode unten eingeben.
55
56         <div id="resend_box">
57                 {?resend?}
58         </div>
59
60         <div id="confirm_code_box">
61                 {?confirm_code?}
62         </div>
63 </div>