delete former form

This commit is contained in:
Martin Quarda 2024-10-11 08:53:59 +02:00
parent 3eeb419278
commit 4198bfe9da

View File

@ -44,6 +44,7 @@ class Main extends Component {
let searchParams = new URLSearchParams(window.location.search);
for(const [key, value] of searchParams){
if (key == "refId"){
window.history.replaceState( {} , document.title , "/#" );
fetch(addr_prefix + "/api/payment_state?refId=" + value).then(resp => resp.json()).then(json =>{
this.setState({status: json.status, status_text: json.reason})
})
@ -537,40 +538,6 @@ class Main extends Component {
<div class="container text text-center">
<h1>Další ročník bude na jaře 2025.</h1>
</div>
{/*
<form id="form" class="container" action="/api/register" onSubmit={(e) => this.onSubmit(e)}>
<h1>Registrace</h1>
<div class="mb-3">
<label for="first_name" class="form-label">Jméno</label>
<input type="text" class="form-control" id="first_name" name="first_name" />
</div>
<div class="mb-3">
<label for="last_name" class="form-label">Přijmení</label>
<input type="text" class="form-control" id="last_name" name="last_name" />
</div>
<div class="mb-3">
<label for="email" class="form-label">Emailová adresa</label>
<input type="email" class="form-control" id="email" name="email" />
</div>
<div class="mb-3">
<label for="date_of_birth" class="form-label">Datum narození</label>
<input type="date" class="form-control" id="date_of_birth" name="date_of_birth" max={new Date().toJSON().slice(0, 10)} />
</div>
<div class="mb-3">
<label for="phone" class="form-label">Telefonní číslo</label>
<input type="text" class="form-control" id="phone" name="phone" />
</div>
<div class="mb-3">
<label for="address" class="form-label">Adresa (kvůli fakturaci)</label>
<input type="text" class="form-control" id="address" name="address" />
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="agreement" name="agreement" />
<label class="form-check-label" for="agreement">Souhlas se <a href="/public/ochrana_osobnich_udaju.pdf">zpracováním osobních údajů</a>, <a href="/public/reverz.pdf">podmínkami závodu</a> a <a href="/public/obchodni_podminky_alkator.pdf">obchodníma podmínkami závodu</a>.</label>
</div>
<button type="submit" class="btn btn-primary">Odeslat a zaplatit</button>
</form>
*/}
<div class="container text-center social">
<div class="row">
<a class="col-lg-3" style={{"color": "black"}} href="mailto:info@alkator.cz"><b>info@alkator.cz</b></a>