{% extends "registration/registration_base.html" %} {% load i18n %} {% load ndf_tags %} {% block title %}{% trans "Register for an account" %}{% endblock %} {% block style %} {{block.super}} th { text-align:left; } table td { padding:0.5em; } table ul { color:#ff3232; } label { font-size: 15px; } .text-center { text-align: center; } small.all-error { font-size: 16px; } /* Setting css-properties for small.error */ small.error { padding: 0 0 0 0.5rem !important; margin-top: 1rem !important; position: relative !important; width: 95%; } {% endblock %} {% block meta_content %}

{% trans "Register" %}

As a registered user you can: {% endblock meta_content %} {% block body_content %} {% get_site_registration_variable_visibility as site_registration_variable_visibility %}
{% if form.errors %}
{{form.errors}}
{% endif %}
{% csrf_token %}
{{form.email}}
{{form.username}}
{{form.password1}} {% trans "NOTE: " %}
  • {% trans "Password must contain atleast 8 characters," %}
  • {% trans "One uppercase letter, and" %}
  • {% trans "One numeral" %}
{{form.password2}}
{% if site_registration_variable_visibility.AUTHOR_AGENCY_TYPE %}
{% get_author_agency_types as agency_types %}
{% endif %} {% if site_registration_variable_visibility.AFFILIATION %}
{% endif %}
Please accept terms & conditions.

{% endblock %} {% block document_ready %} {{block.super}} $("input[id='id_email'], input[id='id_username'], input[id='id_password1'], input[id='id_password2'], select[id='id_agency_type']").each(function(){ if (this.id == "id_email") { $(this).prop("type", "email"); } if(this.id == "id_username") { $(this).attr("pattern", "^[a-z](([\._\-][a-z0-9])|[a-z0-9])*[a-z0-9]$"); } $(this).css("width", "95%"); $(this).attr("required", ""); $(this).css("float", "left"); if(this.name == 'username') { $(this).after("Username should start with letters and can have digits and - / . / _ / Lower case letters only"); } else{ $(this).after("Please fill valid "+this.name+""); } $(this).after("*"); }); $("select[id='id_agency_type'], input[id='id_affiliation']").each(function(){ $(this).css("width", "95%"); }); {% endblock %}