Revert "Merge pull request #4552 from tchak/champ-communes"
This reverts commit4cec26f73a
, reversing changes made to0ef25ef36c
.
This commit is contained in:
parent
c9ac7294f5
commit
4373cb22cb
63 changed files with 1119 additions and 260 deletions
|
@ -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?
|
||||
|
|
|
@ -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}" }
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
= form.select :value, [champ.value].compact,
|
||||
{ include_blank: true },
|
||||
required: champ.mandatory?,
|
||||
class: 'select2 communes'
|
|
@ -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?
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue