Skip to content

Commit

Permalink
navbar color changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Miltonbhowmick committed May 6, 2020
1 parent 1663792 commit 014e655
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 27 deletions.
Binary file modified accounts/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file modified accounts/__pycache__/views.cpython-36.pyc
Binary file not shown.
11 changes: 4 additions & 7 deletions accounts/templates/accounts/qrcodeattendance.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
{% block main-content %}

<div class="row">
<div class="col-md-4" style="text-align:center;">
<a class=" mainLink" href="{% url 'accounts:login' %}">Login</a>
<div class="col-md-6 my-2" style="text-align:center;">
<a class="mainLink ml-5 mr-5" href="{% url 'accounts:login' %}">Login</a>
</div>
<div class="col-md-4" style="text-align:center;">
<a class=" mainLink" href="{% url 'accounts:signup' %}" style="">Teacher-Sign Up</a>
</div>
<div class="col-md-4" style="text-align:center;">
<a href="{% url 'accounts:student_signup' %}"><span class=" mainLink">Student-SignUp</span></a>
<div class="col-md-6 my-2" style="text-align:center;">
<a class="mainLink ml-5 mr-5" href="{% url 'accounts:student_signup' %}"><span>Student-SignUp</span></a>
</div>
</div>
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion accounts/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<body>
<header>
<!-- Start Navbar and Intro -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top scrolling-navbar" id="navbar">
<nav class="navbar navbar-expand-lg fixed-top scrolling-navbar" id="navbar" style="background-color: #1D3557;">
<a class="navbar-brand" href="{% url 'accounts:qrcodeattendance' %}"><img class="logo" alt="QR Code Attendance" src="{% static 'images/qr code attendance logo white.png' %}"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>

Expand Down
1 change: 0 additions & 1 deletion accounts/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
path('qrcodeattendance/', views.qrcodeattendance, name='qrcodeattendance'),
path('qrcodeattendance/login/', views.login_views, name='login'),
path('qrcodeattendance/logout/', views.logout_views, name='logout'),
path('qrcodeattendance/signup/', views.register, name='signup'), # for teacher
path('qrcodeattendance/student_signup/', views.student_signup, name='student_signup'),
path('qrcodeattendance/admin_profile/',views.view_admin_profile, name='view_admin_profile'),
path('qrcodeattendance/profile/', views.view_profile, name='profile'), # for teacher
Expand Down
18 changes: 0 additions & 18 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,8 @@ def login_views(request):

def logout_views(request):
logout(request)

return redirect('accounts:qrcodeattendance')

def register(request):
if request.user.is_authenticated:
return redirect('accounts:profile')

if request.method == 'POST':
form = RegistrationForm(request.POST or None)
if form.is_valid():
user = form.deploy()
#login(request, user)
return redirect('accounts:login')
else:
pass
else:
form = RegistrationForm()
return render(request,'accounts/teacher_signup_form.html', {'form': form})


def student_signup(request):
if request.user.is_authenticated:
return redirect('accounts:profile')
Expand Down
Binary file modified db.sqlite3
Binary file not shown.

0 comments on commit 014e655

Please sign in to comment.