2015-11-16 16:16:08 +01:00
|
|
|
|
2015-10-26 15:54:20 +01:00
|
|
|
%br
|
|
|
|
|
2015-11-04 17:27:01 +01:00
|
|
|
-{libelle: 'Libellé*', description: 'Description*', lien_demarche: 'Lien démarche', organisation: 'Organisation', direction: 'Direction'}.each do |key, value|
|
|
|
|
.form-group{class: ('has-error' if @procedure.errors.messages[key])}
|
|
|
|
%h4
|
|
|
|
=value
|
2016-03-02 15:21:45 +01:00
|
|
|
- if key == :description
|
|
|
|
= f.text_area key, rows: '6', placeholder: 'Description du projet', class: 'form-control wysihtml5'
|
|
|
|
|
|
|
|
- else
|
|
|
|
=f.text_field key, class: 'form-control', placeholder: value
|
2015-10-26 15:54:20 +01:00
|
|
|
|
2015-12-10 17:13:39 +01:00
|
|
|
.row
|
|
|
|
.col-md-6.col-lg-6
|
|
|
|
%h4 Logo de la procédure
|
2016-06-06 18:25:51 +02:00
|
|
|
- unless @procedure.logo.blank?
|
2016-07-05 11:50:56 +02:00
|
|
|
= image_tag @procedure.decorate.logo_img, {style: 'height: 40px; display: inline; margin-right: 6px', id: 'preview_procedure_logo'}
|
2016-06-06 18:25:51 +02:00
|
|
|
= f.file_field(:logo, accept: 'image/png, image/jpg, image/jpeg', style: 'display:inline')
|
2015-12-10 17:13:39 +01:00
|
|
|
|
|
|
|
%div{style:'margin-top:5px'}
|
|
|
|
%i
|
|
|
|
Fichier accepté : JPG / JPEG / PNG
|
|
|
|
.col-md-6.col-lg-6
|
|
|
|
%h4 Drapeau européen
|
|
|
|
%label
|
|
|
|
=f.check_box :euro_flag
|
|
|
|
Afficher le drapeau européen
|
|
|
|
|
2015-10-26 15:54:20 +01:00
|
|
|
%br
|
|
|
|
|
2016-02-02 18:37:38 +01:00
|
|
|
.row
|
|
|
|
.col-md-6.col-lg-6
|
|
|
|
%h4 Cartographie
|
2015-12-08 10:11:58 +01:00
|
|
|
|
2016-02-02 18:37:38 +01:00
|
|
|
= f.fields_for :module_api_carto, @procedure.module_api_carto do |ff|
|
2015-12-08 10:11:58 +01:00
|
|
|
%label
|
2016-02-02 18:37:38 +01:00
|
|
|
=ff.check_box :use_api_carto, {id: :procedure_module_api_carto_use_api_carto}
|
|
|
|
Utilisation de la cartographie
|
|
|
|
|
|
|
|
%ul#modules_api_carto
|
|
|
|
%li
|
|
|
|
%label
|
|
|
|
= ff.check_box :quartiers_prioritaires
|
|
|
|
Quartiers Prioritaires
|
|
|
|
%li
|
|
|
|
%label
|
|
|
|
= ff.check_box :cadastre
|
|
|
|
Cadastre
|
|
|
|
.col-md-6.col-lg-6
|
|
|
|
%h4 Formulaire / CERFA
|
|
|
|
%label
|
|
|
|
=f.check_box :cerfa_flag
|
|
|
|
Activer l'envoi de formulaire / CERFA
|