{% extends 'base.html' %} {% block title %}Usuarios{% endblock %} {% block page_title %}Usuarios del Sistema{% endblock %} {% block topbar_actions %} {% if current_user.role == 'superadmin' or current_user.role == 'admin' %} + Nuevo Usuario {% endif %} {% endblock %} {% block content %}
{% for u in users %} {% else %} {% endfor %}
UsuarioNombreEmailCompañíaRolEstadoÚltimo Login
{{ u.username }} {{ u.full_name or '—' }} {{ u.email }} {{ u.company_name or 'Todas'|safe }} {% if u.role == 'superadmin' %} Super Admin {% elif u.role == 'admin' %} Admin {% else %} Técnico {% endif %} {% if u.is_active %} Activo {% else %} Inactivo {% endif %} {{ u.last_login[:16] if u.last_login else '—' }} {% if current_user.role == 'superadmin' or (current_user.role == 'admin' and u.role == 'technician') %} ✏️ {% endif %}
Sin usuarios.
{% endblock %}