From 37caf989a5211cee427e637af0e032e742f66c3e Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Thu, 10 Oct 2024 00:06:36 +0200 Subject: [PATCH] =?UTF-8?q?nov=C3=A1=20registrace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alkator/settings.py | 2 +- frontend/src/scripts/index.js | 44 +++++++++++++++++++++++++++++++---- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/alkator/settings.py b/alkator/settings.py index 65d602f..4a022bf 100644 --- a/alkator/settings.py +++ b/alkator/settings.py @@ -85,7 +85,7 @@ DATABASES = { COMGATE_MERCHANT = 485044 -COMGATE_TEST = False +COMGATE_TEST = True COMGATE_SECRET = '4c36b7faf40575073b26570066ca2a9f' diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 1cedc5c..aca9136 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -117,7 +117,6 @@ class Main extends Component { } render(){ - console.log(this.state.login_status); let photos_gallery = []; let photos_carousel = []; if(this.state.gallery_open !== undefined){ @@ -169,9 +168,14 @@ class Main extends Component { } {Object.keys(this.state.login_status).length > 0 && -
  • - Přihlášen {this.state.login_status.first_name} {this.state.login_status.last_name} Odhlásit -
  • +
    + + +
    } @@ -184,6 +188,38 @@ class Main extends Component {
    {this.setState({status: "", status_text:""})}}> {this.state.status_text}
    } + {this.state.page == "#register_racer" && +
    +
    this.onSubmit(e)}> +

    Registrace Závodníka

    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + + +
    +
    + } {this.state.page == "#login" &&
    this.onSubmit(e)}>