circuit.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {% extends 'generic/object.html' %}
  2. {% load helpers %}
  3. {% load plugins %}
  4. {% block breadcrumbs %}
  5. {{ block.super }}
  6. <li class="breadcrumb-item"><a href="{% url 'circuits:circuit_list' %}?provider_id={{ object.provider.pk }}">{{ object.provider }}</a></li>
  7. {% endblock %}
  8. {% block content %}
  9. <div class="row">
  10. <div class="col col-md-6">
  11. <div class="card">
  12. <h5 class="card-header">
  13. Circuit
  14. </h5>
  15. <div class="card-body">
  16. <table class="table table-hover attr-table">
  17. <tr>
  18. <th scope="row">Provider</th>
  19. <td>
  20. <a href="{{ object.provider.get_absolute_url }}">{{ object.provider }}</a>
  21. </td>
  22. </tr>
  23. <tr>
  24. <th scope="row">Circuit ID</th>
  25. <td>{{ object.cid }}</td>
  26. </tr>
  27. <tr>
  28. <th scope="row">Type</th>
  29. <td><a href="{{ object.type.get_absolute_url }}">{{ object.type }}</a></td>
  30. </tr>
  31. <tr>
  32. <th scope="row">Status</th>
  33. <td>
  34. <span class="badge bg-{{ object.get_status_class }}">{{ object.get_status_display }}</span>
  35. </td>
  36. </tr>
  37. <tr>
  38. <th scope="row">Tenant</th>
  39. <td>
  40. {% if object.tenant %}
  41. {% if object.tenant.group %}
  42. <a href="{{ object.tenant.group.get_absolute_url }}">{{ object.tenant.group }}</a> /
  43. {% endif %}
  44. <a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
  45. {% else %}
  46. <span class="text-muted">None</span>
  47. {% endif %}
  48. </td>
  49. </tr>
  50. <tr>
  51. <th scope="row">Install Date</th>
  52. <td>{{ object.install_date|annotated_date|placeholder }}</td>
  53. </tr>
  54. <tr>
  55. <th scope="row">Commit Rate</th>
  56. <td>{{ object.commit_rate|humanize_speed|placeholder }}</td>
  57. </tr>
  58. <tr>
  59. <th scope="row">Description</th>
  60. <td>{{ object.description|placeholder }}</td>
  61. </tr>
  62. </table>
  63. </div>
  64. </div>
  65. {% include 'inc/panels/custom_fields.html' %}
  66. {% include 'inc/panels/tags.html' %}
  67. {% include 'inc/panels/comments.html' %}
  68. {% plugin_left_page object %}
  69. </div>
  70. <div class="col col-md-6">
  71. {% include 'circuits/inc/circuit_termination.html' with termination=object.termination_a side='A' %}
  72. {% include 'circuits/inc/circuit_termination.html' with termination=object.termination_z side='Z' %}
  73. {% include 'inc/panels/contacts.html' %}
  74. {% include 'inc/panels/image_attachments.html' %}
  75. {% plugin_right_page object %}
  76. </div>
  77. </div>
  78. <div class="row">
  79. <div class="col col-md-12">
  80. {% plugin_full_width_page object %}
  81. </div>
  82. </div>
  83. {% endblock %}