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-5.2.6 app/views/manage/cms_pages/_sort_images.html.erb
imagine_cms-5.2.5 app/views/manage/cms_pages/_sort_images.html.erb
imagine_cms-5.2.4 app/views/manage/cms_pages/_sort_images.html.erb
imagine_cms-5.2.3 app/views/manage/cms_pages/_sort_images.html.erb
imagine_cms-5.2.2 app/views/manage/cms_pages/_sort_images.html.erb
imagine_cms-5.2.1 app/views/manage/cms_pages/_sort_images.html.erb
imagine_cms-5.2.0 app/views/manage/cms_pages/_sort_images.html.erb
imagine_cms-4.2.4 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.1.4 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.2.3 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.2.2 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.2.1 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.2.0 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.1.3 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.1.2 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.1.1 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.1.0 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.0.1 app/views/management/cms/_sort_images.html.erb
imagine_cms-4.0.0 app/views/management/cms/_sort_images.html.erb
imagine_cms-3.0.33 app/views/management/cms/_sort_images.html.erb