title: How to get input form type
body: <p>I want get form field type and set class fot field type</p>
  
  <p>i try:</p>
  
  <pre><code>{# Form field row #}
  {% block form_row %}
  {% spaceless %}
    &lt;div class="field-group{% if errors|length &gt; 0%} error{%endif%}" id="fc-{{ id }}"&gt;
      {{ form_label(form, label|default(null)) }}
      &lt;div class="field-item {{ type }}"&gt;
        {{ form_widget(form) }}
        {% if errors|length &gt; 0 %}
          &lt;div class="errors"&gt;{{ form_errors(form) }}&lt;/div&gt;
        {% endif %}
      &lt;/div&gt;
    &lt;/div&gt;
  {% endspaceless %}
  {% endblock %}
  </code></pre>
  
  <p>But {{ type }} not working.</p>