something -_-
This commit is contained in:
parent
fb56b753ae
commit
b7d692d156
@ -6,8 +6,9 @@ from .models import User
|
||||
|
||||
def register(request):
|
||||
if date.today() >= date(2024, 4, 21):
|
||||
return HttpResponse("Too late!", status=400)
|
||||
return HttpResponse('{"reason":"Too late!"}', status=400, content_type='application/json')
|
||||
if not request.POST.get('agreement'):
|
||||
return HttpResponse("Je potřeba souhlasit se zpracováním údajů!", status=400)
|
||||
return HttpResponse('{"reason":"Je potřeba souhlasit se zpracováním údajů!"}', status=400, content_type='application/json')
|
||||
user = User(first_name=request.POST['first_name'], last_name=request.POST['last_name'], email=request.POST['email'])
|
||||
user.save()
|
||||
return HttpResponse('{}', content_type='application/json')
|
||||
|
@ -35,19 +35,19 @@ class Main extends Component {
|
||||
</div>
|
||||
<div class="container info">
|
||||
<div class="row">
|
||||
<h1 class="col">
|
||||
<h1 class="col val">
|
||||
<b>KDY?</b>
|
||||
<br />
|
||||
21.4.2024
|
||||
</h1>
|
||||
<div class="col"></div>
|
||||
<h1 class="col">
|
||||
<h1 class="col val">
|
||||
<b>KDE?</b>
|
||||
<br />
|
||||
Sobkovice
|
||||
</h1>
|
||||
<div class="col"></div>
|
||||
<h1 class="col">
|
||||
<h1 class="col val">
|
||||
<b>CENA</b>
|
||||
<br />
|
||||
480 kč
|
||||
@ -78,7 +78,7 @@ class Main extends Component {
|
||||
<button type="submit" class="btn btn-primary">Odeslat</button>
|
||||
</form>
|
||||
<div class="container video">
|
||||
<iframe width="100%" height="1000px" src="https://www.youtube.com/embed/-_Uu4rMb3n8?si=3AeWqw319fPrSTse" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="true"></iframe>
|
||||
<iframe width="100%" height="800px" src="https://www.youtube.com/embed/-_Uu4rMb3n8?si=3AeWqw319fPrSTse" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="true"></iframe>
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -1,6 +0,0 @@
|
||||
{
|
||||
"name": "alkator",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user