35 lines
840 B
Plaintext
35 lines
840 B
Plaintext
=link_to "nouveau portfolio_image", new_admin_portfolio_image_path, :class => "button", :style => "margin:1em 0em;float:right"
|
|
|
|
%h1 Liste des portfolio_images
|
|
|
|
.portfolio_images
|
|
|
|
|
|
|
|
|
|
.images=render @portfolio_images
|
|
%form.fileupload{:action => admin_portfolio_images_path(), :enctype => "multipart/form-data", :method => "POST"}
|
|
|
|
.upload
|
|
.progress
|
|
.bar{:style => "height:1em;"}
|
|
|
|
%button.add_files ajouter des photos
|
|
|
|
%input{:multiple => "", :name => "portfolio_image[photo]", :type => "file", :style => "float:right;"}
|
|
|
|
|
|
%br
|
|
|
|
%br
|
|
= hidden_field_tag "portfolio_image[portfolio_ids][]"
|
|
|
|
-Portfolio.all.each do |p|
|
|
%p
|
|
%input{:name => "portfolio_image[portfolio_ids][]", :type => "checkbox", :checked => true, :value => p.id}
|
|
=p.title
|
|
|
|
:javascript
|
|
init_portfolio_images();
|
|
|