rir.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% extends 'generic/object.html' %}
  2. {% load helpers %}
  3. {% load plugins %}
  4. {% load render_table from django_tables2 %}
  5. {% load i18n %}
  6. {% block extra_controls %}
  7. {% if perms.ipam.add_aggregate %}
  8. <a href="{% url 'ipam:aggregate_add' %}?rir={{ object.pk }}" class="btn btn-primary">
  9. <span class="mdi mdi-plus-thick" aria-hidden="true"></span> {% trans "Add Aggregate" %}
  10. </a>
  11. {% endif %}
  12. {% endblock extra_controls %}
  13. {% block content %}
  14. <div class="row mb-3">
  15. <div class="col col-12 col-md-6">
  16. <div class="card">
  17. <h2 class="card-header">{% trans "RIR" %}</h2>
  18. <table class="table table-hover attr-table">
  19. <tr>
  20. <th scope="row">{% trans "Name" %}</th>
  21. <td>{{ object.name }}</td>
  22. </tr>
  23. <tr>
  24. <th scope="row">{% trans "Description" %}</th>
  25. <td>{{ object.description|placeholder }}</td>
  26. </tr>
  27. <tr>
  28. <th scope="row">{% trans "Private" %}</th>
  29. <td>{% checkmark object.is_private %}</td>
  30. </tr>
  31. </table>
  32. </div>
  33. {% include 'inc/panels/tags.html' %}
  34. {% plugin_left_page object %}
  35. </div>
  36. <div class="col col-12 col-md-6">
  37. {% include 'inc/panels/related_objects.html' %}
  38. {% include 'inc/panels/comments.html' %}
  39. {% include 'inc/panels/custom_fields.html' %}
  40. {% plugin_right_page object %}
  41. </div>
  42. </div>
  43. <div class="row mb-3">
  44. <div class="col col-md-12">
  45. {% plugin_full_width_page object %}
  46. </div>
  47. </div>
  48. {% endblock %}