zulip/templates/confirmation/confirm_preregistrationuser.html
Luke Faraone e57625d089 Submit form after the DOM is ready per trac #314
(imported from commit 8facaa097342c830353464989990edb853f2adf4)
2012-11-26 14:48:54 -05:00

23 lines
643 B
HTML

{% extends "zephyr/base.html" %}
{% block content %}
{% comment %}
This template is referenced by the confirmation code and does not have the
requisite context to make a useful signup form. Therefore, we immediately
post to another view which executes in our code to produce the desired form.
{% endcomment %}
<form id="register" action="/accounts/register/" method="post">
{% csrf_token %}
<input type="hidden" value="{{ key }}" name="key"/>
<input type="hidden" value="1" name="from_confirmation"/>
</form>
<script type="text/javascript">
$(function () {
$("#register").submit();
});
</script>
{% endblock %}