Search by employee and office in Django

I have implemented search query generation in my reports. Now you can click on the name of an employee or office and get a search result for the corresponding query.

To implement this functionality, I added a link tag to the template code:

<a href="https://reports.evgdev.com/showinfo/{{ user_id_template }}?q={{ infoopen.work_where|safe }}">{{ infoopen.work_where|linebreaks }}</a>
    <a href="https://reports.evgdev.com/showinfo/{{ user_id_template }}?q={{ infoopen.work_who|safe }}">{{ infoopen.work_who|linebreaks }}</a>

 

{{ user_id_template }} –┬áthis is a variable with which I pass the value of the current tab (specific user or all).

See also  ToDo list functionality for my Work Accounting Project
Author: admin

Leave a Reply

Your email address will not be published. Required fields are marked *