{% extends 'base.html' %}

{% block content %}
<div class="container mt-4">
    <h1>{% if form.instance.pk %}Edit Client{% else %}Add Client{% endif %}</h1>
    <form method="post">
        {% csrf_token %}
        {{ form.as_p }}
        <button type="submit" class="btn btn-primary">Save</button>
        <a href="{% url 'cliente_list' %}" class="btn btn-secondary">Cancel</a>
    </form>
</div>
{% endblock %}
