{% extends 'base.html' %}
{% load static %}
{% block content %} 
{% include 'profile/header.html' %}
{% load widget_tweaks %}

{% include 'profile/drawer.html' %}
<br><br><br><br>

<div class="container mt-5">
    <h1 class="text-center mb-4">افزودن/ویرایش مصوبه</h1>

    <div class="card mb-4 animate__animated animate__delay-0.1s animate__fadeIn">
        <div class="card-body ">
            <form method="POST" enctype="multipart/form-data">
                {% csrf_token %}
                
                <div class="row mb-4 ">
                    <div class="col-md-6">
                        <label for="{{ form.title.id_for_label }}" class="form-label">عنوان مصوبه</label>
                        {{ form.title|add_class:"form-control form-control-lg" }}
                    </div>
                    
                </div>
            
                <div class="row mb-4">
                    <div class="col-md-6">
                        <label for="{{ form.positive_pole.id_for_label }}" class="form-label">آرای مثبت</label>
                        {{ form.positive_pole|add_class:"form-control form-control-lg" }}
                    </div>
                    <div class="col-md-6 ">
                        <label for="{{ form.bstentions_pole.id_for_label }}" class="form-label">آرای ممتنع</label>
                        {{ form.bstentions_pole|add_class:"form-control form-control-lg" }}
                    </div>
                </div>
            
                <div class="row mb-4">
                    <div class="col-md-6">
                        <label for="{{ form.negativ_pole.id_for_label }}" class="form-label">آرای منفی</label>
                        {{ form.negativ_pole|add_class:"form-control form-control-lg" }}
                    </div>
                </div>
            
                <button type="submit" class="btn btn-primary w-100 mt-5">ارسال</button>
                <a href="{{ request.META.HTTP_REFERER|default:'#' }}" type="button" class="btn btn-secondary w-100 mt-5">بازگشت</a>
            </form>
            
        </div>
    </div>
</div>

{% endblock %}
