Hide cadastres if there is none
This commit is contained in:
parent
380d2c5efa
commit
ab31087f23
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
- champ.selections_utilisateur.each do |geo_area|
|
- champ.selections_utilisateur.each do |geo_area|
|
||||||
= render partial: 'shared/champs/carte/geo_area', locals: { geo_area: geo_area, editing: editing }
|
= render partial: 'shared/champs/carte/geo_area', locals: { geo_area: geo_area, editing: editing }
|
||||||
|
|
||||||
- if champ.cadastres?
|
- if champ.cadastres.present?
|
||||||
.areas-title Parcelles cadastrales
|
.areas-title Parcelles cadastrales
|
||||||
.areas
|
.areas
|
||||||
%ul
|
%ul
|
||||||
|
|
|
@ -122,7 +122,6 @@ feature 'As an administrateur I can edit types de champ', js: true do
|
||||||
preview_window = window_opened_by { click_on 'Prévisualiser le formulaire' }
|
preview_window = window_opened_by { click_on 'Prévisualiser le formulaire' }
|
||||||
within_window(preview_window) do
|
within_window(preview_window) do
|
||||||
expect(page).to have_content('Libellé de champ carte')
|
expect(page).to have_content('Libellé de champ carte')
|
||||||
expect(page).to have_content('Parcelles cadastrales')
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue