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 $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "resend_link"));
7 // Pre-fetch field data with a given registry key
8 $helper->prefetchValueInstance('user');
10 // Add submit button or notice
11 if ($helper->ifUserAccountUnconfirmed()) {
13 $helper->addInputHiddenFieldWithDefault('email');
14 $helper->addInputSubmitButton("Bestätigungslink erneut aussenden");
15 } elseif ($helper->ifUserAccountLocked()) {
17 $helper->addFormNote('status_locked', "Dein Account wurde gesperrt! Grund der Sperre:
18 <span id=\"lock_reason\">".$helper->getValueField('lock_reason')."</span>
19 Bitte melde dich beim Support, damit dieser dir weiterhelfen kann."
23 // Flush content and automatically close the form
24 $helper->flushContent();
26 if ($helper->ifUserAccountUnconfirmed()) {
27 // Build the form for confirmation
28 $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "confirm_code"));
31 $helper->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.");
32 $helper->addFieldText('code', "Bestätigungscode aus der Mail:");
33 $helper->addInputTextField('code');
36 $helper->addFormGroup('buttons', "Bitte einmal abschicken und das Ergebnis abwarten!");
37 $helper->addInputResetButton("Nochmal eingeben");
38 $helper->addInputSubmitButton("Bestätigungscode absenden");
40 // Flush content and automatically close the form
41 $helper->flushContent();
46 <div id="content_header">
47 Problem mit deinem Account gefunden:
51 Du bist möglicherweise für deine ausgewählte Aktion nicht
52 berechtigt oder du hast noch deine Email-Adresse nicht bestätigt. Du
53 kannst dir nun den Bestätigungslink erneut aussenden lassen, oder den
54 Bestätigungscode unten eingeben.
56 <div id="resend_link_box">
60 <div id="confirm_code_box">