Sha256: 563f86f90472acd1bed2adb55ec7fa44d20ff7e16bde5a6bcd3ebcf95528f8f3

Contents?: true

Size: 893 Bytes

Versions: 13

Compression:

Stored size: 893 Bytes

Contents

<div class='drive' id='position'>
  <div id='position_errors' class='errors'></div>
  <% sortables = [[@node.find(:all, 'pages'), 'pages'], [@node.find(:all, 'documents'), 'documents']] %>
  <% sortables.each do |list,name| %>
  <% next unless list -%>
  <ul><li><label><%= _("sort #{name}") %></label></li>
    <li>
      <ul class='position' id='sort_<%= name %>'>
        <% list.each do |child| -%>
        <li id='child_<%= child[:zip] %>'><%= truncate(child.name, :length => 18) %></li>
        <% end -%>
      </ul>
    </li>
  </ul>

  <%= sortable_element("sort_#{name}", :update => 'position_info', :url => order_node_path(@node[:zip]), :complete => visual_effect(:highlight, "sort_#{name}") ) %>
  <%= link_to_remote(_('reset'), {:url => clear_order_node_path(@node[:zip]) + "?kpath=#{list[0].class.kpath}"}, :class => 'reset') %>

  <% end -%>

  <p id='position_info'></p>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zena-0.16.9 app/views/nodes/_position.rhtml
zena-0.16.8 app/views/nodes/_position.rhtml
zena-0.16.7 app/views/nodes/_position.rhtml
zena-0.16.6 app/views/nodes/_position.rhtml
zena-0.16.5 app/views/nodes/_position.rhtml
zena-0.16.4 app/views/nodes/_position.rhtml
zena-0.16.3 app/views/nodes/_position.rhtml
zena-0.16.2 app/views/nodes/_position.rhtml
zena-0.16.1 app/views/nodes/_position.rhtml
zena-0.16.0 app/views/nodes/_position.rhtml
zena-0.15.2 app/views/nodes/_position.rhtml
zena-0.15.1 app/views/nodes/_position.rhtml
zena-0.15.0 app/views/nodes/_position.rhtml