Created
March 15, 2020 10:16
-
-
Save LouisdeBruijn/a2784497b6c216a6a730a6a4b7e15a21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="" id="modal-form"> | |
| <h2>Login</h2> | |
| <form method="POST" class="mx-auto" action="{% url 'login' %} "> | |
| {% csrf_token %} | |
| {% for field in form %} | |
| <div class="form-group"> | |
| {{ field }} | |
| {% if field.help_text %} | |
| <small class="form-text text-muted">{{ field.help_text|safe }}</small> | |
| {% endif %} | |
| <small class="form-text">{{ field.errors }}</small> | |
| </div> | |
| {% endfor %} | |
| {{ form.non_field_errors }} | |
| <div class="g-recaptcha" data-sitekey="<your_site_key>"></div> | |
| <button type="submit" class="btn btn-primary">Submit</button> | |
| </form> | |
| </div> | |
| {% block scripts %} | |
| <script src='https://www.google.com/recaptcha/api.js'></script> | |
| {% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment