added blank option to add existing
This commit is contained in:
parent
aeb0e99971
commit
f5015de9df
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="existingtopic" style="display:none;" >
|
<div class="existingtopic" style="display:none;" >
|
||||||
<label for="initem">Select Topic To Add</label>
|
<label for="initem">Select Topic To Add</label>
|
||||||
<%= select_tag "initem", options_from_collection_for_select(Item.order("name ASC").visibleToUser(user, nil).delete_if{|item| @map.items.include?(item)}, "id", "name") %>
|
<%= select_tag "initem", options_from_collection_for_select(Item.order("name ASC").visibleToUser(user, nil).delete_if{|item| @map.items.include?(item)}, "id", "name"), {:include_blank => true} %>
|
||||||
<%= form.submit "Add Topic", class: "addTopic", id: "addTopic" %>
|
<%= form.submit "Add Topic", class: "addTopic", id: "addTopic" %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue