{% extends 'generic/object.html' %}

{% block breadcrumbs %}
  {{ block.super }}
  <li class="breadcrumb-item"><a href="{% url 'plugins:netbox_acls:aclstandardrule_list' %}?access_list_id={{ object.access_list.pk }}">{{ object.access_list }}</a></li>
{% endblock breadcrumbs %}

{% block content %}
  <div class="row mb-3">
    <div class="col col-md-6">
      <div class="card">
        <h2 class="card-header">ACL Standard Rule</h2>
        <table class="table table-hover attr-table">
          <tr>
            <th scope="row">Access List</th>
            <td>{{ object.access_list|linkify }}</td>
          </tr>
          <tr>
            <th scope="row">Index</th>
            <td>{{ object.index }}</td>
          </tr>
          <tr>
            <th scope="row">Description</th>
            <td>{{ object.description|placeholder }}</td>
          </tr>
        </table>
      </div>
      {% include 'inc/panels/custom_fields.html' %}
      {% include 'inc/panels/tags.html' %}
    </div>
    <div class="col col-md-6">
      <div class="card">
        <h2 class="card-header">Details</h2>
        <table class="table table-hover attr-table">
          <tr>
            <th scope="row">Action</th>
            <td>{% badge object.get_action_display bg_color=object.get_action_color %}</td>
          </tr>
          <tr>
            <th scope="row">Remark</th>
            <td>{{ object.remark|placeholder }}</td>
          </tr>
          <tr>
            <th scope="row">Source Prefix</th>
            <td>{{ object.source_prefix|linkify|placeholder }}</td>
          </tr>
        </table>
      </div>
    </div>
  </div>
{% endblock content %}
