{% extends 'veriport_dashboard/base.html' %}
{% load i18n %}

{% block title %}{% trans 'Users' %}{% endblock %}

{% block users_active %}active{% endblock %}

{% block content %}
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">{% trans 'Users' %}</h3>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <table id="example2" class="table table-bordered table-hover">
                            {% if users.exists %}
                                <thead>
                                    <tr>
                                      <th>{% trans 'Name' %}</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {% for obj in users %}
                                        <tr>
                                            <td>{{ obj }}</td>
                                        </tr>
                                    {% endfor %}
                                </tbody>
                                <tfoot>
                                    <tr>
                                      <th>{% trans 'Name' %}</th>
                                    </tr>
                                </tfoot>
                            {% else %}
                                <thead>
                                    <tr>
                                        <th>{% trans 'No users yet.' %}</th>
                                    </tr>
                                </thead>
                            {% endif %}
                        </table>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
        </div>
        <!-- /.row -->
  </section>
  <!-- /.content -->
{% endblock %}
