@model PantheonRA.WebApi.Contracts.PaUserAuthentication
<div class="row buttons-tabbed">
    <a onclick="exportTimeRecordsReport('@Url.Action("PrintPDF", "TimeRecords")', false)"
       class="btn btn-primary pull-right"
       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>
    </a>

    <a onclick="exportTimeRecordsReport('@Url.Action("ExcelExportWorkingHours", "TimeRecords")', false)"
       class="btn btn-primary pull-right"
       title="@Loc.Export">
        <i class="fa fa-file-excel"></i><span class="visible-lg-inline visible-md-inline m-l-xs">@Loc.Export</span>
    </a>

    <div class="visible-lg-inline visible-md-inline">
        @if (Model.CanDelete && !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>@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>
        }

        <button type="button"
                onclick="openModal('new-request-modal')"
                class="btn btn-success btn-outline pull-right"
                title="@Loc.AddRequest">
            <i class="fas fa-bell-on"></i><span>@Loc.AddRequest</span>
        </button>

        <button type="button"
                onclick="showFilter()"
                class="btn btn-default btn-outline pull-right"
                title="@Loc.SearchEngine">
            <i class="far fa-search"></i><span>@Loc.SearchEngine</span>
        </button>
    </div>

    <div class="btn-group dropdown visible-sm-inline-block visible-xs-inline-block">
        <a role="button" data-toggle="dropdown" class="btn btn-default btn-outline">
            <i class="fas fa-bars"></i>
        </a>

        <ul class="dropdown-menu multi-level dropdown-position" role="menu" aria-labelledby="dropdownMenu">
            <li>
                <a role="button"
                   onclick="showFilter()"
                   title="@Loc.SearchEngine">
                    <i class="fas fa-search text-primary"></i>
                    <span>&nbsp;@Loc.SearchEngine</span>
                </a>
            </li>
            <li>
                <a role="button"
                    onclick="openModal('new-request-modal')"
                    title="@Loc.AddRequest">
                    <i class="fas fa-bell-on text-primary"></i>
                    <span>@Loc.AddRequest</span>
                </a>
            </li>
            <li class="dropdown-submenu">
                <a role="button"
                    title="@Loc.Wizards">
                    <i class="fas fa-wand-magic text-primary"></i>
                    <span class="m-r-lg">&nbsp;@Loc.Wizards</span>
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu" style="left: auto">
                    <li>
                        <a role="button" onclick="openModal('newrecord-modal', false)">@Loc.AddOrDeleteWorkCommitment</a>
                    </li>
                    <li>
                        <a role="button" onclick="openModal('newrecord-modal', true)">@Loc.AddOrDeleteAbsence</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>