Sha256: 2ac1dc5cc12e07a7d763b2f408faab89e534fa15a4b7809b530585b5458d45bd
Contents?: true
Size: 1008 Bytes
Versions: 61
Compression:
Stored size: 1008 Bytes
Contents
<p>Drag the images until they are in the desired order. Click <strong>save</strong> when finished.</p> <div id="images" style="margin-bottom: 10px; padding: 10px; border: 2px dashed #555;"> <%= render :partial => 'image_draggable', :collection => @images, :locals => { :path => @pg.path, :gallery_id => params[:gallery_id] } %> <br style="clear: both;" /> </div> <%= sortable_element('images', :url => { :action => 'sort_images', :id => @pg, :gallery_id => params[:gallery_id] }, :tag => 'div', :constraint => '') %> <%= form_remote_tag(:update => 'gallery_container', :url => { :action => 'sort_images_save', :id => @pg, :gallery_id => params[:gallery_id] }) do -%> <%= submit_tag "Save order" %> or <%= link_to_remote "cancel", :url => { :action => 'gallery_management', :id => @pg, :gallery_id => params[:gallery_id] }, :update => 'gallery_container' %> <%- end -%>
Version data entries
61 entries across 61 versions & 1 rubygems