fixes #905, as well as fix for pool nav
This commit is contained in:
@@ -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">
|
||||
|
||||
2
app/views/pool_elements/all_select.js.erb
Normal file
2
app/views/pool_elements/all_select.js.erb
Normal 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();
|
||||
Reference in New Issue
Block a user