Sha256: c875cf7887c487b1b0a23c25fef3bdff2958f642b8cd796ad15a5475d1e3a246

Contents?: true

Size: 1.25 KB

Versions: 31

Compression:

Stored size: 1.25 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;', :onclick => "this.disabled = true; this.value = 'Please wait...';" %>
<%- end -%>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
imagine_cms-5.2.5 app/views/manage/cms_pages/_gallery_setup.html.erb
imagine_cms-5.2.4 app/views/manage/cms_pages/_gallery_setup.html.erb
imagine_cms-5.2.3 app/views/manage/cms_pages/_gallery_setup.html.erb
imagine_cms-5.2.2 app/views/manage/cms_pages/_gallery_setup.html.erb
imagine_cms-5.2.1 app/views/manage/cms_pages/_gallery_setup.html.erb
imagine_cms-5.2.0 app/views/manage/cms_pages/_gallery_setup.html.erb
imagine_cms-4.2.4 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.1.4 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.2.3 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.2.2 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.2.1 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.2.0 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.1.3 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.1.2 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.1.1 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.1.0 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.0.1 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-4.0.0 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-3.0.33 app/views/management/cms/_gallery_setup.html.erb
imagine_cms-3.0.32 app/views/management/cms/_gallery_setup.html.erb