Remove .fr-grid-row.fr-grid-row--gutters when empty
This commit is contained in:
parent
2885a25aba
commit
5c6eb69c43
1 changed files with 15 additions and 14 deletions
|
@ -7,20 +7,21 @@
|
||||||
.fr-container
|
.fr-container
|
||||||
%h1.page-title.fr-h2= t('views.users.dossiers.index.dossiers')
|
%h1.page-title.fr-h2= t('views.users.dossiers.index.dossiers')
|
||||||
|
|
||||||
.fr-grid-row.fr-grid-row--gutters
|
- if current_user.dossiers.count > 2 || current_user.dossiers_invites.count > 2 || @procedures_for_select.size > 1
|
||||||
- if current_user.dossiers.count > 2 || current_user.dossiers_invites.count > 2
|
.fr-grid-row.fr-grid-row--gutters
|
||||||
.fr-col
|
- if current_user.dossiers.count > 2 || current_user.dossiers_invites.count > 2
|
||||||
#search-2.fr-search-bar
|
.fr-col.fr-mb-5w
|
||||||
= form_tag dossiers_path, method: :get, :role => "search", class: "width-100 fr-mb-5w" do
|
#search-2.fr-search-bar
|
||||||
= hidden_field_tag :procedure_id, params[:procedure_id]
|
= form_tag dossiers_path, method: :get, :role => "search", class: "width-100" do
|
||||||
= label_tag "q", t('views.users.dossiers.search.label'), class: 'fr-label fr-mb-1w'
|
= hidden_field_tag :procedure_id, params[:procedure_id]
|
||||||
.flex
|
= label_tag "q", t('views.users.dossiers.search.label'), class: 'fr-label fr-mb-1w'
|
||||||
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.prompt'), class: "fr-input"
|
.flex
|
||||||
%button.fr-btn.fr-btn--sm
|
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.prompt'), class: "fr-input"
|
||||||
= t('views.users.dossiers.search.label')
|
%button.fr-btn.fr-btn--sm
|
||||||
- if @procedures_for_select.size > 1
|
= t('views.users.dossiers.search.label')
|
||||||
.fr-col
|
- if @procedures_for_select.size > 1
|
||||||
= render Dossiers::UserProcedureFilterComponent.new(procedures_for_select: @procedures_for_select)
|
.fr-col.fr-mb-5w
|
||||||
|
= render Dossiers::UserProcedureFilterComponent.new(procedures_for_select: @procedures_for_select)
|
||||||
|
|
||||||
- if @search_terms.blank?
|
- if @search_terms.blank?
|
||||||
- cache([I18n.locale, current_user.id, @statut, current_user.dossiers, current_user.dossiers_invites], expires_in: 1.hour) do
|
- cache([I18n.locale, current_user.id, @statut, current_user.dossiers, current_user.dossiers_invites], expires_in: 1.hour) do
|
||||||
|
|
Loading…
Reference in a new issue