<%= render "page_header" do %> <%= render "page_header_breadcrumb", title: "Admin users" do %> <% end %> <%= render "page_header_actions" do %> <%= link_to "New admin user", new_admin_user_path, class: "btn btn-primary" %> <% end %> <% end %>

Filters

<%= search_form_for @search, class: "card-body" do |f| %> <%= f.label :email_cont, class: "form-label" %> <%= f.text_field :email_cont, class: "form-control mb-3" %> <%= f.label :created_at, class: "form-label" %>
<%= f.date_field :created_at_gteq, class: "form-control" %> <%= f.date_field :created_at_lteq, class: "form-control" %>
<%= f.submit "Filter", class: "btn btn-primary" %> <%= link_to "Clear Filter", admin_users_path, class: "btn btn-light" %> <% end %>
<% @admin_users.each do |admin_user| %> <% end %>
<%= sort_link @search, :id %> <%= sort_link @search, :email %> <%= sort_link @search, :created_at %>
<%= link_to admin_user.id, admin_user %> <%= admin_user.email %> <%= l(admin_user.created_at, format: :long) %> <%= link_to "View", admin_user, class: "btn btn-light btn-sm" %> <%= link_to "Edit", edit_admin_user_path(admin_user), class: "btn btn-light btn-sm" %> <%= button_to "Delete", admin_user, method: :delete, data: { confirm: "Are you sure ?" }, form_class: "d-inline", class: "btn btn-light btn-sm" %>