<% if is_template %>
  <table>
<% end %>
<tr class="fields matchers form-group <%= 'has-error' if f.object.errors.any? %>">
  <td>
    <%= f.hidden_field :match, :class => 'match' %>
    <%= select_tag '', nil, :class => 'matcher_key without_select2' %>
    =
    <%= text_field_tag '', nil, :class => 'matcher_value' %>
  </td>
  <td>
    <div class="input-group">
      <%= f.text_area :value, :rows => 1, :class => 'form-control no-stretch', :'data-property' => 'value',
                      :disabled => f.object.use_puppet_default,
                      :placeholder => _("Value") %>
      <%= fullscreen_input %>
    </div>
  </td>
  <td class="ca">
    <%= f.check_box :use_puppet_default, :'data-property' => 'use_puppet_default',
                    :disabled => !is_param,
                    :onchange => 'toggleUsePuppetDefaultValue(this, "value")' if is_param %>
  </td>
  <td>
    <span class="help-block">
      <%= link_to_remove_fields('', f) %>
    </span>
  </td>
</tr>
<% if f.object.errors.any? %>
  <tr class="has-error">
    <td colspan="5">
      <span class="help-block">
        <%= f.object.errors.full_messages.to_sentence %>
      </span>
    </td>
  </tr>
<% end %>
<% if is_template %>
  </table>
<% end %>
