summaryrefslogtreecommitdiff
path: root/src/application/views/form_register.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-18 23:05:35 +0200
committerJonas Kohl2024-09-18 23:05:35 +0200
commit01454544896827113e49db0d2848b5aab6ce14ae (patch)
tree9487c3d45a04d350bca2ed8401a797ed69cd7e8a /src/application/views/form_register.php
parenta65d424263adfbff9629c7d91a613e4504c84613 (diff)
Many changes
Diffstat (limited to 'src/application/views/form_register.php')
-rw-r--r--src/application/views/form_register.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/application/views/form_register.php b/src/application/views/form_register.php
index a082611..23f470d 100644
--- a/src/application/views/form_register.php
+++ b/src/application/views/form_register.php
@@ -15,11 +15,12 @@ RequestUtils::clearLastForm();
<div class="col-md-4"></div>
<div class="well col-md-4">
<?php
-if (($_formError = RequestUtils::getAndClearFormError()) !== null) {
+if (($_formError = RequestUtils::getAndClearFormError("register")) !== null) {
_view("alert_error", ["message" => $_formError]);
}
?>
<form action="<?= htmlentities($_SERVER["REQUEST_URI"]) ?>" method="post">
+<input type="hidden" name="form_id" value="register">
<div class="form-group" id="group0">
<label for="i_username"><?= __("Username:") ?></label>
<input class="form-control" id="i_username" type="text" name="username" value="" required>
@@ -27,7 +28,7 @@ if (($_formError = RequestUtils::getAndClearFormError()) !== null) {
<div class="form-group" id="group1">
<label for="i_username"><?= __("Username:") ?></label>
- <input class="form-control" id="i_username" type="text" name="df82a9bc21" value="<?= htmlentities($lastForm["df82a9bc21"] ?? "") ?>" required>
+ <input class="form-control" id="i_username" type="text" name="df82a9bc21" value="<?= htmlentities($lastForm["df82a9bc21"] ?? "") ?>" required autofocus>
</div>
<div class="form-group" id="group2">
@@ -64,7 +65,7 @@ if (($_formError = RequestUtils::getAndClearFormError()) !== null) {
</div>
<div class="form-group">
- <button class="btn btn-default" type="submit"><?= __("Register now") ?></button>
+ <button class="btn btn-primary" type="submit"><?= __("Register now") ?></button>
</div>
<div class="form-group">