diff options
Diffstat (limited to 'src/application/views/form_register.php')
-rw-r--r-- | src/application/views/form_register.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/application/views/form_register.php b/src/application/views/form_register.php index 6f62652..83f3f4e 100644 --- a/src/application/views/form_register.php +++ b/src/application/views/form_register.php @@ -10,7 +10,7 @@ RequestUtils::clearLastForm(); ?> <div class="page-header margin-top-0"> - <h1>Register</h1> + <h1><?= __("Register") ?></h1> </div> <div class="col-md-4"></div> <div class="well col-md-4"> @@ -22,7 +22,7 @@ if (($_formError = RequestUtils::getAndClearFormError()) !== null) { <form action="<?= htmlentities($_SERVER["REQUEST_URI"]) ?>" method="post"> <div class="form-group" id="group0"> <label for="i_username">Username:</label> - <input class="form-control" id="i_username" type="text" name="username" value="<?= htmlentities($lastForm["username"] ?? "") ?>" required> + <input class="form-control" id="i_username" type="text" name="username" value="" required> </div> <div class="form-group" id="group1"> @@ -79,5 +79,6 @@ $(function() { $("#btn-refresh-captcha").click(function() { $("#captcha-img").attr("src", "?_action=captcha&t=" + new Date().getTime().toString()); }); + $("#i_username").prop("disabled", true).prop("required", false); }); </script> |