<!--
    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.client_name.label()}} {{form.client_name(class="form-control",
      placeholder="Client_name")}}
      <!-- <label for="grant_types">Select grant Type</label>
      <select name="grants">
        {% for grant in grants%}
        <option value="{{ grant_types}}" selected>{{ grant }}</option>
        {% endfor %}
      </select> -->
      {{form.grant_types.label()}} {{form.grant_types(class="form-control",
      placeholder="Grant_Types")}} {{form.response_types.label()}}
      {{form.response_types(class="form-control",
      placeholder="Response_Types")}} {{form.scope.label()}}
      {{form.scope(class="form-control", placeholder="Scope")}}
      <br />
      {{form.submit(class="btn btn-lg btn-primary btn-block" ,value="Create
      Oauth Credentials")}}
    </form>
  </div>
</body>
{% endblock %}
