pool views
This commit is contained in:
17
app/views/pools/_simple_edit.html.erb
Normal file
17
app/views/pools/_simple_edit.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<h2>Edit Pool: <%= @pool.name %></h2>
|
||||
<p>Drag and drop the list below to determine ordering.</p>
|
||||
|
||||
<ul id="sortable">
|
||||
<% posts.each do |post| %>
|
||||
<li class="ui-state-default" id="pool[post_id_array]_<%= post.id %>">
|
||||
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
|
||||
<span class="delete">Delete</span>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<%= simple_form_for(@pool, :format => :js, :html => {:id => "ordering-form"}) do |f| %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :description %>
|
||||
<%= submit_tag "Save" %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user