add partials
This commit is contained in:
20
app/views/pool_elements/_new.html.erb
Normal file
20
app/views/pool_elements/_new.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user