lib/generators/admin/scaffold/templates/erb/index.html.erb.tt in administration-zero-0.0.7 vs lib/generators/admin/scaffold/templates/erb/index.html.erb.tt in administration-zero-0.0.8

- old
+ new

@@ -2,11 +2,11 @@ <%%= render "page_header_breadcrumb", title: "<%= human_name.pluralize %>" do %> <li class="breadcrumb-item"><%%= link_to "Admin", admin_path %></li> <%% end %> <%%= render "page_header_actions" do %> - <%%= link_to "Filters", "#offcanvasFilters", "data-bs-toggle": "offcanvas", class: "btn btn-light" %> + <%%= link_to "Filters", "#offcanvas_filters", "data-bs-toggle": "offcanvas", class: "btn btn-light" %> <%%= link_to "New <%= human_name.downcase %>", <%= new_helper(type: :path) %>, class: "btn btn-primary" %> <%% end %> <%% end %> <div class="page-body"> @@ -17,11 +17,11 @@ <thead> <tr> <% attributes.each do |attribute| -%> <th><%%= sort_link @search, :<%= attribute.column_name %> %></th> <% end -%> - <th></th> + <th class="w-1"></th> </tr> </thead> <tbody> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <tr> @@ -45,20 +45,22 @@ <%% end %> </tbody> </table> </div> <div class="card-footer d-flex align-items-center fs-5"> - <div>Download: <%%= link_to "CSV", <%= index_helper(type: :path) %>(format: :csv, q: request.params[:q]) %></div> - <div class="ms-auto d-flex align-items-center gap-2"> - <div class="d-none d-md-flex"><%%== pagy_info @pagy %></div> + <div class="d-none d-md-block"> + <div>Download: <%%= link_to "CSV", <%= index_helper(type: :path) %>(format: :csv, q: request.params[:q]) %></div> + <%%== pagy_info @pagy %> + </div> + <div class="ms-auto"> <%%= render "pagination", pagy: @pagy %> </div> </div> </div> </div> </div> -<div id="offcanvasFilters" tabindex="-1" class="offcanvas offcanvas-end"> +<div id="offcanvas_filters" tabindex="-1" class="offcanvas offcanvas-end"> <div class="offcanvas-header"> <h2 class="offcanvas-title">Filters</h2> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas"></button> </div> <%%= search_form_for [:admin, @search], class: "offcanvas-body" do |f| %>