<div class="modal fade" id="editcollect" role="dialog" aria-labelledby="editcollectLabel">
  <div class="modal-dialog modal-sm" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="editcollectLabel">{{_('Edit the collect')}}</h4>
      </div>
      <form id="editcollectform">
        <div class="modal-body">
          <div class="form-group">
            {{ form.name.label }}
            {{ form.name(class="form-control")}}
          </div>
          <div class="form-group">
            {{ form.description.label }}
            {{ form.description(class="form-control")}}
          </div>
          {% for subfield in form.is_hidden %}
          <div class="form-group">
            {{subfield}}
            {{subfield.label}}
          </div>
          {% endfor %}
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">{{ _('cancel')}}</button>
          <button type="button" id="edit-collect" class="btn btn-primary">{{_('confirm')}}</button>
        </div>
      </form>
    </div>
  </div>
</div>
