Clean up flag/appeal/pool partials html

The new flag and appeal partials both had a duplicate #a-index dom id.
This commit is contained in:
Toks
2013-08-14 13:19:44 -04:00
parent ab4196a0e3
commit 2d39ed5ebc
8 changed files with 79 additions and 81 deletions

View File

@@ -1,28 +1,24 @@
<div id="c-pool-elements">
<div id="a-new">
<%= form_tag(pool_element_path, :class => "simple_form") do %>
<%= hidden_field_tag "post_id", @post.id %>
<%= form_tag(pool_element_path, :class => "simple_form") do %>
<%= hidden_field_tag "post_id", @post.id %>
<div class="input">
<label>Pool Name</label>
<span id="pool-name-container"><%= text_field_tag "pool_name", "", :size => 20 %></span>
<span id="pool-name-hint" class="hint">Search for a pool containing (<%= link_to "see full list", all_select_pool_element_path, :remote => true %>)</span>
</div>
<div class="input">
<%= submit_tag "Submit" %>
</div>
<% end %>
<% if recent_updated_pools.any? %>
<div>
<h1>Recent Pools</h1>
<ul id="recent-pools">
<% recent_updated_pools.each do |pool| %>
<li><%= pool.pretty_name %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="input">
<label>Pool Name</label>
<span id="pool-name-container"><%= text_field_tag "pool_name", "", :size => 20 %></span>
<span id="pool-name-hint" class="hint">Search for a pool containing (<%= link_to "see full list", all_select_pool_element_path, :remote => true %>)</span>
</div>
</div>
<div class="input">
<%= submit_tag "Submit" %>
</div>
<% end %>
<% if recent_updated_pools.any? %>
<div>
<h1>Recent Pools</h1>
<ul id="recent-pools">
<% recent_updated_pools.each do |pool| %>
<li><%= pool.pretty_name %></li>
<% end %>
</ul>
</div>
<% end %>

View File

@@ -1 +1,5 @@
<%= render "pool_elements/new" %>
<div id="c-pool-elements">
<div id="a-new">
<%= render "pool_elements/new" %>
</div>
</div>