- <input type="submit" value="{% trans "Save edit" %}" class="submit" onclick="window.removeEventListener('beforeunload', beforeUnload, true)" />
- <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
+
+ {% if form.recaptcha %}
+ <div class="question-captcha">
+ {{ form.recaptcha.errors }}
+ {{ form.recaptcha }}
+ </div>
+ {% endif %}
+
+ <input type="button" value="{% trans "Save edit" %}" class="submit" onclick="submitClicked(event, this.form)" />
+ <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="submitClicked(event, this.form);history.back(-1);" />