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 @@
</ul>
</nav>
<div class="container-fluid">
<div class="row">
{% if request.path != "/" and request.path != "/signup" %}
<div class ="col-2 justify-content-left">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" href="/home"> View Orders </a>
......@@ -43,8 +45,9 @@
<a class="nav-link" href="/customers"> View Customers </a>
</li>
</ul>
</div>
{% endif %}
<div class="col-10 justify-content-center mb-5">
{% block content %}
......
......@@ -2,7 +2,7 @@
{% load static %}
{% 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' %}">
{% csrf_token %}
<div class="text-center mb-4">
......
......@@ -2,7 +2,7 @@
{% load static %}
{% 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' %}">
{% csrf_token %}
<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