Add locales

This commit is contained in:
gabatxo1312 2026-01-30 18:23:54 +01:00
commit 362beac856
No known key found for this signature in database
22 changed files with 519 additions and 103 deletions

View file

@ -4,17 +4,17 @@
o{% import "components/inputs.html" as form_helpers %}
{% block main %}
{{ typography::heading("New User") }}
{{ typography::heading(t!("user.edit.title")) }}
{% call cards::card() %}
<form action="/users/{{ user.id }}" method="post">
<div class="row align-items-end">
<div class="col-md-10">
{{ form_helpers::input("name", "Name", value = user.name, is_required = true, placeholder = "Ex: Kropotkine", margin_bottom = false) }}
{{ form_helpers::input("name", t!("user.attributes.name"), value = user.name, is_required = true, placeholder = "Ex: Kropotkine", margin_bottom = false) }}
</div>
<div class="col-md-2">
<input type="submit" value="Edit user" class="btn btn-success">
<input type="submit" value='{{ t!("user.edit.button") }}' class="btn btn-success">
</div>
</div>
</form>