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

Version Path
imagine_cms-3.0.13 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.12 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.11 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.10 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.9 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.8 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.7 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.6 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.5 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.4 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.3 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.2 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.1 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.0 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.0.beta13 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.0.beta12 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.0.beta11 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.0.beta10 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.0.beta9 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.0.beta8 app/views/management/cms/_sort_images.html.erb