Hi,
In my django application,I am creating new report using django session,and
my application contain 3 tabs namely Reports,Search and New Report.Tab
highlight says that the application is in which page.If user clicks New
report,the New report tab will be highlighted.
User can view all the reports by clicking the report link from Report tab.
If the user clicks any one of the report namely "report id 5"in Report
tab,that will open the report under New report Tab,so the New report menu
gets highlighted.But i want it to not highlight because New report Tab is
for creating only new report,while seeing the existing report i should not
highlight the New report Tab.How to do it using django.
Now it is done in this way.
views.py
def method(request):
Some code
return render(request, sometemplate.html',
{'
'newreport_menu': True,
})
In menu tab,i validated like this
<li {% if newreport_menu %}class="current"{% endif %}><a href="{% url
incident.views.new_report %}">New Report</a></li>
Now "New Report" menu is always gets highlighted for creating new report
and if user click the existing report from Report Tab.But it should not
highlight if the user clicks the existing report.
Need some tips how to do.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.