Skip to content

Commit

Permalink
reformatted registration page
Browse files Browse the repository at this point in the history
  • Loading branch information
Baguage committed Feb 24, 2018
1 parent dcaad81 commit a0566e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion website/templates/headers/header_cloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<li> <a href="/admin/"> Admin panel </a> </li>
{% endif %}
{% if not user.is_authenticated %}
<li class="dropdown"><a href="https://www.vecnet.org/index.php/contact-us">Sign up</a></li>
<li class="dropdown"><a href="{% url 'registration_register' %}">Sign up</a></li>
{% endif %}
{% block navbar_inner_right_post %}{% endblock %}

Expand Down
23 changes: 17 additions & 6 deletions website/templates/registration/registration_form.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
{% extends "base.html" %}
{% load i18n %}
{% load i18n bootstrap3 %}

{% block main_content %}
<form method="post" action=".">
{% csrf_token %}
{{ form.as_p }}
{#<form method="post" action=".">#}
{# {% csrf_token %}#}
{# {{ form.as_p }}#}
{##}
{# <input type="submit" value="{% trans 'Submit' %}" />#}
{#</form>#}
<div class="container">
<div class="row">
{% bootstrap_form form %}
<button class="btn btn-lg btn-primary btn-block" type="submit">Create new account</button>
<div class="password-reset-link">
<a href="{% url 'password_reset' %}">{% trans 'Forgotten your password or username?' %}</a>
</div>

<input type="submit" value="{% trans 'Submit' %}" />
</form>
</div>

</div>
{% endblock %}

0 comments on commit a0566e6

Please sign in to comment.