<commit_before>{% extends "base.html" %}
{% load i18n %}

{% block page_title %} | {% trans "Register" %}{% endblock %}

{% block search %}
<!-- hide search options on the registration page -->
{% endblock search %}

{% block subhead %}
<!-- hide search results on the registration page -->
{% endblock subhead %}


{% block content %}

<div class="content login-signup">
  <div class="well login-signup-panel">
    <form>
      <fieldset>
        <!-- TODO: This photo field needs to be added to a subclassed form -->
        <!--
        <label>Profile Photo</label>
        <input type="file" class="profile-photo-upload"><br><br>
        -->
        {% csrf_token %}
        {{ form.as_p }}
        <button type="submit" class="btn btn-large input-block-level btn-primary" value="{% trans 'Submit' %}" >{% trans "Submit" %}</button>
      </fieldset>
    </form>
  </div>
  <div class="well login-signup-panel signup-option">
    <p>{% trans "Already have an account?" %} <a href="{% url 'auth_login' %}" class="btn">{% trans "Log in" %}</a></p>
  </div>
</div>

{% endblock %}

{% block scripts %}
<script>
(function(require) {
    // TODO: Remove this when the login form is subclassed
    var $ = require('jquery');<commit_msg>Show error on duplicate registration. Fixes #150.<commit_after>{% extends "base.html" %}
{% load i18n %}

{% block page_title %} | {% trans "Register" %}{% endblock %}

{% block search %}
<!-- hide search options on the registration page -->
{% endblock search %}

{% block subhead %}
<!-- hide search results on the registration page -->
{% endblock subhead %}


{% block content %}

<div class="content login-signup">
  <div class="well login-signup-panel">
    <form method="POST">
      <fieldset>
        <!-- TODO: This photo field needs to be added to a subclassed form -->
        <!--
        <label>Profile Photo</label>
        <input type="file" class="profile-photo-upload"><br><br>
        -->
        {% csrf_token %}
        {{ form.as_p }}
        <button type="submit" class="btn btn-large input-block-level btn-primary" value="{% trans 'Submit' %}" >{% trans "Submit" %}</button>
      </fieldset>
    </form>
  </div>
  <div class="well login-signup-panel signup-option">
    <p>{% trans "Already have an account?" %} <a href="{% url 'auth_login' %}" class="btn">{% trans "Log in" %}</a></p>
  </div>
</div>

{% endblock %}

{% block scripts %}
<script>
(function(require) {
    // TODO: Remove this when the login form is subclassed
    var $ = require('jquery');
{'fraction_non_alphanumeric': 0.18903891977760126, 'fraction_numerical': 0.0027799841143764893, 'mean_word_length': 3.023961661341853, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '138300', 'n_tokens_mistral': 835, 'n_tokens_neox': 768, 'n_words': 232}