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