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')
|
||||
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')
|
||||
if not request.POST.get('agreement'):
|
||||
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>
|
||||
<form id="form" action="/api/login" class="container" onSubmit={(e) => this.onSubmit(e)}>
|
||||
<div class="mb-3">
|
||||
<label for="email">Přihlašovací email:</label>
|
||||
<input name="email" type="email" />
|
||||
<label for="email" class="form-label">Přihlašovací email:</label>
|
||||
<input name="email" class="form-control" type="email" />
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password">Heslo:</label>
|
||||
<input type="password" name="password"/>
|
||||
<label for="password" class="form-label">Heslo:</label>
|
||||
<input type="password" class="form-control" name="password"/>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Přihlásit</button>
|
||||
</form>
|
||||
|
Loading…
x
Reference in New Issue
Block a user