2
0

devices.html 963 B

1234567891011121314151617181920212223242526272829
  1. {% extends 'virtualization/cluster/base.html' %}
  2. {% load helpers %}
  3. {% load render_table from django_tables2 %}
  4. {% block content %}
  5. <form action="{% url 'virtualization:cluster_remove_devices' pk=object.pk %}" method="post">
  6. {% csrf_token %}
  7. {% include 'inc/table_controls_htmx.html' with table_modal="DeviceTable_config" %}
  8. <div class="card">
  9. <div class="card-body" id="object_list">
  10. {% include 'htmx/table.html' %}
  11. </div>
  12. </div>
  13. <div class="noprint bulk-buttons">
  14. <div class="bulk-button-group">
  15. {% if perms.virtualization.change_cluster %}
  16. <button type="submit" name="_remove" class="btn btn-danger btn-sm">
  17. <span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Remove Devices
  18. </button>
  19. {% endif %}
  20. </div>
  21. </div>
  22. </form>
  23. {% endblock content %}
  24. {% block modals %}
  25. {{ block.super }}
  26. {% table_config_form table %}
  27. {% endblock modals %}