new price
This commit is contained in:
parent
35bca9befa
commit
b731a43650
@ -101,7 +101,7 @@ def register(request):
|
|||||||
user.trans_id = result['transId'][0]
|
user.trans_id = result['transId'][0]
|
||||||
user.save()
|
user.save()
|
||||||
|
|
||||||
return HttpResponse('{"success":"Úspěšná registrace.", "redirect":"' + result['redirect'][0] + '"}', content_type='application/json')
|
return HttpResponse('{"success":"", "redirect":"' + result['redirect'][0] + '"}', content_type='application/json')
|
||||||
|
|
||||||
|
|
||||||
@csrf_exempt
|
@csrf_exempt
|
||||||
|
@ -22,6 +22,7 @@ class Main extends Component {
|
|||||||
page: window.location.hash,
|
page: window.location.hash,
|
||||||
photos: [],
|
photos: [],
|
||||||
photoIsOpen: false,
|
photoIsOpen: false,
|
||||||
|
progress: false,
|
||||||
currentImage: 0,
|
currentImage: 0,
|
||||||
};
|
};
|
||||||
fetch(addr_prefix + "/api/results").then(resp => resp.json()).then(json => {
|
fetch(addr_prefix + "/api/results").then(resp => resp.json()).then(json => {
|
||||||
@ -58,10 +59,15 @@ class Main extends Component {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let form = document.getElementById("form");
|
let form = document.getElementById("form");
|
||||||
let formData = new FormData(form);
|
let formData = new FormData(form);
|
||||||
|
if(this.state.progress){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.setState({progress: true})
|
||||||
fetch(addr_prefix + "/api/register", {
|
fetch(addr_prefix + "/api/register", {
|
||||||
method:"POST",
|
method:"POST",
|
||||||
body: formData,
|
body: formData,
|
||||||
}).then(resp => resp.json()).then(json => {
|
}).then(resp => resp.json()).then(json => {
|
||||||
|
this.setState({progress:false})
|
||||||
if(json.reason){
|
if(json.reason){
|
||||||
this.setState({
|
this.setState({
|
||||||
text: json.reason,
|
text: json.reason,
|
||||||
@ -226,7 +232,7 @@ class Main extends Component {
|
|||||||
<h1 class="col val">
|
<h1 class="col val">
|
||||||
<b>CENA</b>
|
<b>CENA</b>
|
||||||
<br />
|
<br />
|
||||||
Do 20.9. 690 kč*
|
Od 21.9. 790 kč*
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -249,7 +255,7 @@ class Main extends Component {
|
|||||||
|
|
||||||
<p>Start závodu je v 10:00, ale check-in se zahájením akce je již od 8:30.</p>
|
<p>Start závodu je v 10:00, ale check-in se zahájením akce je již od 8:30.</p>
|
||||||
|
|
||||||
<p>* S blížícím se závodem bude 21.9. zvednuta cena na 790 kč.</p>
|
<p>* Do 20.9 byla cena 690 kč.</p>
|
||||||
|
|
||||||
<p>Rozhodně se podívej na FAQ sekci, zde na stránce, kde najdeš důležité informace týkající se závodu ALKÁTOR RACE.</p>
|
<p>Rozhodně se podívej na FAQ sekci, zde na stránce, kde najdeš důležité informace týkající se závodu ALKÁTOR RACE.</p>
|
||||||
<p>Sportem ku chlastu!</p>
|
<p>Sportem ku chlastu!</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user