-
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 #60 from Go-In/dev
Dev
- Loading branch information
Showing
16 changed files
with
129 additions
and
200 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 @@ | ||
def groups(request): | ||
groups = list(request.user.groups.values_list('name', flat=True)) | ||
return {'is_customer':'customer' in groups, 'is_store':'store' in groups} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 +1,11 @@ | ||
{% load staticfiles %} | ||
<div class="footer"> | ||
<div class="container"> | ||
<div class="footer-right"> | ||
<div class="nav-btn">contact us</div> | ||
</div> | ||
</div> | ||
</div> | ||
<img alt="ribbon" src="{% static 'images/black_ribbon_bottom_left.png' %}" class="black-ribbon stick-bottom stick-left"/> | ||
</body> | ||
</html> | ||
</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
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
<!-- <form action="" method="POST"> | ||
{% csrf_token %} | ||
<input type="text" name="username" /><br /> | ||
<input type="password" name="password" /> <br /> | ||
<input type="submit" value="Signin" /> | ||
</form> --> | ||
|
||
{% load staticfiles %} | ||
{% include 'components/header.html' %} | ||
<div class="full-container"> | ||
|
||
<div class="content row"> | ||
<div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-12 login-wrapper"> | ||
<div class="login"> | ||
<div class="login-header">LOGIN</div> | ||
<form action="" method="POST"> | ||
{% csrf_token %} | ||
<input type="text" class="form-control login-input" id="username" name="username" placeholder="username"> | ||
<input type="password" class="form-control login-input" id="password" name="password" placeholder="password"> | ||
<center> | ||
<button class="btn btn-gocoup login-btn">login</button> | ||
</form> | ||
<a href="{% url 'user:customer-register' %}" class="btn btn-gocoup signup-btn">register</a></br> | ||
<a href="#" style="font-size:12px;">Forget password?</a> | ||
</center> | ||
<br> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
{% include 'components/footer.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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.4 on 2017-09-29 14:21 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('usermanage', '0009_merge_20170928_1444'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='customer', | ||
name='tel', | ||
field=models.CharField(max_length=12, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='store', | ||
name='tel', | ||
field=models.CharField(max_length=12, null=True), | ||
), | ||
] |
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
Oops, something went wrong.