27 lines
943 B
HTML
27 lines
943 B
HTML
{% extends 'partner/base.html' %}
|
|
{% block content %}
|
|
<div class="container mt-4">
|
|
<h3>{% if object %}Edit{% else %}Add{% endif %} Partner User</h3>
|
|
|
|
<form method="post" novalidate>
|
|
{% csrf_token %}
|
|
|
|
{% for field in form %}
|
|
<div class="mb-3">
|
|
{{ field.label_tag }}
|
|
{{ field }}
|
|
{% if field.help_text %}
|
|
<small class="form-text text-muted">{{ field.help_text }}</small>
|
|
{% endif %}
|
|
{% for error in field.errors %}
|
|
<div class="text-danger">{{ error }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
<button class="btn btn-primary">Save</button>
|
|
<a class="btn btn-secondary" href="{% url 'accounts:partner_user_list' %}">Cancel</a>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|