{% macro forms(form) %}
<div class="form-horizontal">
  {{ form.hidden_tag() }}
  {% for field in form if field.widget.input_type != 'hidden' %}
  <div class="form-group">
    <label class="col-sm-2 control-label">{{ field.label }}</label>
    <div class="col-sm-10">
      {{ field(class="form-control")}}
    </div>
  </div>
  {% endfor %}
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button class="btn btn-sm btn-primary" type="submit">{{ _('save') }}</button>
    </div>
  </div>
</div>
{%- endmacro %}
