// BaseHelper.
$helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'shipsimu_user_login'));
-// Formular deaktiviert?
+// Is the form enabled?
if ($helperInstance->ifLoginIsEnabled()) {
- // Formular ist aktiv
+ // Form is active
$helperInstance->addFormGroup('login', "Gebe hier deine Logindaten ein:");
- // Welches Loginverfahren wurde konfiguriert?
+ // Which login method has been configured?
if ($helperInstance->ifLoginWithUsername()) {
- // Login mit Username
+ // Login with user name only
$helperInstance->addFormSubGroup('username', "Bitte mit deinem Nickname einloggen.");
$helperInstance->addFieldText('username', "Dein Nickname:");
$helperInstance->addInputTextField('username');
} elseif ($helperInstance->ifLoginWithEmail()) {
- // Login mit Email
+ // Login with email address only
$helperInstance->addFormSubGroup('email', "Bitte mit deiner Email-Adresse einloggen.");
$helperInstance->addFieldText('email', "Deine Email-Addresse:");
$helperInstance->addInputTextField('email');
} else {
- // Login mit Email/Username
+ // Login with email address or user name
$helperInstance->addFormSubGroup('user_email', "Bitte mit deinem Nickname oder Email-Adresse einloggen.");
$helperInstance->addFieldText('user_email', "Dein Nickname/Email:");
$helperInstance->addInputTextField('user_email');
}
+ // Add password input field
$helperInstance->addFormSubGroup('pass', "Gebe dein Passwort von der Anmeldung ein.");
$helperInstance->addFieldText('pass', "Dein Passwort:");
$helperInstance->addInputPasswordField('pass');
$helperInstance->addInputResetButton("Formular leeren");
$helperInstance->addInputSubmitButton("Zum Spiel einloggen");
} else {
- // Formular deaktiviert
+ // Form is inactive
$helperInstance->addFormNote('form_deactivated', "Einloggen in's Spiel ist derzeit administrativ deaktiviert worden. Bitte komme später noch mal wieder.");
$helperInstance->addFormNote('admin_notice', "Nachricht vom Admin: <span id=\"disabled_reason\">".$this->getConfigInstance()->readConfig('login_disabled_reason')."</span>");
}