-
Notifications
You must be signed in to change notification settings - Fork 85
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
c4e7c38
commit 5f419c0
Showing
8 changed files
with
199 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DEBUG=True | ||
|
||
SECRET_KEY=<STRONG_KEY_HERE> |
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ env | |
/staticfiles/ | ||
|
||
#src | ||
*.sqlite* | ||
#*.sqlite* | ||
|
||
.env | ||
#.env | ||
node_modules |
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
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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{% extends 'layouts/base-fullscreen.html' %} | ||
{% load i18n static admin_material %} | ||
|
||
{% block content %} | ||
|
||
{% include 'includes/navigation-fullscreen.html' %} | ||
|
||
<main class="main-content mt-0"> | ||
<div class="page-header align-items-start min-vh-100" style="background-image: url('https://images.unsplash.com/photo-1497294815431-9365093b7331?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1950&q=80');"> | ||
<span class="mask bg-gradient-dark opacity-6"></span> | ||
<div class="container my-auto"> | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-8 col-12 mx-auto"> | ||
<div class="card z-index-0 fadeIn3 fadeInBottom"> | ||
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2"> | ||
<div class="bg-gradient-primary shadow-primary border-radius-lg py-3 pe-1"> | ||
<h4 class="text-white font-weight-bolder text-center mt-2 mb-0"> | ||
Sign IN | ||
</h4> | ||
<div class="row mt-3"> | ||
<p class="mb-0 text-white text-center"> | ||
{% if msg %} | ||
{{ msg | safe }} | ||
{% else %} | ||
<span>USER: test / Pass12__</span> | ||
<br /> | ||
<span>ADMIN: admin / Pass12__</span> | ||
{% endif %} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-body"> | ||
|
||
<form method="post" role="form" class="text-start" action="#"> | ||
|
||
{% csrf_token %} | ||
{% if form.non_field_errors %} | ||
{% for error in form.non_field_errors %} | ||
<span class="text-danger">{{ error }}</span> | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% for field in form %} | ||
<div class="input-group input-group-outline mb-3"> | ||
{{ field }} | ||
</div> | ||
{% endfor %} | ||
|
||
|
||
<p class="mt-3 text-sm"> | ||
<a href="{% url 'password_reset' %}" class="text-primary text-gradient font-weight-bold">Forgot Password?</a> | ||
</p> | ||
|
||
<div class="text-center"> | ||
<button type="submit" class="btn bg-gradient-primary w-100 my-0 mb-2">Sign in</button> | ||
</div> | ||
|
||
<p class="mt-4 text-sm text-center"> | ||
Don't have an account? | ||
<a href="{% url 'register' %}" class="text-primary text-gradient font-weight-bold">Sign UP</a> | ||
</p> | ||
|
||
</form> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% include 'includes/footer-fullscreen.html' %} | ||
</div> | ||
</main> | ||
|
||
|
||
{% endblock content %} |
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{% extends 'layouts/base-fullscreen.html' %} | ||
{% load i18n static admin_material %} | ||
|
||
{% block content %} | ||
|
||
{% include 'includes/navigation-fullscreen.html' %} | ||
|
||
<main class="main-content mt-0"> | ||
<section> | ||
<div class="page-header min-vh-100"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-6 d-lg-flex d-none h-100 my-auto pe-0 position-absolute top-0 start-0 text-center justify-content-center flex-column"> | ||
<div class="position-relative bg-gradient-primary h-100 m-3 px-7 border-radius-lg d-flex flex-column justify-content-center" style="background-image: url('{% static 'img/illustrations/illustration-signup.jpg' %}'); background-size: cover;"> | ||
</div> | ||
</div> | ||
<div class="col-xl-4 col-lg-5 col-md-7 d-flex flex-column ms-auto me-auto ms-lg-auto me-lg-5"> | ||
<div class="card card-plain"> | ||
<div class="card-header"> | ||
<h4 class="font-weight-bolder">Sign UP</h4> | ||
<p class="mb-0"> | ||
{% if msg %} | ||
<span class="text-danger">{{ msg | safe }}</span> | ||
{% else %} | ||
Enter your email and password to register | ||
{% endif %} | ||
</p> | ||
</div> | ||
|
||
{% if success %} | ||
<div class="card-body"> | ||
<div class="text-center"> | ||
<a href="{% url 'login' %}" | ||
class="btn btn-lg bg-gradient-primary btn-lg w-100 mt-4 mb-0">Sign IN</a> | ||
</div> | ||
</div> | ||
{% else %} | ||
<div class="card-body"> | ||
<form role="form" method="post" action=""> | ||
{% csrf_token %} | ||
{% for field in form %} | ||
<div class="input-group input-group-outline mb-3"> | ||
{{ field }} | ||
</div> | ||
<span class="text-danger">{{ field.errors }}</span> | ||
{% endfor %} | ||
<div class="text-center"> | ||
<button type="submit" name="register" | ||
class="btn btn-lg bg-gradient-primary btn-lg w-100 mt-4 mb-0">Sign Up</button> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="card-footer text-center pt-0 px-lg-2 px-1"> | ||
<p class="mb-2 text-sm mx-auto"> | ||
Already have an account? | ||
<a href="{% url 'login' %}" class="text-primary text-gradient font-weight-bold">Sign IN</a> | ||
</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</main> | ||
|
||
{% include 'includes/footer-fullscreen.html' %} | ||
|
||
{% endblock content %} |