${dataItem.userid} ${dataItem.paymenttype} ${dataItem.paymentstatus} ${dataItem.partner}
`)
+ );
+}
+
+
diff --git a/frontend/normal_user/_main page/pojedynczy_turniej/zapisy/index.html b/frontend/normal_user/_main page/pojedynczy_turniej/zapisy/index.html
index 2c64869..d76900b 100644
--- a/frontend/normal_user/_main page/pojedynczy_turniej/zapisy/index.html
+++ b/frontend/normal_user/_main page/pojedynczy_turniej/zapisy/index.html
@@ -11,15 +11,17 @@
-
+
+
-->
-
+
+ alt="Logo error">
-
+
diff --git a/frontend/panel_organizatora/edycja turnieju/app.js b/frontend/panel_organizatora/edycja turnieju/app.js
index 3beb17d..db8a326 100644
--- a/frontend/panel_organizatora/edycja turnieju/app.js
+++ b/frontend/panel_organizatora/edycja turnieju/app.js
@@ -30,29 +30,28 @@
function createTournament() {
fetch('https://dragonmaster.pl/inz/tournament', {
- method: "PUT",
+ method: "POST",
headers: {
'Content-type': 'application/json',
Authorization: ("Bearer " + localStorage.getItem("token"))
},
body: JSON.stringify(
{
+ "id": localStorage.getItem('tournamentId'),
"name": document.getElementById("name").value,
"typeOfLadder": "string",
"pointsForTournament": "1",
- "places": "1",
+ "places": document.getElementById("place").value,
"roles": document.getElementById("category").value,
- "ranked": document.getElementById("rank").value,
- "place": document.getElementById("place").value,
- "from": "2020-10-10 10:10:10",
- "to": "2020-10-10 10:10:10",
- "rang": "rang1",
+ "from": document.getElementById("term_from").value,
+ "to": document.getElementById("term_to").value,
+ "rang": document.getElementById("rank").value,
"entryFee": document.getElementById("entry-fee").value,
"director": document.getElementById("director").value,
"phone": document.getElementById("phone").value,
- "entriesTo": "2020-10-10 10:10:10",
+ "entriesTo": document.getElementById("entries").value,
"additionalInformations": document.getElementById("add-info").value,
- "categotry": "cat1",
+ "categotry": document.getElementById("category").value,
"visibility": "TRUE"
}
)
@@ -64,6 +63,7 @@ function createTournament() {
.catch(error => console.log(error))
}
+
function logout() {
localStorage.clear();
location.reload();