-
-
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.
- Loading branch information
1 parent
b74a439
commit 61a2919
Showing
8 changed files
with
153 additions
and
69 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from .cart import Cart | ||
|
||
|
||
def cart(request): | ||
return { | ||
"cart": Cart(request) | ||
} |
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 +1,5 @@ | ||
from django.contrib import admin # noqa | ||
from django.contrib import admin | ||
from .models import Coupon | ||
|
||
|
||
admin.site.register(Coupon) |
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 |
---|---|---|
|
@@ -4,51 +4,56 @@ | |
{% block title %}{% endblock %} | ||
|
||
{% block content %} | ||
<!-- Login form --> | ||
<div class="modal modal-signin position-static d-block bg-white" tabindex="-1" role="dialog" id="modalSignin"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content rounded-5 shadow"> | ||
<div class="modal-header p-5 pb-4 border-bottom-0"> | ||
<!-- <h5 class="modal-title">Modal title</h5> --> | ||
<h2 class="fw-bold mb-0">Sign up for free</h2> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
|
||
<div class="modal-body p-5 pt-0"> | ||
<form class=""> | ||
<div class="form-floating mb-3"> | ||
<input type="email" class="form-control rounded-4" id="floatingInput" placeholder="[email protected]"> | ||
<label for="floatingInput"> | ||
<i class="bi bi-envelope-fill"></i> | ||
Email address | ||
</label> | ||
</div> | ||
<div class="form-floating mb-3"> | ||
<input type="password" class="form-control rounded-4" id="floatingPassword" placeholder="Password"> | ||
<label for="floatingPassword"> | ||
<i class="bi bi-key-fill"></i> | ||
Password | ||
</label> | ||
</div> | ||
<button class="w-100 mb-2 btn btn-lg rounded-4 btn-primary" type="submit">Sign up</button> | ||
<small class="text-muted">By clicking Sign up, you agree to the terms of use.</small> | ||
<hr class="my-4"> | ||
<h2 class="fs-5 fw-bold mb-3">Or use a third-party</h2> | ||
<button class="w-100 py-2 mb-2 btn btn-outline-dark rounded-4" type="submit"> | ||
<svg class="bi me-1" width="16" height="16"><use xlink:href="#twitter"></use></svg> | ||
Sign up with Twitter | ||
</button> | ||
<button class="w-100 py-2 mb-2 btn btn-outline-primary rounded-4" type="submit"> | ||
<svg class="bi me-1" width="16" height="16"><use xlink:href="#facebook"></use></svg> | ||
Sign up with Facebook | ||
</button> | ||
<button class="w-100 py-2 mb-2 btn btn-outline-secondary rounded-4" type="submit"> | ||
<svg class="bi me-1" width="16" height="16"><use xlink:href="#github"></use></svg> | ||
Sign up with GitHub | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- Login form --> | ||
<div class="modal modal-signin position-static d-block bg-white" tabindex="-1" role="dialog" id="modalSignin"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content rounded-5 shadow"> | ||
<div class="modal-header p-5 pb-4 border-bottom-0"> | ||
<!-- <h5 class="modal-title">Modal title</h5> --> | ||
<h2 class="fw-bold mb-0">Sign up for free</h2> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
|
||
<div class="modal-body p-5 pt-0"> | ||
<form class="{% url 'account:login' %}" method="post"> | ||
{% csrf_token %} | ||
|
||
<div class="form-floating mb-3"> | ||
{{ form.username }} | ||
<label for="floatingInput"> | ||
<i class="bi bi-envelope-fill"></i> | ||
Email address | ||
</label> | ||
</div> | ||
|
||
<div class="form-floating mb-3"> | ||
{{ form.password }} | ||
<label for="floatingPassword"> | ||
<i class="bi bi-key-fill"></i> | ||
Password | ||
</label> | ||
</div> | ||
|
||
<button class="w-100 mb-2 btn btn-lg rounded-4 btn-primary" type="submit">Sign up</button> | ||
<small class="text-muted">By clicking Sign up, you agree to the terms of use.</small> | ||
<hr class="my-4"> | ||
|
||
<h2 class="fs-5 fw-bold mb-3">Or use a third-party</h2> | ||
<button class="w-100 py-2 mb-2 btn btn-outline-dark rounded-4" type="submit"> | ||
<svg class="bi me-1" width="16" height="16"><use xlink:href="#twitter"></use></svg> | ||
Sign up with Twitter | ||
</button> | ||
<button class="w-100 py-2 mb-2 btn btn-outline-primary rounded-4" type="submit"> | ||
<svg class="bi me-1" width="16" height="16"><use xlink:href="#facebook"></use></svg> | ||
Sign up with Facebook | ||
</button> | ||
<button class="w-100 py-2 mb-2 btn btn-outline-secondary rounded-4" type="submit"> | ||
<svg class="bi me-1" width="16" height="16"><use xlink:href="#github"></use></svg> | ||
Sign up with GitHub | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,38 +16,50 @@ <h2 class="fw-bold mb-0">Sign up for free</h2> | |
</div> | ||
|
||
<div class="modal-body p-5 pt-0"> | ||
<form class=""> | ||
|
||
<form class="{% url 'account:register' %}" method="post"> | ||
{% csrf_token %} | ||
<div class="form-floating mb-3"> | ||
<input type="text" class="form-control rounded-4" id="floatingInput" placeholder="First name"> | ||
{{ form.first_name }} | ||
<!-- <input type="text" class="form-control rounded-4" id="floatingInput" placeholder="First name"> --> | ||
<label for="floatingInput">First Name</label> | ||
</div> | ||
<div class="form-floating mb-3"> | ||
<input type="text" class="form-control rounded-4" id="floatingInput" placeholder="Last name"> | ||
{{ form.last_name }} | ||
<!-- <input type="text" class="form-control rounded-4" id="floatingInput" placeholder="Last name"> --> | ||
<label for="floatingInput">Last Name</label> | ||
</div> | ||
|
||
<div class="form-floating mb-3"> | ||
<input type="text" class="form-control rounded-4" id="floatingInput" placeholder="Username"> | ||
{{ form.username }} | ||
<!-- <input type="text" class="form-control rounded-4" id="floatingInput" placeholder="Username"> --> | ||
<label for="floatingInput">Username</label> | ||
</div> | ||
|
||
<div class="form-floating mb-3"> | ||
<input type="email" class="form-control rounded-4" id="floatingInput" placeholder="[email protected]"> | ||
{{ form.email }} | ||
<!-- <input type="email" class="form-control rounded-4" id="floatingInput" placeholder="[email protected]"> --> | ||
<label for="floatingInput">Email address</label> | ||
</div> | ||
|
||
|
||
<div class="form-floating mb-3"> | ||
{{ form.phone_number }} | ||
<!-- <input type="email" class="form-control rounded-4" id="floatingInput" placeholder="[email protected]"> --> | ||
<label for="floatingInput">Phone Number</label> | ||
</div> | ||
|
||
<div class="form-floating mb-3"> | ||
<input type="password" class="form-control rounded-4" id="floatingPassword" placeholder="Password"> | ||
{{ form.password }} | ||
<!-- <input type="password" class="form-control rounded-4" id="floatingPassword" placeholder="Password"> --> | ||
<label for="floatingPassword">Password</label> | ||
</div> | ||
|
||
<div class="form-floating mb-3"> | ||
<input type="password" class="form-control rounded-4" id="floatingPassword" placeholder="Password"> | ||
{{ form.password_confirm }} | ||
<!-- <input type="password" class="form-control rounded-4" id="floatingPassword" placeholder="Password"> --> | ||
<label for="floatingPassword">Password confirm</label> | ||
</div> | ||
|
||
<button class="w-100 mb-2 btn btn-lg rounded-4 btn-primary" type="submit">Sign up</button> | ||
<button class="w-100 mb-2 btn btn-lg rounded-4 btn-primary" type="submit">Sign In</button> | ||
<small class="text-muted">By clicking Sign up, you agree to the terms of use.</small> | ||
|
||
<hr class="my-4"> | ||
|
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