{% extends 'commands.html' %}
{% import "bootstrap/wtf.html" as wtf %}

{% set sidebar_state = 'disabled' %}
{% set btn_back = true %}

{% block nav_inventory %} active{% endblock %}
{% block nav_inventory_hardware %} active{% endblock %}
{% block content %}

<h1 class="m-5">{{_('Hardware inventory')}}</h1>

<h2 class="mb-3 mx-5">{{ _('Selected client:') }} {{ form.ips.data }}</h1>

{{ wtf.quick_form(form,
                  action=url_for('action_hardware'),
                  method='post',
                  button_map={'refresh': 'primary'},
                  extra_classes='m-2')}}

<table class="table table-striped">
  <thead class="thead-dark">
    <tr>
      <th scope="col">{{ _('Item') }}</th>
      <th scope="col">{{ _('Type') }}</th>
    </tr>
  </thead>
  <tbody>
    {% for item in hardware %}
        <tr>
            <td>{{ item['description'] }}</td>
            <td>{{ item['type'] }}</td>
        </tr>
    {% endfor %}
  </tbody>
</table>


{% endblock %}
