<table class="table table-fixed" id="inherited_parameters">
  <thead class="white-header">
    <tr>
      <th class='col-md-3'><%= _("Name") %></th>
      <th class='col-md-8'><%= _("Value") %></th>
      <th class='col-md-1 ca'><%= _('Actions') %></th>
    </tr>
  </thead>
  <% if inherited_parameters.present? %>
    <tbody>
      <% keys = inherited_parameters.keys.sort %>
      <% keys.each do |name| %>
        <% overriden = parameters.detect{|param| param.name == name}.present? %>
        <tr class="<%="override-param" if overriden %>">
          <td class="ellipsis"><%= content_tag :span, name, :id => "name_#{name}"%>
          </td>
          <td><%= parameter_value_field inherited_parameters[name] %></td>
          <td>
            <%= link_to_function(_("override"), "override_param(this)", :title => _("Override this value"),
                                 :'data-tag' => 'override', :class => "btn btn-default") if authorized_via_my_scope("host_editing", "create_params") %>
          </td>
        </tr>
      <% end %>
    </tbody>
  <% end %>
</table>
