<div class="fields">
  <table class="row">
  <tr class="form-group <%= 'error' if f.object.errors.any? %>">
    <% if controller_name =~ /(host|hostgroup)/ %>
    <td class="col-md-2">
      <%= content_tag(:input, '', :class => "form-control", :disabled => true,  :value => _('Global'), :type=> :text ) %>
    </td>
    <% end %>
    <td class="col-md-2">
      <%= f.text_field(:name,  :class => "form-control", :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Name")) %>
    </td>
    <td class="col-md-7">
      <%= f.text_area(:value, :class => "form-control", :rows => line_count(f, :value), :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Value")) %>
    </td>
    <td class="col-md-1">
    <span class="help-block">
      <%= link_to_remove_fields('', f) if authorized_via_my_scope("host_editing", "destroy_params") %>
    </span>
    </td>
    <span class="help-block">
      <%= f.object.errors.full_messages.to_sentence %>
    </span>
    </tr>
  </table>
  <%= f.hidden_field :nested %>
</div>
