idn_app/app/views/admin/data_files/_form.html.haml
Nicolas Bally b5690bc6f2 initial
2016-07-25 15:55:11 +02:00

22 lines
1.0 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
%table{:style => "width:100%"}
%tr
%td{:style => "width:120px"} Titre :
%td= form.text_field :title, :style => "width:90%"
%tr
%td{:style => "vertical-align:top;"} Description :
%td= form.text_area :long_desc, :style => "max-width:90%;width:90%;height:100px;"
= form.inputs do
= 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 :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"