Drag to re-order

For the previous commit, allow the user
to change the order of the LaTeX output.
master
Jacques Distler 2010-10-09 10:33:11 -05:00
parent aee4f8b3a9
commit fece5a3486
1 changed files with 6 additions and 5 deletions

View File

@ -18,15 +18,16 @@
<% if params['category'] -%>
<input type="hidden" name="category" value="<%= params['category'] %>"/>
<%- end -%>
<ul style="list-style-type:none">
<ul id="sortable_pages" style="list-style-type:none">
<%- @pages_in_category.each do |page| -%>
<li>
<input type="checkbox" name="<%= page.name %>" value="tex"/>
<% content_tag_for :li, page do %>
<input type="checkbox" name="<%= page.name %>" value="tex"/>
<%= link_to_existing_page page, truncate(page.plain_name, :length => 35) %>
</li>
<% end %>
<%- end -%>
</ul>
<p> Export selected pages to a LaTeX file.
<%= sortable_element('sortable_pages') %>
<p> Export selected pages (drag to re-order them) to a LaTeX file.
<%= submit_tag("Export") %>
</p>
</div>