{% extends "freeadmin/generic_form.html" %}
{% block onSubmit %}
console.log("here");
doSubmit({
    form: this,
    event: e,
    url: '{{ request.path }}',
    progressbar: {
      steps: [
         {% for test in tests %}
         {"label": gettext("{{ test|escapejs }}")}{% if not forloop.last %},{%endif %}
	 {% endfor %}
      ],
      poolUrl: '{% url "system_perftest_progress" %}',
      fileUpload: false
    }
});
{% endblock %}
{% block form %}
<p>{% trans "You are about to start a performance test." %}
<br />
{% trans "Running these tests can substantially impact performance on a production system and are only to be used for diagnostic purposes." %}
<br />
{% trans "Are you sure you want to proceed?" %}</p>
{% endblock %}
{% block buttons %}
<button id="btn_PerfTest_Ok" data-dojo-type="dijit.form.Button" type="submit">
    {% trans "Yes" %}
</button>
<button id="btn_PerfTest_Cancel" data-dojo-type="dijit.form.Button" type="button">
    <script type="dojo/method" data-dojo-event="onClick" data-dojo-args="evt">
    cancelDialog(this);
    </script>
    {% trans "No" %}
</button>
{% endblock %}
