diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewStart.cshtml b/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewStart.cshtml index 2de62418c0..f4d75cd962 100644 --- a/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewStart.cshtml +++ b/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewStart.cshtml @@ -1,3 +1,3 @@ @{ - Layout = "~/Views/Shared/_Layout.cshtml"; + Layout = "~/Views/Shared/_AppLayout.cshtml"; } diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/Components/AbpMenu/Default.cshtml b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/Components/AbpMenu/Default.cshtml index a53c4fc32d..ab61aa4618 100644 --- a/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/Components/AbpMenu/Default.cshtml +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/Components/AbpMenu/Default.cshtml @@ -1,22 +1,39 @@ @using System.Threading.Tasks @model Volo.Abp.UI.Navigation.ApplicationMenu -

@Model.DisplayName (BOOTSTRAP)

- +
+ + +
+ + diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_AppLayout.cshtml similarity index 56% rename from src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml rename to src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_AppLayout.cshtml index ba3281ffc0..2e376dc2a8 100644 --- a/src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_AppLayout.cshtml @@ -5,11 +5,16 @@ - + - title - + + + + Fixed top navbar example for Bootstrap + + + @RenderSection("styles", false) @@ -18,8 +23,10 @@ - @RenderBody() - +
+ @RenderBody() +
+ diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_AppLayout.css b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_AppLayout.css new file mode 100644 index 0000000000..586cc9979a --- /dev/null +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_AppLayout.css @@ -0,0 +1,3 @@ +body { + padding-top: 5rem; +} \ No newline at end of file diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_ViewImports.cshtml b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_ViewImports.cshtml new file mode 100644 index 0000000000..9018c7897f --- /dev/null +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Views/Shared/_ViewImports.cshtml @@ -0,0 +1 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/src/Volo.Abp/Volo/Abp/Ui/Navigation/ApplicationMenuItem.cs b/src/Volo.Abp/Volo/Abp/Ui/Navigation/ApplicationMenuItem.cs index d5b59a1905..dc2f4d5547 100644 --- a/src/Volo.Abp/Volo/Abp/Ui/Navigation/ApplicationMenuItem.cs +++ b/src/Volo.Abp/Volo/Abp/Ui/Navigation/ApplicationMenuItem.cs @@ -62,6 +62,11 @@ namespace Volo.Abp.UI.Navigation [CanBeNull] public string Target { get; set; } + /// + /// Can be used to disable this menu item. + /// + public bool IsDisabled { get; set; } + /// [NotNull] public IList Items { get; }