jipe_app/app/views/admin/data_files/_form.html.haml
2017-08-14 10:53:30 +02:00

29 lines
1.2 KiB
Plaintext

= semantic_form_for @data_file, :url => admin_data_file_path(:id => @data_file.id, :file_folder_id => params[:file_folder_id], :manager => params[:manager], :multiple => params[:multiple]), :remote => true do |form|
.content
= form.inputs do
= form.input :lang_site_id, :label => "Langue :" , :collection => LangSite.all, :include_blank => false, :as => :select
=form.input :title, :label => "Titre :"
=form.input :long_desc, :label => "Description :"
= form.input :image_file_id, :label => "Image :" , :as => :qi_image_select
=form.input :data_file_category, :label => "Catégorie de fichier", :collection => DataFileCategory.all, :as => :select, :include_blank => true
=form.input :created_at, :label => "Date de création :"
=form.input :militer_cat, :label => "Catégorie 'Militer'", :collection => MiliterCat.all, :as => :select, :include_blank => true
=form.input :show_yumpu, :label => "Activer le lien de lecture en ligne ?"
=form.input :yumpu_content, :label => "Code html Yumpu :"
.actions
=form.submit "Sauvegarder", :class => "btn btn-primary"