ipsecprofile.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {% extends 'generic/object.html' %}
  2. {% load helpers %}
  3. {% load plugins %}
  4. {% load i18n %}
  5. {% block content %}
  6. <div class="row">
  7. <div class="col col-md-6">
  8. <div class="card">
  9. <h5 class="card-header">{% trans "IPSec Profile" %}</h5>
  10. <div class="card-body">
  11. <table class="table table-hover attr-table">
  12. <tr>
  13. <th scope="row">{% trans "Name" %}</th>
  14. <td>{{ object.name }}</td>
  15. </tr>
  16. <tr>
  17. <th scope="row">{% trans "Description" %}</th>
  18. <td>{{ object.description|placeholder }}</td>
  19. </tr>
  20. <tr>
  21. <th scope="row">{% trans "Mode" %}</th>
  22. <td>{{ object.get_mode_display }}</td>
  23. </tr>
  24. </table>
  25. </div>
  26. </div>
  27. {% include 'inc/panels/tags.html' %}
  28. {% include 'inc/panels/custom_fields.html' %}
  29. {% include 'inc/panels/comments.html' %}
  30. {% plugin_left_page object %}
  31. </div>
  32. <div class="col col-md-6">
  33. <div class="card">
  34. <h5 class="card-header">{% trans "IKE Policy" %}</h5>
  35. <div class="card-body">
  36. <table class="table table-hover attr-table">
  37. <tr>
  38. <th scope="row">{% trans "Name" %}</th>
  39. <td>{{ object.ike_policy|linkify }}</td>
  40. </tr>
  41. <tr>
  42. <th scope="row">{% trans "Description" %}</th>
  43. <td>{{ object.ike_policy.description|placeholder }}</td>
  44. </tr>
  45. <tr>
  46. <th scope="row">{% trans "Version" %}</th>
  47. <td>{{ object.ike_policy.get_version_display }}</td>
  48. </tr>
  49. <tr>
  50. <th scope="row">{% trans "Mode" %}</th>
  51. <td>{{ object.ike_policy.get_mode_display }}</td>
  52. </tr>
  53. <tr>
  54. <th scope="row">{% trans "Proposals" %}</th>
  55. <td>
  56. <ul class="list-unstyled mb-0">
  57. {% for proposal in object.ike_policy.proposals.all %}
  58. <li>
  59. <a href="{{ proposal.get_absolute_url }}">{{ proposal }}</a>
  60. </li>
  61. {% endfor %}
  62. </ul>
  63. </td>
  64. </tr>
  65. <tr>
  66. <th scope="row">{% trans "Pre-Shared Key" %}</th>
  67. <td>{% checkmark object.ike_policy.preshared_key %}</td>
  68. </tr>
  69. </table>
  70. </div>
  71. </div>
  72. <div class="card">
  73. <h5 class="card-header">{% trans "IPSec Policy" %}</h5>
  74. <div class="card-body">
  75. <table class="table table-hover attr-table">
  76. <tr>
  77. <th scope="row">{% trans "Name" %}</th>
  78. <td>{{ object.ipsec_policy|linkify }}</td>
  79. </tr>
  80. <tr>
  81. <th scope="row">{% trans "Description" %}</th>
  82. <td>{{ object.ipsec_policy.description|placeholder }}</td>
  83. </tr>
  84. <tr>
  85. <th scope="row">{% trans "Proposals" %}</th>
  86. <td>
  87. <ul class="list-unstyled mb-0">
  88. {% for proposal in object.ipsec_policy.proposals.all %}
  89. <li>
  90. <a href="{{ proposal.get_absolute_url }}">{{ proposal }}</a>
  91. </li>
  92. {% endfor %}
  93. </ul>
  94. </td>
  95. </tr>
  96. <tr>
  97. <th scope="row">{% trans "PFS Group" %}</th>
  98. <td>{{ object.ipsec_policy.get_pfs_group_display }}</td>
  99. </tr>
  100. </table>
  101. </div>
  102. </div>
  103. {% plugin_right_page object %}
  104. </div>
  105. </div>
  106. <div class="row">
  107. <div class="col col-md-12">
  108. {% plugin_full_width_page object %}
  109. </div>
  110. </div>
  111. {% endblock %}