22 lines
712 B
HTML
22 lines
712 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<h1 x-data x-text="$store.i18n.t('clients')">Clients</h1>
|
|
|
|
<section>
|
|
<h2 x-data x-text="$store.i18n.t('add_client_section')">Add Client</h2>
|
|
<form hx-post="/clients" hx-target="#client-list" hx-swap="outerHTML">
|
|
<label>
|
|
<span x-data x-text="$store.i18n.t('client_name_label')">Client Name</span>
|
|
<input type="text" name="name" placeholder="e.g. Contoso" required>
|
|
</label>
|
|
<button type="submit" x-data x-text="$store.i18n.t('add_client')">Add Client</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 x-data x-text="$store.i18n.t('client_list_section')">Client List</h2>
|
|
{% include "partials/client_list.html" %}
|
|
</section>
|
|
{% endblock %}
|