Merge pull request 'Broken CSS register page' (#61) from html-refacto into main

Reviewed-on: #61
This commit is contained in:
Starthur 2022-05-28 12:05:24 +02:00
commit a1ec3e5f20
1 changed files with 35 additions and 37 deletions

View File

@ -2,42 +2,40 @@
{% block content %} {% block content %}
{% load i18n %} {% load i18n %}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-9"> <div class="col-sm-12 col-md-9">
<div class="ctf-block"> <div class="ctf-block">
<div class="ctf-head"> <div class="ctf-head">
<h3>Register</h3> <h3>Register</h3>
</div> </div>
<div class="ctf-body sign-body">
<div class="ctf-body sign-body"> <div class="col-sm-8 col-md-6 mx-auto">
<div class="col-sm-8 col-md-6 mx-auto"> {% if registered %}
{% if registered %} <h1>{% trans "Welcome !" %}</h1>
<h1>{% trans "Welcome !" %}</h1> <span class="message success-msg">{% trans "Your account has been created." %}</span>
<span class="message success-msg">{% trans "Your account has been created." %}</span> {% else %}
{% else %} {% if registered_failed %}
{% if registered_failed %} <span class="message error-msg">{{ registered_failed }}</span>
<span class="message error-msg">{{ registered_failed }}</span> {% endif %}
{% endif %} <form enctype="multipart/form-data" method="POST">
<form enctype="multipart/form-data" method="POST"> {% csrf_token %}
{% csrf_token %} <div class="form-group">
<div class="form-group"> <input class="form-control" type="text" name="username" placeholder="{% trans "Username" %} *" maxlength="150" required="" id="id_username" value="{{ old_username }}"></br>
<input class="form-control" type="text" name="username" placeholder="{% trans "Username" %} *" maxlength="150" required="" id="id_username" value="{{ old_username }}"></br> <input class="form-control" type="password" name="password" placeholder="{% trans "Password" %} *" required="" id="id_password"></br>
<input class="form-control" type="password" name="password" placeholder="{% trans "Password" %} *" required="" id="id_password"></br> <input class="form-control" type="email" name="email" placeholder="pleasedontgivemy@private.infos*" required="" maxlength="254" id="id_email" value="{{ old_email }}"></br>
<input class="form-control" type="email" name="email" placeholder="pleasedontgivemy@private.infos*" required="" maxlength="254" id="id_email" value="{{ old_email }}"></br> <input class="form-control" type="url" name="portfolio_site" placeholder="{% trans "Personal website" %}"maxlength="200" id="id_portfolio_site" value="{{ old_website }}"></br>
<input class="form-control" type="url" name="portfolio_site" placeholder="{% trans "Personal website" %}"maxlength="200" id="id_portfolio_site" value="{{ old_website }}"></br> <input type="submit" name="" class="form-control" value="{% trans "Register" %}">
<input type="submit" name="" class="form-control" value="{% trans "Register" %}"> </div>
</div> </form>
</form> {% endif %}
{% endif %} </div>
</div> </div>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-3 right-sidebar">
<div class="col-sm-12 col-md-3 right-sidebar"> <ul class="list-group">
<ul class="list-group"> <a href="/accounts/signup" class="list-group-item">{% trans "Sign up" %}</a>
<a href="/accounts/signup" class="list-group-item">{% trans "Sign up" %}</a> <a href="/accounts/signin" class="list-group-item">{% trans "Login" %}</a>
<a href="/accounts/signin" class="list-group-item">{% trans "Login" %}</a> </ul>
</ul> </div>
</div>
</div> </div>
{% endblock %} {% endblock %}