{% extends 'generic/object.html' %}
{% load render_table from django_tables2 %}

{% block content %}
  <div class="row mb-3">
    <div class="col col-md-6">
      <div class="card">
        <h5 class="card-header">RPKI Rout Origination Authorization (ROA)</h5>
        <div class="card-body">
          <table class="table table-hover attr-table">
            <tr>
              <th scope="row">Name</th>
              <td>{{ object.name }}</td>
            </tr>
            <tr>
              <th scope="row">Origination AS Number</th>
              <td>{{ object.origin_as }}</td>
            </tr>
            <tr>
              <th scope="row">Date Valid From</th>
              <td>{{ object.date_from }}</td>
            </tr>          
            <tr>
              <th scope="row">Date Valid To</th>
              <td>{{ object.date_to }}</td>
            </tr>          
            <tr>
              <th scope="row">Signing Certificate</th>
              <td>{{ object.signed_by }}</td>
            </tr>          
          </table>
        </div>
      </div>
      {% include 'inc/panels/custom_fields.html' %}
    </div>
    <div class="col col-md-6">
      {% include 'inc/panels/tags.html' %}
      {% include 'inc/panels/comments.html' %}
    </div>
  </div>

  <div class="row">
    <div class="col col-md-12">
      <div class="card">
        <h5 class="card-header">Prefixes</h5>
        <div class="card-body table-responsive">
          {% render_table roaprefices_table %}
        </div>
      </div>
    </div>
  </div>


{% endblock content %}
