|
<span class="title_action">
|
|
<% if authorized? -%>
|
|
<div id="actions_dropdown" >
|
|
<%= link_to("Edit Multiple Hosts ▼", "#")%>
|
|
</div>
|
|
<%= multiple_actions_select %>
|
|
<% end -%>
|
|
<%= link_to_if_authorized "New Host", hash_for_new_host_path %>
|
|
</span>
|
|
<%= render 'list', :hosts => @hosts, :header => @title || "Hosts" %>
|
|
<script>
|
|
dropdown($("#Submit_multiple"), $("#actions_dropdown"),function(event, ui) {
|
|
submit_multiple(ui.item.value);
|
|
});
|
|
</script>
|