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

<br />
<br />


<br />
<br />

<div class="container mt-5">
    <h2 class="text-center mb-4">{{ view.action_title }} عضو حلقه</h2>
    <div class="card shadow-sm border-0 rounded">
        <div class="card-body p-5">
            <form method="post">
                {% csrf_token %}

                <!-- ردیف فیلدها -->
                <div class="row mb-4">
                    <!-- فیلد حلقه -->
                    <div class="col-md-6">
                        <label for="{{ form.ring.id_for_label }}" class="form-label">حلقه</label>
                        {{ form.ring|add_class:"form-control form-control-lg" }}
                    </div>

                    <!-- فیلد عضو -->
                    <div class="col-md-6">
                        <label for="{{ form.person.id_for_label }}" class="form-label">عضو</label>
                        {{ form.person|add_class:"form-control form-control-lg" }}
                    </div>
                </div>

                <!-- دکمه‌های ذخیره و بازگشت -->
                <div class="d-flex justify-content-between mt-4">
                    <button type="submit" class="btn btn-success btn-lg px-5">ذخیره</button>
                    <a href="{% url 'ring_member_list' %}" class="btn btn-outline-secondary btn-lg px-5">بازگشت</a>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}
