fixes #905, as well as fix for pool nav

This commit is contained in:
albert
2013-03-17 21:54:28 -04:00
parent 0c8a3f25a7
commit 68a711c63f
5 changed files with 19 additions and 14 deletions

View File

@@ -5,8 +5,8 @@
<div class="input">
<label>Pool Name</label>
<%= text_field_tag "pool_name", "", :size => 20 %>
<span class="hint">Type the first two characters of a pool name</span>
<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">

View File

@@ -0,0 +1,2 @@
$("#pool-name-container").html(<%= raw select_tag("pool_id", options_for_select(@pools.map {|x| [x.name, x.id]})).to_json %>);
$("#pool-name-hint").hide();