Fix template formatting & update translations

This commit is contained in:
Quentin Gliech
2026-06-10 10:50:56 +02:00
parent ba96908275
commit ecc8c46b96
2 changed files with 20 additions and 20 deletions
+18 -18
View File
@@ -41,26 +41,26 @@ Please see LICENSE files in the repository root for full details.
{% endif %}
<input type="hidden" name="csrf" value="{{ csrf_token }}" />
{% if features.password_login %}
{% if features.login_with_email_allowed %}
{% call(f) field.field(label=_("mas.login.username_or_email"), name="username", form_state=form) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="text" autocomplete="username" autocorrect="off" autocapitalize="off" required />
{% endcall %}
{% else %}
{% call(f) field.field(label=_("common.username"), name="username", form_state=form) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="text" autocomplete="username" autocorrect="off" autocapitalize="off" required />
{% if features.password_login %}
{% if features.login_with_email_allowed %}
{% call(f) field.field(label=_("mas.login.username_or_email"), name="username", form_state=form) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="text" autocomplete="username" autocorrect="off" autocapitalize="off" required />
{% endcall %}
{% else %}
{% call(f) field.field(label=_("common.username"), name="username", form_state=form) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="text" autocomplete="username" autocorrect="off" autocapitalize="off" required />
{% endcall %}
{% endif %}
{% call(f) field.field(label=_("common.password"), name="password", form_state=form) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="password" autocomplete="password" required />
{% endcall %}
{% if features.account_recovery %}
{{ button.link_text(text=_("mas.login.forgot_password"), href="/recover", class="self-center") }}
{% endif %}
{% endif %}
{% call(f) field.field(label=_("common.password"), name="password", form_state=form) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="password" autocomplete="password" required />
{% endcall %}
{% if features.account_recovery %}
{{ button.link_text(text=_("mas.login.forgot_password"), href="/recover", class="self-center") }}
{% endif %}
{% endif %}
</div>
<div class="cpd-form-root">
+2 -2
View File
@@ -99,7 +99,7 @@
},
"username": "Username",
"@username": {
"context": "pages/login.html:50:37-57, pages/register/index.html:30:35-55, pages/register/password.html:34:33-53, pages/upstream_oauth2/do_register.html:101:35-55, pages/upstream_oauth2/do_register.html:107:39-59"
"context": "pages/login.html:51:39-59, pages/register/index.html:30:35-55, pages/register/password.html:34:33-53, pages/upstream_oauth2/do_register.html:101:35-55, pages/upstream_oauth2/do_register.html:107:39-59"
}
},
"error": {
@@ -489,7 +489,7 @@
},
"username_or_email": "Username or Email",
"@username_or_email": {
"context": "pages/login.html:46:37-69"
"context": "pages/login.html:47:39-71"
}
},
"navbar": {