add partials

This commit is contained in:
albert
2013-01-07 16:50:07 -05:00
parent 2a88c312c8
commit f000278869
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<div id="c-pool-elements">
<div id="a-new">
<%= form_tag(pool_element_path) do %>
<%= hidden_field_tag "post_id", @post.id %>
<%= text_field_tag "pool_name", "", :size => 20 %>
<%= submit_tag "Select" %>
<% end %>
<% if recent_updated_pools.any? %>
<div>
<h1>Recent Pools</h1>
<ul id="recent-pools">
<% recent_updated_pools.each do |pool| %>
<li><%= pool.name %></li>
<% end %>
</ul>
</div>
<% end %>
</div>
</div>