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

<br>
<br>
<br>
<br>

<div class="container mt-5">
    <h2 class="mb-4">افزودن/ویرایش شاخصه جدید</h2>
    <form method="post">
        {% 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 class="col-md-6">
                <label for="{{ form.coefficient.id_for_label }}" class="form-label">ضریب</label>
                {{ form.coefficient|add_class:"form-control form-control-lg" }}
            </div>
            
        </div>
        <button type="submit" class="btn btn-primary">ذخیره</button>
        <a href="{% url 'index_list' %}" class="btn btn-secondary">بازگشت</a>
    </form>
</div>
{% endblock %}
