<%- include('../partials/header') %> <% title = 'Usuarios'; %> <% if (success_msg && success_msg.length > 0) { %> <% success_msg.forEach(msg => { %>
<%= msg %>
<% }) %> <% } %> <% if (error_msg && error_msg.length > 0) { %> <% error_msg.forEach(msg => { %>
<%= msg %>
<% }) %> <% } %>

Usuarios

Nuevo Usuario
<% if (users.length === 0) { %> <% } %> <% users.forEach(u => { %> <% }) %>
ID Nombre Email Rol Activo Registro Acción
No hay usuarios
<%= u.id %> <%= u.nombre %> <%= u.email %> <%= u.rol %> <%= u.is_active ? 'Sí' : 'No' %> <%= u.created_at %> <% if (u.rol !== 'superadmin') { %>
<% } %>
<%- include('../partials/footer') %>