tunnelgroup.html 1.5 KB

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