{% load static %}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Employee Onboarding - {{white_label_company_name}} Dashboard</title>
  <link rel="apple-touch-icon" sizes="180x180" href="{% if white_label_company.icon %}{{white_label_company.icon.url}} {% else %}{% static 'favicons/apple-touch-icon.png' %}{% endif %}">
  <link rel="icon" type="image/png" sizes="32x32" href="{% if white_label_company.icon %}{{white_label_company.icon.url}} {% else %}{% static 'favicons/favicon-32x32.png' %}{% endif %}">
  <link rel="icon" type="image/png" sizes="16x16" href="{% if white_label_company.icon %}{{white_label_company.icon.url}} {% else %}{% static 'favicons/favicon-16x16.png' %}{% endif %}">
  <link rel="stylesheet" href="{% static 'build/css/style.min.css' %}" />
  <style>
    ul.errorlist {
      color: #d9534f;
      background-color: #f0d8d8;
      border-color: #d6e9c6;padding: 15px;
      margin-top: 20px;
      border: 1px solid transparent;
      border-radius: 4px;

    }
    ul{
      list-style-type: none;
    }
  </style>
</head>


<body>

  {% if messages %}
  <div class="oh-wrapper">
      {% for message in messages %}
      <div class="oh-alert-container">
          <div class="oh-alert oh-alert--animated {{message.tags}}">
              {{ message }}
          </div>
      </div>
      {% endfor %}
  </div>
  {% endif %}

{% if form.errors %}
<!-- form errors  -->
<div class="oh-wrapper">
    <div class="oh-alert-container">

        {% for error in form.non_field_errors %}
        <div class="oh-alert oh-alert--animated oh-alert--danger">
            {{ error }}
        </div>
        {% endfor %}
    </div>
</div>
{% endif %}

  <div id="main">
    <main class="oh-onboarding">
      <div class="oh-onboarding-card">
        <div class="oh-onboarding-card__header">
          <span class="oh-onboarding-card__company-name">{{company}}</span>
          <ul class="oh-onboarding-card__steps">
            <li class="oh-onboarding-card__step oh-onboarding-card__step--active">
              <div class="oh-onboarding-card__count">1</div>
              <span class="oh-onboarding-card__text">{% trans "Login" %}</span>
            </li>
            <li class="oh-onboarding-card__step">
              <div class="oh-onboarding-card__count">2</div>
              <span class="oh-onboarding-card__text">{% trans "Profile Setup" %}</span>
            </li>
            <li class="oh-onboarding-card__step">
              <div class="oh-onboarding-card__count">3</div>
              <span class="oh-onboarding-card__text">{% trans "Personal Details" %}</span>
            </li>
            <li class="oh-onboarding-card__step">
              <div class="oh-onboarding-card__count">4</div>
              <span class="oh-onboarding-card__text">{% trans "Bank Details" %}</span>
            </li>
          </ul>
        </div>
        <div class="oh-onboarding-card__container">
          <h1 class="oh-onboarding-card__title oh-onboarding-card__title--h2 text-center my-3">{% trans "Authentication" %}</h1>
          <form method="post">
            {% csrf_token %}
            <div class="oh-input-group">
              <label class="oh-label" for="password">{% trans "Password" %}</label>
              <div class="oh-password-input-container">
                {{form.password1}}
                <button class="oh-btn oh-btn--transparent oh-password-input--toggle">
                  <ion-icon class="oh-passowrd-input__show-icon" title="Show Password" name="eye-outline"></ion-icon>
                  <ion-icon class="oh-passowrd-input__hide-icon d-none" title="Hide Password"
                    name="eye-off-outline"></ion-icon>
                </button>
              </div>
              {{form.password1.errors}}
            </div>
            <div class="oh-input-group">
              <label class="oh-label" for="confirmPassword">{% trans "Confirm Password" %}</label>
              <div class="oh-password-input-container">
                {{form.password2}}
                <button class="oh-btn oh-btn--transparent oh-password-input--toggle">
                  <ion-icon class="oh-passowrd-input__show-icon" title="Show Password" name="eye-outline"></ion-icon>
                  <ion-icon class="oh-passowrd-input__hide-icon d-none" title="Hide Password"
                    name="eye-off-outline"></ion-icon>
                </button>
              </div>
              {{form.password2.errors}}
            </div>
            <button href="#" class="oh-btn oh-onboarding-card__button mt-4 oh-btn--secondary oh-btn--shadow w-100 mb-4"
              role="button">
              {% trans "Next Step" %}
              <ion-icon class="ms-2" name="arrow-forward-outline"></ion-icon>
            </button>
          </form>
        </div>
      </div>
    </main>
  </div>
  <script src="{% static 'build/js/web.frontend.min.js' %}"></script>
  <script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
  <script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
  <script></script>
</body>

</html>
