{% extends 'setup/setup_base.html' %}

{% load static %}
{% block form %}
<form enctype="multipart/form-data" action="" method="POST">
    {% csrf_token %}
    <div class="card-body ">
        <h1 class="text-center">Configure Your Comfy Essential Mailings</h1>
        {% for field in form %}
            <div class="row mb-3 mt-5">
                <div class="col-1">
                    
                </div>
                <div class="col-6">
                    <h3>
                        <label for="id_logo" class="form-label">{{field.label}}</label>
                        <img src = "{% static 'images/icons/question-circle.svg' %}" alt="?" 
                        data-bs-toggle="tooltip" data-bs-placement="top" title="{{field.help_text}}"/>  
                    </h3>
                </div>
                <div class="col-4">
                    {{field}}
                </div>
            </div>
        {% endfor %}
        {% if form.errors %}
            <div class="alert alert-danger">
                {{ form.errors }}
            </div>
        {% endif %}
    </div>
    <div class="card-footer text-muted text-center">
        <input type="submit" class="btn btn-primary" value="Save">
    </div>
</form>
{% endblock %}
