1
0
mirror of https://github.com/bitwarden/server synced 2026-01-09 20:13:24 +00:00

[PM-13447] Add Multi Org Enterprise providers to Admin Console (#4920)

This commit is contained in:
Jonas Hendrickx
2024-10-23 18:10:50 +02:00
committed by GitHub
parent 39c560bbdd
commit a952d10637
16 changed files with 717 additions and 161 deletions

View File

@@ -0,0 +1,19 @@

using Bit.SharedWeb.Utilities;
// ReSharper disable once CheckNamespace
namespace Microsoft.AspNetCore.Mvc.Rendering;
public static class HtmlHelper
{
public static IEnumerable<SelectListItem> GetEnumSelectList<T>(this IHtmlHelper htmlHelper, IEnumerable<T> values)
where T : Enum
{
return values.Select(v => new SelectListItem
{
Text = v.GetDisplayAttribute().Name,
Value = v.ToString()
});
}
}