@if (!PantheonRA.BackOffice.CurrentUser.HasGranules() && PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CODELISTS))
{
    <li data-list-item-id="CodeList"
        class="dropdown @Html.IsSelected("Index", "Subjects") @Html.IsSelected("Create", "Subjects") @Html.IsSelected("Edit", "Subjects")
                    @Html.IsSelected("ImportSubjects", "Subjects") @Html.IsSelected("Index", "Products") @Html.IsSelected("Create", "Products")
                    @Html.IsSelected("Edit", "Products") @Html.IsSelected("ImportProducts", "Products") @Html.IsSelected("Index", "ProductPrimaryClassif")
                    @Html.IsSelected("Create", "ProductPrimaryClassif") @Html.IsSelected("Edit", "ProductPrimaryClassif") @Html.IsSelected("ImportProductContractPrices", "Products")
                    @Html.IsSelected("Index", "ProductSecondaryClassif") @Html.IsSelected("Create", "ProductSecondaryClassif")
                    @Html.IsSelected("Edit", "ProductSecondaryClassif") @Html.IsSelected("Index", "ProductTypes") @Html.IsSelected("Create", "ProductTypes")
                    @Html.IsSelected("Edit", "ProductTypes") @Html.IsSelected("Index", "MeasurementUnits") @Html.IsSelected("Create", "MeasurementUnits")
                    @Html.IsSelected("Edit", "MeasurementUnits") @Html.IsSelected("Index", "Taxes") @Html.IsSelected("Create", "Taxes") @Html.IsSelected("Edit", "Taxes") 
                    @Html.IsSelected("Index", "PaymentTypes") @Html.IsSelected("Create", "PaymentTypes") @Html.IsSelected("Edit", "PaymentTypes")
                    @Html.IsSelected("Index", "DocumentText") @Html.IsSelected("Create", "DocumentText") @Html.IsSelected("Edit", "DocumentText")
                    @Html.IsSelected("Index", "CustTariff") @Html.IsSelected("Create", "CustTariff") @Html.IsSelected("Edit", "CustTariff")
                    @Html.IsSelected("Index", "Post") @Html.IsSelected("Create", "Post") @Html.IsSelected("Edit", "Post")
                    @Html.IsSelected("Index", "Jobs") @Html.IsSelected("Create", "Jobs") @Html.IsSelected("Edit", "Jobs")
                    @Html.IsSelected("Index", "FixedAssets") @Html.IsSelected("Create", "FixedAssets") @Html.IsSelected("Edit", "FixedAssets")
                    @Html.IsSelected("Index", "DailyWages") @Html.IsSelected("Create", "DailyWages") @Html.IsSelected("Edit", "DailyWages")">
        <a href="@Url.Action("Index", "Subjects")">
            <i class="fas fa-list"></i> <span class="nav-label">@Loc.MasterDataNavMenu</span>
        </a>
        <ul class="dropdown-menu dropdown-menu-right">
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CODELISTS_SUBJECTS))
            {
                <li><a href="@Url.Action("Index", "Subjects")">@Loc.Partners.SetMenuNameLength()</a></li>
            }
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CODELISTS_ARTICLES))
            {
                <li><a href="@Url.Action("Index", "Products")">@Loc.Products.SetMenuNameLength()</a></li>
            }
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CODELISTS_TAXES))
            {
                <li><a href="@Url.Action("Index", "Taxes")">@Loc.TaxRates.SetMenuNameLength()</a></li>
            }
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CODELISTS_PAYMENTMETHODS))
            {
                <li><a href="@Url.Action("Index", "PaymentTypes")">@Loc.PaymentTypes.SetMenuNameLength()</a></li>
            }
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CODELISTS_DOCUMENTTEXTS))
            {
                <li><a href="@Url.Action("Index", "DocumentText")">@Loc.Texts.SetMenuNameLength()</a></li>
            }
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PA_CONTENT))
            {
                <li><a href="@Url.Action("Index", "Post")">@Loc.ZipCodes.SetMenuNameLength()</a></li>
            }
            <li><a href="@Url.Action("Index", "Jobs")">@Loc.Employees.SetMenuNameLength()</a></li>

            <li><a href="@Url.Action("Index", "FixedAssets")">@Loc.FixedAssets.SetMenuNameLength()</a></li>
        </ul>
    </li>
}