foreman/app/views/hosts/index.html.erb @ c45a0014
be96f201 | Ohad Levy | <span class="title_action">
|
|
095c11d3 | Amos Benari | <% if authorized? -%>
|
|
01984fb7 | Amos Benari | <div id="actions_dropdown" >
|
|
4ebe38c7 | Ohad Levy | <%= link_to("Edit Multiple Hosts ▼", "#")%>
|
|
095c11d3 | Amos Benari | </div>
|
|
<%= multiple_actions_select %>
|
|||
<% end -%>
|
|||
c45a0014 | Ohad Levy | <%= link_to_if_authorized "New Host", hash_for_new_host_path %>
|
|
ef14965b | Ohad Levy | </span>
|
|
01984fb7 | Amos Benari | <%= render 'list', :hosts => @hosts, :header => @title || "Hosts" %>
|
|
095c11d3 | Amos Benari | <script>
|
|
dropdown($("#Submit_multiple"), $("#actions_dropdown"),function(event, ui) {
|
|||
submit_multiple(ui.item.value);
|
|||
});
|
|||
</script>
|