summaryrefslogtreecommitdiff
path: root/src/application/views
diff options
context:
space:
mode:
authorJonas Kohl2024-09-15 19:55:12 +0200
committerJonas Kohl2024-09-15 19:55:12 +0200
commitcb9b87997993702131ca24d4d0e1fd45ef64805c (patch)
tree3ba1725028665f90b546703c461394b577b3e596 /src/application/views
parentcc97f36b8c9a9522636d5b50fbcd2f52de06a01a (diff)
Begun i18n work & more
Diffstat (limited to 'src/application/views')
-rw-r--r--src/application/views/form_login.php2
-rw-r--r--src/application/views/form_register.php5
-rw-r--r--src/application/views/nav_guest.php4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/application/views/form_login.php b/src/application/views/form_login.php
index 27924e8..de8f28c 100644
--- a/src/application/views/form_login.php
+++ b/src/application/views/form_login.php
@@ -10,7 +10,7 @@ RequestUtils::clearLastForm();
?>
<div class="page-header margin-top-0">
- <h1>Log in</h1>
+ <h1><?= __("Log in") ?></h1>
</div>
<div class="col-md-4"></div>
<div class="well col-md-4">
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>
diff --git a/src/application/views/nav_guest.php b/src/application/views/nav_guest.php
index f897763..1c65a50 100644
--- a/src/application/views/nav_guest.php
+++ b/src/application/views/nav_guest.php
@@ -1,6 +1,6 @@
<ul class="nav navbar-nav navbar-right">
-<li<?= $GLOBALS["action"] === "auth" ? ' class="active"' : '' ?>><a href="?_action=auth&amp;next=<?= htmlentities(urlencode($_SERVER["REQUEST_URI"])) ?>">Log in</a></li>
+<li<?= $GLOBALS["action"] === "auth" ? ' class="active"' : '' ?>><a href="?_action=auth&amp;next=<?= htmlentities(urlencode($_SERVER["REQUEST_URI"])) ?>"><?= __("Log in") ?></a></li>
<?php if (REGISTRATION_ENABLED): ?>
-<li<?= $GLOBALS["action"] === "register" ? ' class="active"' : '' ?>><a href="?_action=register&amp;next=<?= htmlentities(urlencode($_SERVER["REQUEST_URI"])) ?>">Register</a></li>
+<li<?= $GLOBALS["action"] === "register" ? ' class="active"' : '' ?>><a href="?_action=register&amp;next=<?= htmlentities(urlencode($_SERVER["REQUEST_URI"])) ?>"><?= __("Register") ?></a></li>
<?php endif; ?>
</ul> \ No newline at end of file