<!--
    OpenCDE - OpenCDE Python implementation
    Copyright (C) 2021 Prabhat Singh <singh01prabhat@gmail.com>

    This file is part of OpenCDE.

    OpenCDE is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenCDE is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with OpenCDE.  If not, see <http://www.gnu.org/licenses/>.
-->
{%extends 'base.html' %} {%block title %} {% endblock%} {%block content%}
<body class="text-center">
  <div class="container">
    <form method="post" class="form-register" style="color: black">
      {{form.hidden_tag()}}
      <h1 class="h3 mb-3 font-weight-normal font-monospace text-center">
        Register
      </h1>
      {{form.username.label()}} {{form.username(class="form-control"
      ,placeholder="Username")}} {{form.email_address.label()}}
      {{form.email_address(class="form-control" ,placeholder="Email Address")}}
      {{form.password1.label()}}
      {{form.password1(class="form-control",placeholder="Password")}}
      {{form.password2.label()}} {{form.password2(class="form-control"
      ,placeholder="Confirm Password")}}
      <br />
      <div class="checkbox mb-3">
        <h6>Already have an account?</h6>
        <a
          class="btn btn-sm btn-secondary"
          href="{{ url_for('foundation_obj.login_page') }}"
          >Login</a
        >
      </div>
      {{form.submit(class="btn btn-lg btn-primary btn-block"
      ,value="Register")}}
    </form>
  </div>
</body>
{% endblock %}
