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
5 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'resend_link'));
7 // Pre-fetch field data with a given registry key
8 $helperInstance->prefetchValueInstance('user');
10 // Add submit button or notice
11 if ($helperInstance->ifUserAccountUnconfirmed()) {
13 $helperInstance->addInputHiddenFieldWithDefault('email');
14 $helperInstance->addInputSubmitButton("Bestätigungslink erneut aussenden");
15 } elseif ($helperInstance->ifUserAccountLocked()) {
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."
21 } elseif ($helperInstance->ifUserAccountGuest()) {
22 // Account is guest account
23 $helperInstance->addFormNote('status_guest', "Gästeaccounts sind in der Funktionalität
24 leicht eingeschränkt. Bitte melde dich an, damit du ein
25 vollwertiges Account bekommst."
29 // Flush content and automatically close the form
30 $helperInstance->flushContent();
32 // Build the form for confirmation
33 $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'confirm_code'));
35 // Pre-fetch field data with a given registry key
36 $helperInstance->prefetchValueInstance('user');
38 if ($helperInstance->ifUserAccountUnconfirmed()) {
40 $helperInstance->addFormGroup('code', "Bitte gebe hier den Bestätigungscode aus der Willkommensemail ein. Solltest du diese nicht erhalten haben, kannst du dir diesen jetzt zusenden lassen.");
41 $helperInstance->addFieldText('code', "Bestätigungscode aus der Mail:");
42 $helperInstance->addInputTextField('code');
45 $helperInstance->addFormGroup('buttons', "Bitte einmal abschicken und das Ergebnis abwarten!");
46 $helperInstance->addInputResetButton("Nochmal eingeben");
47 $helperInstance->addInputSubmitButton("Bestätigungscode absenden");
50 $helperInstance->addFormNote('status_not_unconfirmed', "Möglicherweise hast du einen Bestätigungslink angeklickt, obwohl dein Account bereits freigegeben oder gesperrt ist.");
53 // Flush content and automatically close the form
54 $helperInstance->flushContent();
58 <div id="content_header">
59 Problem mit deinem Account gefunden:
63 Du bist möglicherweise für deine ausgewählte Aktion nicht
64 berechtigt oder du hast noch deine Email-Adresse nicht bestätigt. Du
65 kannst dir nun den Bestätigungslink erneut aussenden lassen, oder den
66 Bestätigungscode unten eingeben.
68 <div id="resend_link_box">
72 <div id="confirm_code_header">
73 Weitere Möglichkeiten:
76 <div id="confirm_code_box">