Files
fitguide/app/templates/admin/manufacturers.html
T

21 lines
767 B
HTML

{% extends "base.html" %}
{% block title %}Manufacturers · {{ app_name }}{% endblock %}
{% block body %}
{% include "_nav.html" %}
<main class="container">
<h1>Manufacturers</h1>
<div class="card">
<h2>Add manufacturer</h2>
<form hx-post="/admin/manufacturers" hx-target="#manufacturer-list" hx-swap="outerHTML" class="form-grid">
<label>Name <input type="text" name="name" required></label>
<label>Homepage URL <input type="url" name="url" required placeholder="https://"></label>
<label>Logo URL <input type="url" name="logo_url" placeholder="https:// (optional)"></label>
<button type="submit" class="btn btn-primary">Add</button>
</form>
</div>
{% include "admin/_manufacturers_table.html" %}
</main>
{% endblock %}