2018-04-19 10:44:14 +02:00
|
|
|
|
= form_for service, html: { class: 'form' } do |f|
|
|
|
|
|
|
|
|
|
|
= f.label :nom do
|
|
|
|
|
Nom
|
|
|
|
|
%span.mandatory *
|
|
|
|
|
= f.text_field :nom, placeholder: 'service jeunesse et prévention, direction des affaires maritimes', required: true
|
|
|
|
|
|
2018-05-10 11:38:11 +02:00
|
|
|
|
= f.label :organisme do
|
|
|
|
|
Organisme
|
|
|
|
|
%span.mandatory *
|
|
|
|
|
= f.text_field :organisme, placeholder: "mairie de Mours, préfecture de l'Oise, ministère de la Culture", required: true
|
|
|
|
|
|
2018-07-19 15:36:07 +02:00
|
|
|
|
= f.label :siret do
|
|
|
|
|
SIRET
|
|
|
|
|
%span.mandatory *
|
|
|
|
|
%p
|
|
|
|
|
Pour trouver votre numéro SIRET, utilisez
|
2019-03-05 18:16:13 +01:00
|
|
|
|
%a{ href: 'https://entreprise.data.gouv.fr/', target: '_blank', rel: 'noopener' }
|
2018-07-19 15:36:07 +02:00
|
|
|
|
entreprise.data.gouv.fr
|
|
|
|
|
ou renseignez-vous auprès de votre service comptable
|
|
|
|
|
= f.number_field :siret, required: true
|
|
|
|
|
|
2018-04-19 10:44:14 +02:00
|
|
|
|
= f.label :type_organisme do
|
|
|
|
|
Type d’organisme
|
|
|
|
|
%span.mandatory *
|
|
|
|
|
|
|
|
|
|
= f.select :type_organisme, Service.type_organismes.keys.map { |key| [ I18n.t("type_organisme.#{key}"), key] }
|
|
|
|
|
|
2018-06-21 14:12:44 +02:00
|
|
|
|
%h2.header-section Informations de contact
|
2018-06-13 11:53:09 +02:00
|
|
|
|
|
|
|
|
|
%p.explication Ces informations seront visibles par les utilisateurs du formulaire.
|
|
|
|
|
|
2018-05-10 11:38:11 +02:00
|
|
|
|
= f.label :email do
|
2018-09-19 15:02:32 +02:00
|
|
|
|
Adresse email
|
2018-05-10 11:38:11 +02:00
|
|
|
|
%span.mandatory *
|
|
|
|
|
= f.email_field :email, placeholder: 'contact@mon-service.fr', required: true
|
|
|
|
|
|
|
|
|
|
= f.label :telephone do
|
|
|
|
|
Numéro de téléphone
|
|
|
|
|
%span.mandatory *
|
|
|
|
|
= f.telephone_field :telephone, placeholder: '04 12 24 42 37', required: true
|
|
|
|
|
|
|
|
|
|
= f.label :horaires do
|
|
|
|
|
Horaires
|
|
|
|
|
%span.mandatory *
|
|
|
|
|
= f.text_area :horaires, placeholder: "Du lundi au vendredi de 9 h 30 à 17 h 30\nLe samedi de 9 h 30 à 12 h", required: true
|
|
|
|
|
|
|
|
|
|
= f.label :adresse do
|
|
|
|
|
Adresse
|
|
|
|
|
%span.mandatory *
|
|
|
|
|
= f.text_area :adresse, placeholder: "20 avenue de Ségur\n75007 Paris", required: true
|
|
|
|
|
|
2018-04-19 15:59:11 +02:00
|
|
|
|
- if procedure_id.present?
|
|
|
|
|
= hidden_field_tag :procedure_id, procedure_id
|
|
|
|
|
|
2018-04-19 10:44:14 +02:00
|
|
|
|
.send-wrapper
|
|
|
|
|
= f.submit "Valider", class: 'button send'
|