{% extends 'virtualization/cluster/base.html' %}
{% load helpers %}
{% load render_table from django_tables2 %}

{% block content %}
<div class="row">
  <div class="col col-md-12">
    <div class="card">
      <h5 class="card-header">
        Host Devices
      </h5>
      <form action="{% url 'virtualization:cluster_remove_devices' pk=object.pk %}" method="post">
      {% csrf_token %}
      <div class="card-body table-responsive">
        {% render_table devices_table 'inc/table.html' %}
      </div>
      {% if perms.virtualization.change_cluster %}
        <div class="card-footer noprint">
          <button type="submit" name="_remove" class="btn btn-danger btn-sm">
            <span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Remove Devices
          </button>
        </div>
      {% endif %}
      </form>
    </div>
  </div>
</div>
{% endblock %}
