Add edit and new for users

This commit is contained in:
gabatxo1312
2026-01-29 23:52:55 +01:00
parent 57af399ace
commit cf9a7cf33f
12 changed files with 229 additions and 88 deletions
+22
View File
@@ -0,0 +1,22 @@
{% extends "base.html" %}
{% import "components/typography.html" as typography %}
{% import "components/cards.html" as cards %}
o{% import "components/inputs.html" as form_helpers %}
{% block main %}
{{ typography::heading("New User") }}
{% 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) }}
</div>
<div class="col-md-2">
<input type="submit" value="Create user" class="btn btn-success">
</div>
</div>
</form>
{% endcall %}
{% endblock %}