= 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 :square_image_file_id, :label => "Image carrée :" , :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 :download_link, :label => "Activer le lien de téléchargement ?" =form.input :order_link, :label => "Activer le lien de commande ?" =form.input :show_yumpu, :label => "Activer le lien de lecture en ligne ?" =form.input :yumpu_content, :label => "Code html Yumpu :" =form.input :animals, :label => "Animaux concernés", :as => :check_boxes, :collection => Animal.order(:name).all =form.input :categories, :label => "Catégories concernés", :as => :check_boxes, :collection => Category.joins(:category_langs).where("category_langs.lang_site_id = 1").order("category_langs.name") .actions =form.submit "Sauvegarder", :class => "btn btn-primary"