Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GrabGrub
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matthew Dominic M. Dizon
GrabGrub
Commits
7b1deedd
Commit
7b1deedd
authored
May 27, 2021
by
Matthew Dizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
require user login before showing side nav
parent
e1d1efff
Pipeline
#1922
canceled with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
base.html
GrabGrub/Kiosk/templates/Kiosk/base.html
+5
-2
login.html
GrabGrub/Kiosk/templates/Kiosk/login.html
+1
-1
signup.html
GrabGrub/Kiosk/templates/Kiosk/signup.html
+1
-1
No files found.
GrabGrub/Kiosk/templates/Kiosk/base.html
View file @
7b1deedd
...
...
@@ -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 %}
...
...
GrabGrub/Kiosk/templates/Kiosk/login.html
View file @
7b1deedd
...
...
@@ -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"
>
...
...
GrabGrub/Kiosk/templates/Kiosk/signup.html
View file @
7b1deedd
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment