{% load i18n %} {% load basefilters %} {% with dates=instance.month_days %} {% if perms.attendance.view_attendance or request.user|is_reportingmanager %} {% else %} {% endif %} {% if perms.attendance.view_attendance or request.user|is_reportingmanager %} {% else %} {% endif %} {% endwith %}