mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-20 08:47:43 +02:00
li links activated
This commit is contained in:
+2
-1
@@ -2,4 +2,5 @@ from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
|
||||
def index(request):
|
||||
return render(request, 'dashboard/index.html')
|
||||
context = {"dashboard_data_active": "true"}
|
||||
return render(request, 'dashboard/index.html', context)
|
||||
|
||||
+4
-2
@@ -9,10 +9,12 @@ def index(request):
|
||||
return render(request, 'target/index.html')
|
||||
|
||||
def add_target_form(request):
|
||||
return render(request, 'target/add.html')
|
||||
context = {"add_target_li": "active", "target_data_active": "true"}
|
||||
return render(request, 'target/add.html', context)
|
||||
|
||||
def list_target(request):
|
||||
return render(request, 'target/list.html')
|
||||
context = {"list_target_li": "active", "target_data_active": "true"}
|
||||
return render(request, 'target/list.html', context)
|
||||
|
||||
def add_target_db(request):
|
||||
if request.method == "POST":
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
<ul class="list-unstyled menu-categories" id="accordionExample">
|
||||
<li class="menu">
|
||||
<a href="{% url 'dashboardIndex' %}" aria-expanded="false" class="dropdown-toggle" data-active="true">
|
||||
<div class="">
|
||||
<a href="{% url 'dashboardIndex' %}" aria-expanded="false" class="dropdown-toggle" data-active="{{dashboard_data_active}}">
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
||||
<span> Dashboard</span>
|
||||
</div>
|
||||
@@ -15,7 +15,7 @@
|
||||
</li>
|
||||
|
||||
<li class="menu">
|
||||
<a href="#" class="dropdown-toggle">
|
||||
<a href="#" class="dropdown-toggle" data-active="{{target_data_active}}"">
|
||||
<div class="">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu"><rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line></svg>
|
||||
<span>Targets</span>
|
||||
@@ -25,12 +25,12 @@
|
||||
</div>
|
||||
</a>
|
||||
<ul class="submenu list-unstyled collapse show" id="app" data-parent="#accordionExample" style="">
|
||||
<li>
|
||||
<li class="{{ add_target_li }}">
|
||||
<a href="{% url 'add_target_form' %}"> Add Target </a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="submenu list-unstyled collapse show" id="app" data-parent="#accordionExample" style="">
|
||||
<li class=''>
|
||||
<li class="{{ list_target_li }}">
|
||||
<a href="{% url 'list_target' %}"> List Targets </a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user