33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
= semantic_form_for @image_actu, :url => admin_image_actu_path(:id => @image_actu.id, :image_actu_album_id => params[:image_actu_album_id], :manager => params[:manager], :multiple => params[:multiple]), :remote => true do |form|
|
|
|
|
.content
|
|
=form.inputs do
|
|
= form.input :homeable, :label => "Eligible pour la home ?"
|
|
= form.input :published_at, :label => "Publié le :", :as => :qi_datetime_picker
|
|
= form.input :image_actu_album, :as => :select, :collection => ImageActuAlbum.all, :include_blank => false
|
|
|
|
.row
|
|
=form.semantic_fields_for :image_actu_langs do |form|
|
|
.col-sm-6
|
|
%h3=form.object.lang_site.name
|
|
|
|
= form.inputs do
|
|
|
|
= form.hidden_field :lang_site_id
|
|
=# form.input :title, :label => "Titre :"
|
|
= form.input :description, :label => "Description :", :input_html => {:style => "height:60px;"}
|
|
|
|
|
|
%hr
|
|
|
|
=form.semantic_fields_for :image_file do |form|
|
|
=# form.input :name, :label => "Nom :"
|
|
= form.input :photograph, :label => "Crédits :"
|
|
|
|
|
|
|
|
.actions.submit_tr
|
|
=#link_to "Annuler", admin_image_actu_path(:id => @image_actu.id, :manager => params[:manager], :multiple => params[:multiple]), :remote => true, :class => "button"
|
|
=form.submit "Sauvegarder", :class => "btn btn-primary"
|
|
|
|
|