Skip to content

Commit 99f6b28

Browse files
authored
Merge pull request #24 from Xpirix/fix_google_sign_up
Review google sign up page
2 parents 482a09c + 89f1d21 commit 99f6b28

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

django_project/core/base_templates/socialaccount/connections.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "base_with_sidebar.html" %}
1+
{% extends "base.html" %}
22

33
{% load i18n %}
44
{% load account socialaccount %}
Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,47 @@
1-
{% extends "base_with_sidebar.html" %}
1+
{% extends "base.html" %}
22

33
{% load i18n %}
44
{% load account socialaccount %}
5+
{% load static %}
56

67
{% block title %}Sign Up{% endblock %}
78

8-
{% block container %}
9-
<div class="content">
10-
{% block content %}
9+
{% block pagetitle %}
10+
<section class="hero is-dark is-medium has-bg-img" style="background: url({% static "images/hegobg1.webp" %});
11+
background-position: 50%;
12+
background-size: cover;">
13+
<div class="hero-body" style="height: 100dvh;">
14+
<div class="columns is-vcentered is-centered">
15+
<div class="column is-4 p-6 login-container">
16+
<div class="has-text-centered">
17+
<h3 class="title">{% trans "Sign Up" %}</h3>
18+
<hr class="login-hr" />
19+
<p class="subtitle">
20+
{% trans "Create a new account by filling in the information below." %}
21+
</p>
1122

12-
{% csrf_token %}
13-
<div class="container">
23+
<form class="signup" id="signup_form" method="POST" action="{% url 'socialaccount_signup' %}">
24+
{% csrf_token %}
25+
{% include "account/form_snippet.html" with form=form %}
1426

15-
<div class="custom-form-container">
16-
<h1>{% trans "Sign Up" %}</h1>
17-
<form class="signup" id="signup_form" method="post" action="{% url 'socialaccount_signup' %}">{% csrf_token %}
18-
{% if form.non_field_errors %}
19-
<div class="alert alert-warning">
20-
{% for error in form.non_field_errors %}
21-
<p>{{ error }}</p>
22-
{% endfor %}
23-
</div>
24-
{% endif %}
25-
{{ form.as_p }}
2627
{% if redirect_field_value %}
2728
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
2829
{% endif %}
29-
<button class="login custom-form-submit" type="submit">{% trans "Sign Up" %}</button>
30+
<button class="button is-success is-medium is-fullwidth mt-5 login custom-form-submit" type="submit">
31+
<span>{% trans "Sign Up" %}</span>
32+
<span class="icon">
33+
<i class="fa fa-user-plus" aria-hidden="true"></i>
34+
</span>
35+
</button>
3036
</form>
31-
<div class="login-help">
32-
<a href="{% url 'account_login' %}">{% trans "Log In" %}</a> -
33-
<a href="{% url 'account_reset_password' %}">{% trans "Forgot Password" %}</a>
34-
</div>
37+
38+
<p class="login-help">
39+
<a href="{% url 'account_login' %}" class="has-text-success">{% trans "Log In" %}</a> -
40+
<a href="{% url 'account_reset_password' %}" class="has-text-success">{% trans "Forgot Password" %}</a>
41+
</p>
3542
</div>
36-
</div> <!-- /container -->
3743
</div>
38-
{% endblock %}
39-
{% endblock %}
44+
</div>
45+
</div>
46+
</section>
47+
{% endblock %}

0 commit comments

Comments
 (0)