Skip to content

Commit 20cb7c1

Browse files
make mess card viewable (#131)
1 parent 6c97033 commit 20cb7c1

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

templates/base.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
{% url 'cafeteria' as cafe_url %}
3232
{% url 'contact' as contact_url %}
3333
{% url 'SDC' as SDC_url %}
34+
{% url 'qrscan' as qrscan_url %}
3435
<div class="logo bg-white py-2 px-0 mx-md-3 mx-0 container-md">
3536
<a href="https://www.iiti.ac.in/" target="_blank" class="row text-decoration-none header mx-0 flex justify-content-center">
3637
<img src="{% static '../static/images/Indian_Institute_of_Technology,_Indore_Logo.png' %}" alt="" height="80px" width="100px" class="col-lg-1 col-2">
@@ -68,9 +69,9 @@
6869
<li class="nav-item">
6970
<a class="nav-link {% if request.path == contact_url %} active {%endif%}" href="/contact">Contact</a>
7071
</li>
71-
<li class="nav-item">
72+
<!-- <li class="nav-item">
7273
<a class="nav-link {% if request.path == SDC_url %} active {%endif%}" href="/sdc">SDC</a>
73-
</li>
74+
</li> -->
7475
{% if user.is_authenticated %}
7576
{% if user.is_staff%}
7677
<li class="nav-item dropdown">
@@ -85,14 +86,16 @@
8586
</ul>
8687
</li>
8788
{% else %}
89+
<li class="nav-item">
90+
<a class="nav-link {% if request.path == SDC_url %} active {%endif%}" href="/qrscan/">Mess Card</a>
91+
</li>
8892
<li class="nav-item dropdown">
8993
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown"
9094
aria-expanded="false">
9195
hello, {{user.first_name}}
9296
</a>
9397
<ul class="dropdown-menu me-5" aria-labelledby="navbarDropdown">
9498
<li><a class="dropdown-item" href="/profile/" style="color:rgb(18, 37, 106) ; font-weight: bold; ">Profile</a></li>
95-
<!-- <li><a class="dropdown-item" href="/qrscan/" style="color:rgb(18, 37, 106) ; font-weight: bold; ">Mess Card</a></li> -->
9699
<li><a class="dropdown-item" href="/accounts/logout/" style="color:rgb(18, 37, 106) ; font-weight: bold; ">Logout</a></li>
97100
</ul>
98101
</li>

templates/profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ <h6 class="card-subtitle mt-2">{{ student.name }}</h6>
2525
<span class="card-text">Roll Number: {{ student.roll_no }}</span><br>
2626
<span class="card-text">Email: {{ user.email }}</span><br>
2727
<span class="card-text">Department: {{ student.department }}</span><br>
28+
<a href="/qrscan/"><button class="btn btn-primary">View Mess Card</button></a>
2829
<hr>
2930
{% if allocation_info|length > 0 %}
3031
<h5>Your Allocation Details:</h5>
@@ -40,7 +41,6 @@ <h6>{{ key }}</h6>
4041
</div>
4142
</div>
4243
{% endfor %}
43-
<!-- <a href="/qrscan/"><button class="btn btn-primary">View Mess Card</button></a> -->
4444
{% else %}
4545
<h6>You will be able to see your allocated caterer after the allocation process is completed </h6>
4646
{% endif %}

0 commit comments

Comments
 (0)