{% extends 'att/report/base.html' %}
{% load i18n %}
{% block opts_modify %}
        $("#{{ model_name }}_search_employee").css("display","none");
    var userCols = [
        {field:'emp_code', width:120, title: "{% trans 'report_column_empCode' %}", sort:true}
        ,{field:'first_name', title: "{% trans 'report_column_firstName' %}"}
        ,{field:'last_name', title: "{% trans 'report_column_lastName' %}", }
        ,{field:'nick_name', title: "{% trans 'report_column_nickName' %}",  }
        ,{field:'birthday', width:140, title: "{% trans 'report_column_birthday' %}",  }
        ,{field:'dept_code', title: "{% trans 'report_column_departmentCode' %}", }
        ,{field:'dept_name', width:140, title: "{% trans 'report_column_departmentName' %}"}
    ];
    var leaveCols = [];
    {% for c in category %}
      leaveCols.push({field: 'leave_'+"{{ c.id }}", title: "{{ c.category_name }}"})
    {% endfor %}
    _cols = userCols.concat(leaveCols);
    $.extend(opts, {
        cols: [_cols]
        ,method: "get"
        ,url: "/att/api/empBirthdayReport/"
    });
{% endblock %}
