fix: show edit button and translations

This commit is contained in:
Victor Andersson
2025-11-11 21:09:59 +01:00
parent 3d8e5ed410
commit 65b249f2f8
5 changed files with 76 additions and 59 deletions

View File

@@ -105,7 +105,16 @@
{{ user.get_full_name|default:_("Saknar namn") }} · {{ user.email|default:_("Ingen e-post") }}
</p>
</div>
<p class="text-xs uppercase tracking-wide text-gray-400">ID: {{ user.id }}</p>
<div class="flex items-center gap-3">
<p class="text-xs uppercase tracking-wide text-gray-400">ID: {{ user.id }}</p>
{% if can_change_users %}
<button type="button"
data-open-permission-edit="{{ user.id }}"
class="inline-flex items-center gap-2 rounded-full border border-gray-200 px-3 py-1 text-xs font-semibold text-gray-700 transition hover:bg-gray-100">
{% trans "Redigera användare" %}
</button>
{% endif %}
</div>
</div>
<div class="mt-4 grid gap-6 lg:grid-cols-[2fr,1fr]">
<div class="rounded-2xl bg-slate-50 p-4">