fix form
This commit is contained in:
parent
4902f2e297
commit
f6ce5a0e12
@ -74,7 +74,7 @@ def register_racer(request):
|
|||||||
return HttpResponse('{"reason":"Je potřeba se přihlásit!"}', status=400, content_type='application/json')
|
return HttpResponse('{"reason":"Je potřeba se přihlásit!"}', status=400, content_type='application/json')
|
||||||
ALKATOR_CLASS = 3
|
ALKATOR_CLASS = 3
|
||||||
|
|
||||||
if date.today() >= date(2024, 10, 5):
|
if date.today() >= date(2025, 10, 5):
|
||||||
return HttpResponse('{"reason":"Too late!"}', status=400, content_type='application/json')
|
return HttpResponse('{"reason":"Too late!"}', status=400, content_type='application/json')
|
||||||
if not request.POST.get('agreement'):
|
if not request.POST.get('agreement'):
|
||||||
return HttpResponse('{"reason":"Je potřeba souhlasit se zpracováním údajů!"}', status=400, content_type='application/json')
|
return HttpResponse('{"reason":"Je potřeba souhlasit se zpracováním údajů!"}', status=400, content_type='application/json')
|
||||||
|
@ -224,12 +224,12 @@ class Main extends Component {
|
|||||||
<div>
|
<div>
|
||||||
<form id="form" action="/api/login" class="container" onSubmit={(e) => this.onSubmit(e)}>
|
<form id="form" action="/api/login" class="container" onSubmit={(e) => this.onSubmit(e)}>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="email">Přihlašovací email:</label>
|
<label for="email" class="form-label">Přihlašovací email:</label>
|
||||||
<input name="email" type="email" />
|
<input name="email" class="form-control" type="email" />
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="password">Heslo:</label>
|
<label for="password" class="form-label">Heslo:</label>
|
||||||
<input type="password" name="password"/>
|
<input type="password" class="form-control" name="password"/>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Přihlásit</button>
|
<button type="submit" class="btn btn-primary">Přihlásit</button>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user