Sha256: b9710b672d3be4e187896c778a73580e34480b847ca7cb2923ecd5bddd990ca9

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

<h3 style="margin-bottom: 10px;">Gallery Setup</h3>

<p>Drag the images until they are in the desired order.</p>

<div id="image_sorter" style="border: 1px solid gray">
  <%- @thumbs.each_with_index do |thumb, index| -%>
  <table id="thumb_<%= File.basename(thumb, File.extname(thumb)).to_i %>" border="0" cellpadding="0" cellspacing="2" style="width: 90px; height: 90px; float: left;">
    <tr height="80">
      <td align="center"><%= image_tag "/#{thumb}?#{File.mtime(File.join(Rails.root, 'public', thumb)).to_i}" %></td>
    </tr>
  </table>
  <%- end -%>
  <br clear="all" />
</div>
<%= sortable_element('image_sorter', :url => { :action => 'set_gallery_order' }, :tag => 'table', :constraint => '') %>

<%= form_remote_tag(:update => 'insert_image_dialog_content', :url => { :action => 'complete_gallery', :id => @pg }) do -%>
  Resize to be at most <%= text_field_tag :max_width, GalleryMaxWidth, :style => 'width: 40px' %> pixels wide and <%= text_field_tag :max_height, GalleryMaxHeight, :style => 'width: 40px' %> pixels high<br/>
  <%= text_field_tag 'dirname', params[:dirname], :style => 'display: none' %>
  
  <%= submit_tag 'Finish', :class => 'form_button', :style => 'width: 70px;', 'data-disable-with' => 'Please wait...' %>
<%- end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
imagine_cms-5.2.6 app/views/manage/cms_pages/_gallery_setup.html.erb