Commit 90f087dc authored by Noe Nieto's avatar Noe Nieto 💬 Committed by David Seaward
Browse files

Revert "Merge branch 'Purism/LibremOne/task#177'"

This reverts commit bb5cf513
parent 3efd99f5
Pipeline #5502 passed with stage
in 39 seconds
......@@ -12,29 +12,9 @@
{% endblock %}
{% block content %}
<form id="registrate" method="post" action=".">
<form method="post" action=".">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Submit' %}" />
</form>
{% endblock %}
{% block js_scripts %}
<script>
const READY_STATE_DONE = 4;
var formilo = document.getElementById('registrate');
formilo.onsubmit = function (event){
var peto = new XMLHttpRequest();
peto.onreadystatechange = function (evt){
if (peto.readyState == READY_STATE_DONE) {
console.log('State:', peto.readyState, '\nRequest:\n', peto);
}
};
peto.open('POST', formilo.action);
peto.send(new FormData(formilo));
return false;
}
</script>
{% endblock %}
......@@ -72,6 +72,6 @@ SPDX-License-Identifier: AGPL-3.0
</div>
</footer>
{% block js_scripts %}{% endblock %}
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment