-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from Django-Projects-Ls/refactor/better-templates
Refactor/better templates
- Loading branch information
Showing
5 changed files
with
30 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
{% load socialaccount %} | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Sign In</title> | ||
{% block title %} <title>Sign In</title> {% endblock %} | ||
</head> | ||
<body> | ||
<title>Sign In</title> | ||
|
||
<h1>Sign in</h1> | ||
|
||
<p>Still don't have an account, then please <a href="{{ signup_url }}">sign up</a></p> | ||
|
||
{% url 'account_login' as login_url %} | ||
|
||
<form method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<button type="submit">Login</button> | ||
</form> | ||
|
||
{% load socialaccount %} | ||
|
||
<a href="{% provider_login_url 'google'%}">Login with google</a> | ||
{% block content %} | ||
<h1>Sign in</h1> | ||
|
||
<p>Still don't have an account, then please <a href="{{ signup_url }}">sign up</a></p> | ||
|
||
{% include "partials/form_component.html" with value="Login" %} | ||
|
||
<a href="{% provider_login_url 'google'%}">Login with google</a> | ||
{% endblock %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Logout</title> | ||
</head> | ||
<body> | ||
{% extends 'account/login.html' %} | ||
|
||
{% block title %} <title>Logout</title> {% endblock %} | ||
|
||
{% block content %} | ||
<h1>Logout</h1> | ||
<p>Are you sure that you want to logout of <strong>{{ user.username }}</strong></p> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<button>Continue</button> | ||
</form> | ||
</body> | ||
</html> | ||
|
||
{% include "partials/form_component.html" with value="Continue" %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Sign in via google</title> | ||
</head> | ||
<body> | ||
{% extends 'account/login.html' %} | ||
|
||
{% block title %} <title>Sign in via google</title> {% endblock %} | ||
|
||
{% block content %} | ||
<h1>Sign via google</h1> | ||
<p>You area about to sign with a third-party environment</p> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<button>Continue</button> | ||
</form> | ||
</body> | ||
</html> | ||
<p>You are about to sign with a third-party environment</p> | ||
|
||
{% include "partials/form_component.html" with value="Continue" %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters