{% extends 'base.html' %}

{% block content %}
  <h2>{% if form.instance.pk %}Editar Vendedor{% else %}Adicionar Vendedor{% endif %}</h2>
  <form method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <button type="submit" class="btn btn-primary">Salvar</button>
    <a href="{% url 'seller-list' %}" class="btn btn-secondary">Cancelar</a>
  </form>
{% endblock %}
