Commit 7b1deedd authored by Matthew Dizon's avatar Matthew Dizon

require user login before showing side nav

parent e1d1efff
Pipeline #1922 canceled with stages
...@@ -28,10 +28,12 @@ ...@@ -28,10 +28,12 @@
</ul> </ul>
</nav> </nav>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class ="col-2 justify-content-left">
{% if request.path != "/" and request.path != "/signup" %}
<div class ="col-2 justify-content-left">
<ul class="nav flex-column"> <ul class="nav flex-column">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/home"> View Orders </a> <a class="nav-link" href="/home"> View Orders </a>
...@@ -43,8 +45,9 @@ ...@@ -43,8 +45,9 @@
<a class="nav-link" href="/customers"> View Customers </a> <a class="nav-link" href="/customers"> View Customers </a>
</li> </li>
</ul> </ul>
</div> </div>
{% endif %}
<div class="col-10 justify-content-center mb-5"> <div class="col-10 justify-content-center mb-5">
{% block content %} {% block content %}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{% load static %} {% load static %}
{% block content %} {% block content %}
<div class="w-50" style="margin-left: 24%"> <div class="w-50" style="margin-left: 35%">
<form class="form-signin" method="POST" action="{% url 'login' %}"> <form class="form-signin" method="POST" action="{% url 'login' %}">
{% csrf_token %} {% csrf_token %}
<div class="text-center mb-4"> <div class="text-center mb-4">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{% load static %} {% load static %}
{% block content %} {% block content %}
<div class="w-50" style="margin-left: 24%"> <div class="w-50" style="margin-left: 35%">
<form class="form-signin" method="POST" action="{% url 'signup' %}"> <form class="form-signin" method="POST" action="{% url 'signup' %}">
{% csrf_token %} {% csrf_token %}
<div class="text-center mb-4"> <div class="text-center mb-4">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment