2 // Import framework stuff
3 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
5 // Get helper instance for web forms. This will add the opening form-tag to
6 // the helper's render cache which is simply a small variable in the class
8 $helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'resend_link'));
10 // Pre-fetch field data with a given registry key
11 $helperInstance->prefetchValueInstance('user');
13 // Add submit button or notice
14 if ($helperInstance->ifUserAccountUnconfirmed()) {
16 $helperInstance->addInputHiddenFieldWithDefault('email');
17 $helperInstance->addInputSubmitButton("Bestätigungslink erneut aussenden");
18 } elseif ($helperInstance->ifUserAccountLocked()) {
20 $helperInstance->addFormNote('status_locked', "Dein Account wurde gesperrt! Grund der Sperre:
21 <span id=\"lock_reason\">".$helperInstance->getValueField('lock_reason')."</span>
22 Bitte melde dich beim Support, damit dieser dir weiterhelfen kann."
24 } elseif ($helperInstance->ifUserAccountGuest()) {
25 // Account is guest account
26 $helperInstance->addFormNote('status_guest', "Gästeaccounts sind in der Funktionalität
27 leicht eingeschränkt. Bitte melde dich an, damit du ein
28 vollwertiges Account bekommst."
32 // Flush content and automatically close the form
33 $helperInstance->flushContent();
35 // Build the form for confirmation
36 $helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'confirm_code'));
38 // Pre-fetch field data with a given registry key
39 $helperInstance->prefetchValueInstance('user');
41 if ($helperInstance->ifUserAccountUnconfirmed()) {
43 $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.");
44 $helperInstance->addFieldText('code', "Bestätigungscode aus der Mail:");
45 $helperInstance->addInputTextField('code');
48 $helperInstance->addFormGroup('buttons', "Bitte einmal abschicken und das Ergebnis abwarten!");
49 $helperInstance->addInputResetButton("Nochmal eingeben");
50 $helperInstance->addInputSubmitButton("Bestätigungscode absenden");
53 $helperInstance->addFormNote('status_not_unconfirmed', "Möglicherweise hast du einen Bestätigungslink angeklickt, obwohl dein Account bereits freigegeben oder gesperrt ist.");
56 // Flush content and automatically close the form
57 $helperInstance->flushContent();
61 <div id="content_header">
62 Problem mit deinem Account gefunden:
66 Du bist möglicherweise für deine ausgewählte Aktion nicht
67 berechtigt oder du hast noch deine Email-Adresse nicht bestätigt. Du
68 kannst dir nun den Bestätigungslink erneut aussenden lassen, oder den
69 Bestätigungscode unten eingeben.
71 <div id="resend_link_box">
75 <div id="confirm_code_header">
76 Weitere Möglichkeiten:
79 <div id="confirm_code_box">