diff --git a/app/assets/stylesheets/admin/pure/style.sass b/app/assets/stylesheets/admin/pure/style.sass index 1eb25c7eb15c33d2f87b05e2fbffa1ebd80e4833..c465d8950864440b5c2531a2e40d2bd05f5b9ad0 100644 --- a/app/assets/stylesheets/admin/pure/style.sass +++ b/app/assets/stylesheets/admin/pure/style.sass @@ -45,6 +45,7 @@ main min-height: 70vh + position: relative .container-fluid padding-right: var(--bs-gutter-x) @@ -94,6 +95,15 @@ a right: 0 z-index: 100 +.filters + position: absolute + top: 0 + right: var(--bs-gutter-x) + margin-top: 0px !important + +#collapseFilters + padding-top: 50px + .table input[type=checkbox] margin-right: 10px diff --git a/app/views/admin/application/_filters.html.erb b/app/views/admin/application/_filters.html.erb index 562c3b78ca4f8a0e866daa678ef20a4c009cb8b8..9e03627f76e8139581be0b54798c4f250ddf3344 100644 --- a/app/views/admin/application/_filters.html.erb +++ b/app/views/admin/application/_filters.html.erb @@ -5,7 +5,7 @@ filters.each { |filter| should_be_open = true if params.has_key?(filter[:scope_n %> <% if collapsable %> - <div class="text-end mt-n5"> + <div class="text-end filters mt-n5"> <a class="btn btn-outline-secondary btn-sm" data-bs-toggle="collapse" href="#collapseFilters" diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 36cec043719237fb7541fc3d45b9d832e402e4ea..08194d186dc16e87a888231f500e9a43dee4a33e 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -1,4 +1,4 @@ -<h2 class="mb-4"><%= t(".title", resource: resource.model_name.human) %></h2> +<% content_for :title, resource %> <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> <%= f.error_notification %>