ton>
          </div>
        </div>
      </div>
    </div>
  </form>
{% endmacro %}

{% macro history_view(panel_id, panel_name) %}
  <div id="paneldiv_{{panel_id}}" class="collapse">
    <ul>
    {% for version in panel_versions[panel_name]|sort(attribute='version', reverse=True) %}
      <li><a href={{ url_for('panels.panel', panel_id=version._id) }}>{{ version.version }} {{ version.date.date() }} {{ version.genes|length }} genes</a></li>
    {% endfor %}
    </ul>
  </div>
{% endmacro %}

{% macro modi