Revert "Merge pull request #4552 from tchak/champ-communes"

This reverts commit 4cec26f73a, reversing
changes made to 0ef25ef36c.
This commit is contained in:
clemkeirua 2020-01-13 16:26:27 +01:00
parent c9ac7294f5
commit 4373cb22cb
63 changed files with 1119 additions and 260 deletions

View file

@ -1,4 +1,4 @@
= form.select :value, [champ.value].compact,
{ include_blank: true },
required: champ.mandatory?,
class: 'select2 adresse'
= form.text_field :value,
data: { address: true, autocomplete: 'address' },
placeholder: champ.libelle,
required: champ.mandatory?

View file

@ -1,6 +1,6 @@
.toolbar
%button.button.primary.new-area Ajouter une zone
%select.select2.adresse{ data: { address: true }, placeholder: 'Saisissez une adresse ou positionner la carte' }
%input.address{ data: { address: true, autocomplete: 'address' }, placeholder: 'Saisissez une adresse ou positionner la carte' }
.carte.edit{ data: { geo: geo_data(champ) }, class: "carte-#{form.index}" }

View file

@ -1,4 +0,0 @@
= form.select :value, [champ.value].compact,
{ include_blank: true },
required: champ.mandatory?,
class: 'select2 communes'

View file

@ -1,4 +1,4 @@
= form.select :value, [champ.value].compact,
{ include_blank: true },
required: champ.mandatory?,
class: 'select2 departements'
= form.select :value,
Champs::DepartementChamp.departements,
include_blank: true,
required: champ.mandatory?

View file

@ -1,5 +1,5 @@
= form.select :value,
Champs::PaysChamp.pays,
{ disabled: Champs::PaysChamp.disabled_options, include_blank: true },
required: champ.mandatory?,
class: 'select2 pays'
disabled: Champs::PaysChamp.disabled_options,
include_blank: true,
required: champ.mandatory?

View file

@ -1,4 +1,4 @@
= form.select :value, [champ.value].compact,
{ include_blank: true },
required: champ.mandatory?,
class: 'select2 regions'
= form.select :value,
Champs::RegionChamp.regions,
include_blank: true,
required: champ.mandatory?