<%= admin_breadcrumbs(@breadcrumbs) %>

Students

<%= link_to "Template", template_admin_students_path, class: "inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" %> <%= link_to "Import Students", "#", onclick: "document.getElementById('import-modal').classList.remove('hidden'); return false;", class: "inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" %> <%= link_to "New Student", new_admin_student_path, class: "inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700" %>
<% current_filter = current_discard_filter %>
<%= link_to "Active", admin_students_path, class: "px-4 py-2 text-sm font-medium #{current_filter == :active ? 'text-blue-600 border-b-2 border-blue-600' : 'text-gray-500 hover:text-gray-700 hover:border-gray-300'}" %> <%= link_to "Archived", admin_students_path(discarded: true), class: "px-4 py-2 text-sm font-medium #{current_filter == :discarded ? 'text-blue-600 border-b-2 border-blue-600' : 'text-gray-500 hover:text-gray-700 hover:border-gray-300'}" %> <%= link_to "All", admin_students_path(all: true), class: "px-4 py-2 text-sm font-medium #{current_filter == :all ? 'text-blue-600 border-b-2 border-blue-600' : 'text-gray-500 hover:text-gray-700 hover:border-gray-300'}" %>
<% if @students.any? %> <% @students.each do |student| %> <% end %> <% else %> <% end %>
<%= sort_link(:id, "ID") %> <%= sort_link(:username, "Username") %> Classroom <%= sort_link(:created_at, "Created At") %> Actions
<%= student.id %> <%= student.username %> <%= student.classroom.name %> <%= student.created_at.strftime("%B %d, %Y") %>
<%= link_to "View", admin_student_path(student), class: "text-blue-600 hover:text-blue-800" %> <% unless student.discarded? %> <%= link_to "Edit", edit_admin_student_path(student), class: "text-gray-600 hover:text-gray-800" %> <% end %> <%= discard_restore_action(student) %>

No records found

No students found. Create your first student to get started.