-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4c0dfa
commit cb328a9
Showing
2 changed files
with
38 additions
and
8 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
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,16 +1,43 @@ | ||
{% extends '_base.html' %} | ||
|
||
{% load static %} | ||
|
||
{% load crispy_forms_tags %} | ||
|
||
{% block page_title %}Login{% endblock %} | ||
|
||
{% block style %} | ||
<link rel="stylesheet" href="{% static 'css/login.css' %}"> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Login</h1> | ||
<form action="" method="post"> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
<button type="submit" class="btn btn-success">Login</button> | ||
</form> | ||
<br> | ||
<p><a href="{% url 'password_reset' %}">Forgot password?</a> | <a href="{% url 'signup' %}">Create an account?</a></p> | ||
<div class="d-flex justify-content-center mt-5" dir="rtl"> | ||
<div class="col-xl-3 col-lg-4 col-md-5 col-sm-5 col-xs-6 bg-white m-3 m-sm-5 border rounded px-4 pt-4 pb-3 shadow"> | ||
<form method="post"> | ||
<h1 class="text-center">ورود</h1> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
{# <div class="form-group">#} | ||
{# <label for="emailAddress" class="m-2">ایمیل:</label>#} | ||
{# <input type="email" class="form-control" id="emailAddress" placeholder="[email protected]">#} | ||
{# </div>#} | ||
{# <div class="form-group">#} | ||
{# <label for="password" class="m-2">رمز عبور:</label>#} | ||
{# <input type="password" class="form-control" id="password" placeholder="">#} | ||
{# </div>#} | ||
<div class="d-flex justify-content-between align-items-center"> | ||
<div class="mt-2"> | ||
<a class="text-decoration-none" href="{% url 'password_reset' %}">فراموشی رمز عبور</a> | ||
</div> | ||
</div> | ||
<button type="submit" class="btn btn-success mt-3 w-100">ورود</button> | ||
<div class="line-with-middle-sep"> | ||
<span> | ||
یا | ||
</span> | ||
</div> | ||
<a href="{% url 'signup' %}" class="btn btn-primary mt-2 mb-3 w-100">ثبت نام</a> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} |