{% extends '../layout/layout.html' %}

{% block html_base_css %}error nologin{% endblock %}

{% block html_title %}{{ customizeService.generateCustomTitleForFixedPageName(t('login.Setup')) }}{% endblock %}



{#
 # Remove default contents
 #}
{% block html_head_loading_legacy %}
{% endblock %}
{% block html_head_loading_app %}
{% endblock %}
{% block layout_head_nav %}
{% endblock %}
{% block sidebar %}
{% endblock %}
{% block head_warn_alert_siteurl_undefined %}
{% endblock %}



{% block layout_main %}

<div class="main container-fluid">

  <div class="row">

    <div class="login-header offset-sm-4 col-sm-4">
      <div class="logo">{% include '../widget/logo.html' %}</div>
      <h1>GROWI</h1>

      <div class="mb-4 login-form-errors text-center">
        {% if reason === 'registered'%}
        <div class="alert alert-success">
          <h2>{{ t('login.Registration successful') }}</h2>
        </div>
        {% elseif reason === 'password-reset-order' %}
        <div class="alert alert-warning mb-3">
          <h2>{{ t('forgot_password.incorrect_token_or_expired_url') }}</h2>
        </div>
          <a href="/forgot-password" class="link-switch">
            <i class="icon-key"></i> {{ t('forgot_password.forgot_password') }}
          </a>
        {% else %}
        <div class="alert alert-warning">
            <h2>{{ t('login.Sign in error') }}</h2>
        </div>
        {% endif %}
      </div>

      <p>{{ reasonMessage }}</p>
    </div>


  </div>{# /.row #}

</div>{# /.main #}

{% endblock %}
