{% extends 'generic/object_list.html' %}
{% load helpers %}

{% block title %}FreeIPA Hosts{% endblock %}

{% block header %}
    <div class="row">
        <div class="col-md-8">
            <h1>{% block page_title %}FreeIPA Hosts{% endblock %}</h1>
        </div>
        <div class="col-md-4 text-end">
            <form method="post" action="{% url 'plugins:netbox_freeipa:freeipahost_sync' %}">
                {% csrf_token %}
                <button type="submit" class="btn btn-primary">
                    <i class="mdi mdi-sync"></i> Sync with FreeIPA
                </button>
            </form>
        </div>
    </div>
{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-md-12">
            {% include 'inc/table.html' %}
        </div>
    </div>
{% endblock %}
