27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
{% extends "ui/templates/base/layout.html" %}
|
|
{% block content %}
|
|
<div class="space-y-6">
|
|
<div>
|
|
<h2 class="text-2xl font-semibold text-slate-900">Edit Client</h2>
|
|
<p class="text-sm text-slate-500">B5 role-aware edit flow.</p>
|
|
</div>
|
|
|
|
{% if form_errors %}
|
|
<div class="rounded-2xl border border-rose-200 bg-rose-50 p-4">
|
|
<ul class="list-disc pl-5 text-sm text-rose-700">
|
|
{% for err in form_errors %}<li>{{ err }}</li>{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form method="post" action="/clients/{{ row.id }}/edit" class="space-y-6">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
|
{% include "modules/clients/templates/clients/partials/form.html" %}
|
|
<div class="flex items-center justify-end gap-3">
|
|
<a href="/clients/{{ row.id }}" class="rounded-xl border border-slate-300 px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">Cancel</a>
|
|
<button class="rounded-xl bg-brand-600 px-4 py-2 text-sm font-medium text-white hover:bg-brand-700">Save Changes</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|