Sha256: b9463d8db3c933482d2c827e62d4c7f9b7b1aa517a6d0692db297e74cb5cd154
Contents?: true
Size: 942 Bytes
Versions: 5
Compression:
Stored size: 942 Bytes
Contents
<h3> <%= t(:'adva.titles.sections') %> <% if @site.sections.size > 1 %> <%= link_to_function t(:'adva.sections.links.reorder'), "sections_tree.toggle(this, '#{t(:'adva.resources.reordering_done')}');", :id => 'reorder_sections' %> <%= image_tag '/assets/adva_cms/indicator.gif', :id => 'sections_indicator', :style => 'display: none;' %> <% end -%> </h3> <ul id="sections"> <%= render :partial => 'admin/shared/section', :collection => @site.sections.roots %> </ul> <script type="text/javascript"> var sections_tree = new SortableTree('sections', { onDrop: function(drag, drop, event) { <%= remote_function(:url => admin_sections_path, :method => :put, :with => "drag.to_params()", :loading => "$('sections_indicator').show()", :complete => "$('sections_indicator').hide()" ) %> } }); </script>
Version data entries
5 entries across 5 versions & 1 rubygems