Add router

This commit is contained in:
gabatxo1312
2026-01-31 18:21:28 +01:00
parent f6d4e7c556
commit 8c94eb5252
19 changed files with 106 additions and 67 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
{% block main %}
{% call typography::heading(t!("user.index.title")) %}
<a class="btn-success btn" href="/users/new">{{ t!("user.index.button") }}</a>
<a class="btn-success btn" href="{{ router.new_user_path() }}">{{ t!("user.index.button") }}</a>
{% endcall %}
{% call cards::card() %}
@@ -42,7 +42,7 @@
<div class="d-flex flex-column align-items-center justify-content-center">
<h2>{{ t!("common.no_result") }}</h2>
<a class="btn btn-success text-white text-nowrap mt-3" href="//new">
<a class="btn btn-success text-white text-nowrap mt-3" href="{{ router.new_user_path() }}">
{{ t!("user.index.button") }}
</a>
</div>