@@ -58,5 +58,15 @@ function loginVisibility() {
else {
document.getElementById("login").style.display = "";
+ }
+}
+
+function createVisibility() {
+ if (localStorage.getItem("token") !== null) {
+ document.getElementById("creator").style.display = "none";
+ }
+ else {
+ document.getElementById("creator").style.display = "";
+
}
}
\ No newline at end of file
diff --git a/frontend/index.html b/frontend/index.html
index cf2a5ea..5b8e4c7 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/frontend/panel_organizatora/dodawanie turnieju/app.js b/frontend/panel_organizatora/dodawanie turnieju/app.js
index 672d97a..3beb17d 100644
--- a/frontend/panel_organizatora/dodawanie turnieju/app.js
+++ b/frontend/panel_organizatora/dodawanie turnieju/app.js
@@ -44,18 +44,16 @@ function createTournament() {
"roles": document.getElementById("category").value,
"ranked": document.getElementById("rank").value,
"place": document.getElementById("place").value,
- "from": "string",
- "to": "string",
+ "from": "2020-10-10 10:10:10",
+ "to": "2020-10-10 10:10:10",
"rang": "rang1",
"entryFee": document.getElementById("entry-fee").value,
"director": document.getElementById("director").value,
"phone": document.getElementById("phone").value,
- "entriesTo": "string",
+ "entriesTo": "2020-10-10 10:10:10",
"additionalInformations": document.getElementById("add-info").value,
"categotry": "cat1",
"visibility": "TRUE"
-
-
}
)
}
@@ -82,7 +80,6 @@ function logoutVisibility() {
}
-
function loginVisibility() {
if (localStorage.getItem("token") !== null) {
document.getElementById("login").style.display = "none";
@@ -91,4 +88,4 @@ function loginVisibility() {
document.getElementById("login").style.display = "";
}
-}
\ No newline at end of file
+}
diff --git a/frontend/panel_organizatora/dodawanie turnieju/index.html b/frontend/panel_organizatora/dodawanie turnieju/index.html
index b9a3072..b160b9f 100644
--- a/frontend/panel_organizatora/dodawanie turnieju/index.html
+++ b/frontend/panel_organizatora/dodawanie turnieju/index.html
@@ -7,10 +7,10 @@
Padel Tournaments System
+
-