demarches-normaliennes/app/views/admin/pieces_justificatives/_fields.html.haml
2015-11-20 14:17:38 +01:00

16 lines
499 B
Text

= f.fields_for :types_de_piece_justificative, types_de_piece_justificative do |ff|
.form-inline
.form-group
%h4 Libellé
=ff.text_field :libelle, class: 'form-control libelle', placeholder: 'Libellé'
.form-group
%h4 Description
=ff.text_area :description, class: 'form-control description', placeholder: 'Description'
-if ff.object.id.nil?
.form-group#add_type_de_piece_justificative_button
%br  
= f.submit('Ajouter la pièce')