khaikang/templates/signup.html

17 lines
558 B
HTML
Raw Normal View History

2022-11-13 03:02:51 +08:00
{% extends 'base_generic.html' %}
{% block content %}
<h2>Sign up</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<span id="{{ honeypot_name }}-some-desc">Leave it blank: </span><input id ="{{ honeypot_name }}" type="text" name="{{ honeypot_name }}"><br>
2022-11-13 03:02:51 +08:00
<button type="submit">Sign up</button>
</form>
2022-11-17 01:51:26 +08:00
<script type="text/javascript">
$ = (x) => document.getElementById(x);
$("{{ honeypot_name }}-some-desc").style.display = 'none';
2022-11-17 01:51:26 +08:00
$("{{ honeypot_name }}").style.display = 'none';
</script>
2022-11-13 03:02:51 +08:00
{% endblock %}