[#11103] Fixes after review
This commit is contained in:
parent
eef8d95ec4
commit
022cd6cf73
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ class Dossiers::ExportDropdownComponent < ApplicationComponent
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_include_archived?
|
def can_include_archived?
|
||||||
@statut == 'tous'
|
@statut == 'tous' && @archived_count > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_archived_title
|
def include_archived_title
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
.fr-tabs__panel.fr-pb-8w.fr-tabs__panel--selected{ id: "tabpanel-standard#{@count}-panel", role: "tabpanel", "aria-labelledby": "tabpanel-standard#{@count}", tabindex: "0" }
|
.fr-tabs__panel.fr-pb-8w.fr-tabs__panel--selected{ id: "tabpanel-standard#{@count}-panel", role: "tabpanel", "aria-labelledby": "tabpanel-standard#{@count}", tabindex: "0" }
|
||||||
= form_with url: download_export_path, namespace: "export#{@count}", data: { turbo_method: :post, turbo: true } do |f|
|
= form_with url: download_export_path, namespace: "export#{@count}", data: { turbo_method: :post, turbo: true } do |f|
|
||||||
|
|
||||||
- if can_include_archived? && @archived_count > 0
|
- if can_include_archived?
|
||||||
.fr-pb-2w
|
.fr-pb-2w
|
||||||
= render Dsfr::ToggleComponent.new(form: f,
|
= render Dsfr::ToggleComponent.new(form: f,
|
||||||
target: :include_archived,
|
target: :include_archived,
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
.fr-tabs__panel.fr-pr-3w.fr-pb-8w{ id: "tabpanel-template#{@count}-panel", role: "tabpanel", "aria-labelledby": "tabpanel-template", tabindex: "0" }
|
.fr-tabs__panel.fr-pr-3w.fr-pb-8w{ id: "tabpanel-template#{@count}-panel", role: "tabpanel", "aria-labelledby": "tabpanel-template", tabindex: "0" }
|
||||||
= form_with url: download_export_path, namespace: "export_template_#{@count}", data: { turbo_method: :post, turbo: true } do |f|
|
= form_with url: download_export_path, namespace: "export_template_#{@count}", data: { turbo_method: :post, turbo: true } do |f|
|
||||||
= f.hidden_field :statut, value: @statut
|
= f.hidden_field :statut, value: @statut
|
||||||
- if can_include_archived? && @archived_count > 0
|
- if can_include_archived?
|
||||||
.fr-pb-2w
|
.fr-pb-2w
|
||||||
= render Dsfr::ToggleComponent.new(form: f,
|
= render Dsfr::ToggleComponent.new(form: f,
|
||||||
target: :include_archived,
|
target: :include_archived,
|
||||||
|
|
Loading…
Add table
Reference in a new issue