demarches-normaliennes/app/views/admin/procedures/_informations.html.haml

58 lines
1.8 KiB
Text
Raw Normal View History

2015-10-26 15:54:20 +01:00
%br
-{libelle: 'Libellé*', description: 'Description*', organisation: 'Organisation', direction: 'Direction', lien_site_web: 'Lien site internet', lien_notice: 'Lien notice'}.each do |key, value|
2015-11-04 17:27:01 +01:00
.form-group{class: ('has-error' if @procedure.errors.messages[key])}
%h4
=value
- 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
.row
.col-md-6.col-lg-6
%h4 Logo de la procédure
- 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'}
= f.file_field(:logo, accept: 'image/png, image/jpg, image/jpeg', style: 'display:inline')
%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
2016-02-02 18:37:38 +01:00
= f.fields_for :module_api_carto, @procedure.module_api_carto do |ff|
%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
2016-08-24 11:40:53 +02:00
2016-02-02 18:37:38 +01:00
.col-md-6.col-lg-6
%h4 Formulaire / CERFA
%label
=f.check_box :cerfa_flag
Activer l'envoi de formulaire / CERFA
2016-08-24 11:40:53 +02:00
%br
=f.text_field :lien_demarche, class: 'form-control', placeholder: 'URL vers le formulaire vierge (facultatif)'