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.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
|
||||
|
@ -22,6 +22,7 @@ class Main extends Component {
|
||||
page: window.location.hash,
|
||||
photos: [],
|
||||
photoIsOpen: false,
|
||||
progress: false,
|
||||
currentImage: 0,
|
||||
};
|
||||
fetch(addr_prefix + "/api/results").then(resp => resp.json()).then(json => {
|
||||
@ -58,10 +59,15 @@ class Main extends Component {
|
||||
event.preventDefault();
|
||||
let form = document.getElementById("form");
|
||||
let formData = new FormData(form);
|
||||
if(this.state.progress){
|
||||
return;
|
||||
}
|
||||
this.setState({progress: true})
|
||||
fetch(addr_prefix + "/api/register", {
|
||||
method:"POST",
|
||||
body: formData,
|
||||
}).then(resp => resp.json()).then(json => {
|
||||
this.setState({progress:false})
|
||||
if(json.reason){
|
||||
this.setState({
|
||||
text: json.reason,
|
||||
@ -226,7 +232,7 @@ class Main extends Component {
|
||||
<h1 class="col val">
|
||||
<b>CENA</b>
|
||||
<br />
|
||||
Do 20.9. 690 kč*
|
||||
Od 21.9. 790 kč*
|
||||
</h1>
|
||||
</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>* 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>Sportem ku chlastu!</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user