// CFG: SHIPSIMU-GOVERMENT-STARTUP-CAPTCHA
$cfg->setConfigEntry('shipsimu_goverment_startup_captcha', "GraphicalCodeCaptcha");
+// CFG: SHIPSIMU-GOVERMENT-TRAINING-CAPTCHA
+$cfg->setConfigEntry('shipsimu_goverment_training_captcha', "GraphicalCodeCaptcha");
+
// CFG: CAPTCHA-STRING-LENGTH
$cfg->setConfigEntry('captcha_string_length', 5);
// CFG: SHIPSIMU-GOVERMENT-STARTUP-CAPTCHA-SECURED
$cfg->setConfigEntry('shipsimu_goverment_startup_captcha_secured', "Y");
+// CFG: SHIPSIMU-GOVERMENT-TRAINING-CAPTCHA-SECURED
+$cfg->setConfigEntry('shipsimu_goverment_training_captcha_secured', "Y");
+
// CFG: BLOCK-SHOWS-REGISTRATION
$cfg->setConfigEntry('block_shows_registration', "Y");
// Add link placeholder for profile page
$helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
+// Ask again for current account password
+$helperInstance->addFormGroup('password', "Bitte gebe zur Bestätigung dein derzeitiges Passwort ein.");
+$helperInstance->addFieldText('password', "Derzeitiges Passwort:");
+$helperInstance->addInputPasswordField('password');
+
// CAPTCHA enabled?
if ($helperInstance->ifFormSecuredWithCaptcha()) {
$helperInstance->addFormGroup('captcha_user', "Die virtuelle Beantragung von Starthilfe ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, damit du die Starthilfe beantragen kannst.");
$helperInstance->addCaptcha();
} // END - if
-// Ask again for current account password
-$helperInstance->addFormGroup('password', "Bitte gebe zur Bestätigung dein derzeitiges Passwort ein.");
-$helperInstance->addFieldText('password', "Derzeitiges Passwort:");
-$helperInstance->addInputPasswordField('password');
-
// Final notices
$helperInstance->addFormGroup('buttons', "Sind alle Daten nun korrekt eingegeben? Dann sende sie mit einem Klick einfach ab!");
$helperInstance->addInputResetButton("Alles nochmal eingeben");
<?php
// Get form helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_training_form'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_goverment_training'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
// Add group for personal data
$helperInstance->addFormGroup('persona_data', "Deine persönliche Daten, die für die Kursusteilnahme nötig sind:");
+// Ask again for current account password
+$helperInstance->addFormGroup('password', "Bitte gebe zur Bestätigung dein derzeitiges Passwort ein.");
+$helperInstance->addFieldText('password', "Derzeitiges Passwort:");
+$helperInstance->addInputPasswordField('password');
+
+// CAPTCHA enabled?
+if ($helperInstance->ifFormSecuredWithCaptcha()) {
+ $helperInstance->addFormGroup('captcha_user', "Die virtuelle Beantragung eines Trainingkursus ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, um den Trainingskursus zu beantragen.");
+ $helperInstance->addCaptcha();
+} // END - if
+
// Display email, surname and family name
$helperInstance->addFormNote('surname', "Vorname: <span class=\"persona_data\">".$helperInstance->getValueField('surname')."</span>");
$helperInstance->addFormNote('family', "Nachname: <span class=\"persona_data\">".$helperInstance->getValueField('family')."</span>");
</div>
<div id="goverment_form">
- {?shipsimu_training_form?}
+ {?shipsimu_goverment_training?}
</div>
</div>