<div class="row buttons-tabbed">
    <div class="btn-group dropdown pull-right">
        <button type="button" class="btn btn-primary" title="@Loc.Print">
            <i class="far fa-print print-loader-icon"></i><span class="visible-lg-inline visible-md-inline m-l-xs">@Loc.Print</span>
        </button>
        <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
            <li class="print-option">
                <a onclick="exportTimeRecordsReport('@Url.Action("PrintPDF", "TimeRecords")', true)"><i class="far fa-print"></i>&nbsp;&nbsp; @Loc.Attendance</a>
            </li>
            <li class="print-option">
                <a onclick="exportTimeRecordsReport('@Url.Action("PrintPDF", "TimeRecords")', false)"><i class="far fa-print"></i>&nbsp;&nbsp; @Loc.WorkingTimeRecords</a>
            </li>
        </ul>
    </div>

    <div class="btn-group dropdown pull-right">
        <button type="button" class="btn btn-primary" title="@Loc.Export">
            <i class="fa fa-file-excel"></i><span class="visible-lg-inline visible-md-inline m-l-xs">@Loc.Export</span>
        </button>
        <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
            <li class="print-option">
                <a onclick="exportTimeRecordsReport('@Url.Action("ExcelExportWorkingHours", "TimeRecords")', false)">&nbsp;&nbsp; @Loc.WorkingTimeRecords</a>
            </li>
             @if (!PantheonRA.BackOffice.CurrentUser.HasGranule(PantheonRA.WebApi.Contracts.Enums.Granules.WorkRosterGranule))
             {
                <li class="print-option">
                    <a onclick="exportTimeRecordsReport('@Url.Action("ExportToExcel", "TimeAttendance")', false)">&nbsp;&nbsp; @Loc.SalaryImportExcelFileName</a>
                </li>
             }
        </ul>
    </div>

    @if (!PantheonRA.BackOffice.CurrentUser.HasGranule(PantheonRA.WebApi.Contracts.Enums.Granules.WorkRosterGranule))
    {
        <div class="btn-group dropdown pull-right">
            <button type="button" class="btn btn-default btn-outline" title="@Loc.Wizards">
                <i class="fas fa-wand-magic"></i><span class="visible-lg-inline visible-md-inline m-l-xs">@Loc.Wizards</span>
            </button>
            <button type="button" class="btn btn-default btn-outline dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li>
                    <a onclick="openModal('newrecord-modal', false)">&nbsp;&nbsp; @Loc.AddOrDeleteWorkCommitment</a>
                </li>
                <li>
                    <a onclick="openModal('newrecord-modal', true)">&nbsp;&nbsp; @Loc.AddOrDeleteAbsence</a>
                </li>
            </ul>
        </div>
    }
</div>