wirelesslan.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {% extends 'generic/object.html' %}
  2. {% load helpers %}
  3. {% load plugins %}
  4. {% load render_table from django_tables2 %}
  5. {% load i18n %}
  6. {% block content %}
  7. <div class="row">
  8. <div class="col col-md-6">
  9. <div class="card">
  10. <h2 class="card-header">{% trans "Wireless LAN" %}</h2>
  11. <table class="table table-hover attr-table">
  12. <tr>
  13. <th scope="row">{% trans "SSID" %}</th>
  14. <td>{{ object.ssid }}</td>
  15. </tr>
  16. <tr>
  17. <th scope="row">{% trans "Group" %}</th>
  18. <td>{{ object.group|linkify|placeholder }}</td>
  19. </tr>
  20. <tr>
  21. <th scope="row">{% trans "Status" %}</th>
  22. <td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
  23. </tr>
  24. <tr>
  25. <th scope="row">{% trans "Scope" %}</th>
  26. {% if object.scope %}
  27. <td>{{ object.scope|linkify }} ({% trans object.scope_type.name %})</td>
  28. {% else %}
  29. <td>{{ ''|placeholder }}</td>
  30. {% endif %}
  31. </tr>
  32. <tr>
  33. <th scope="row">{% trans "Description" %}</th>
  34. <td>{{ object.description|placeholder }}</td>
  35. </tr>
  36. <tr>
  37. <th scope="row">{% trans "VLAN" %}</th>
  38. <td>{{ object.vlan|linkify|placeholder }}</td>
  39. </tr>
  40. <tr>
  41. <th scope="row">{% trans "Tenant" %}</th>
  42. <td>
  43. {% if object.tenant.group %}
  44. {{ object.tenant.group|linkify }} /
  45. {% endif %}
  46. {{ object.tenant|linkify|placeholder }}
  47. </td>
  48. </tr>
  49. </table>
  50. </div>
  51. {% include 'inc/panels/tags.html' %}
  52. {% include 'inc/panels/comments.html' %}
  53. {% plugin_left_page object %}
  54. </div>
  55. <div class="col col-md-6">
  56. {% include 'wireless/inc/authentication_attrs.html' %}
  57. {% include 'inc/panels/custom_fields.html' %}
  58. {% plugin_right_page object %}
  59. </div>
  60. </div>
  61. <div class="row">
  62. <div class="col col-md-12">
  63. <div class="card">
  64. <h2 class="card-header">{% trans "Attached Interfaces" %}</h2>
  65. <div class="card-body table-responsive">
  66. {% render_table interfaces_table 'inc/table.html' %}
  67. {% include 'inc/paginator.html' with paginator=interfaces_table.paginator page=interfaces_table.page %}
  68. </div>
  69. </div>
  70. {% plugin_full_width_page object %}
  71. </div>
  72. </div>
  73. {% endblock %}