@using PantheonRA.BackOffice.Models;

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel {
    Tabs = new List<NavigationtabViewModel>
    {
        new NavigationtabViewModel(Loc.NewPriceChange, Url.Action("Create", "PriceChange"),
            Html.IsActive("Create", "PriceChange") || Html.IsActive("Edit", "PriceChange"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRICE_CHANGE)),
        new NavigationtabViewModel(Loc.PriceChangeList, Url.Action("Index", "PriceChange"),
            Html.IsActive("Index", "PriceChange"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRICE_CHANGE))
    }
})
