Skip to content

Commit b8f7772

Browse files
committed
feat(ui): add proper template to Altcha challenge page
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 274540e commit b8f7772

2 files changed

Lines changed: 37 additions & 6 deletions

File tree

‎vulnerabilities/forms.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ class AdvisoryToDoForm(forms.Form):
136136

137137

138138
class AltchaForm(forms.Form):
139-
altcha = AltchaField()
139+
altcha = AltchaField(auto="onload")
Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
1-
<form method="post">
2-
{% csrf_token %}
3-
{{ form }}
4-
<button type="submit">Continue</button>
5-
</form>
1+
{% extends "base.html" %}
2+
{% load static %}
3+
4+
{% block content %}
5+
<section class="section">
6+
<div class="columns is-centered mt-4 pt-4">
7+
<div class="column is-4">
8+
<div class="card">
9+
<div class="card-content">
10+
<h1 class="title is-5 has-text-centered mt-4">
11+
Please verify that you are human to continue
12+
</h1>
13+
14+
<form method="post">
15+
{% csrf_token %}
16+
17+
<div class="has-text-centered ml-5 pt-4">
18+
<div style="display:inline-block; min-width: 304px;">
19+
{{ form }}
20+
</div>
21+
</div>
22+
23+
<div class="field mt-4 pt-2">
24+
<div class="control">
25+
<button type="submit" class="button is-info is-fullwidth">
26+
Continue
27+
</button>
28+
</div>
29+
</div>
30+
</form>
31+
</div>
32+
</div>
33+
</div>
34+
</div>
35+
</section>
36+
{% endblock %}

0 commit comments

Comments
 (0)