Update 07082021
This commit is contained in:
@@ -79,6 +79,32 @@
|
||||
<RadzenPanelMenuItem Text="Abmelden" Path="/identity/account/logout" Icon=""></RadzenPanelMenuItem>
|
||||
</Authorized>
|
||||
<NotAuthorized></NotAuthorized>
|
||||
</AuthorizeView>
|
||||
<AuthorizeView Roles="Lehrer">
|
||||
<Authorized>
|
||||
@foreach (var mentry in TeacherMenu)
|
||||
{
|
||||
<RadzenPanelMenuItem @bind-Expanded="@mentry.Expanded" Text="@mentry.Name" Path="@mentry.Path" Icon="@mentry.Icon">
|
||||
@if (mentry.Children != null)
|
||||
{
|
||||
@foreach (var child in mentry.Children)
|
||||
{
|
||||
if (child.Children != null)
|
||||
{
|
||||
<RadzenPanelMenuItem @bind-Expanded="@child.Expanded" Text="@child.Name" Icon="@child.Icon">
|
||||
@foreach (var subchild in child.Children)
|
||||
{
|
||||
<RadzenPanelMenuItem Text="@subchild.Name" Path="@subchild.Path" />}
|
||||
</RadzenPanelMenuItem> }
|
||||
else
|
||||
{
|
||||
<RadzenPanelMenuItem Text="@child.Name" Path="@child.Path" Icon="@child.Icon" />}
|
||||
}}
|
||||
</RadzenPanelMenuItem>}
|
||||
|
||||
<RadzenPanelMenuItem Text="Abmelden" Path="/identity/account/logout" Icon=""></RadzenPanelMenuItem>
|
||||
</Authorized>
|
||||
<NotAuthorized></NotAuthorized>
|
||||
</AuthorizeView>
|
||||
<AuthorizeView Roles="Administrators">
|
||||
<Authorized>
|
||||
@@ -110,7 +136,8 @@
|
||||
<RadzenPanelMenuItem Text="Anmelden" Path="/identity/account/login" Icon=""></RadzenPanelMenuItem>
|
||||
<RadzenPanelMenuItem Text="Registrierung Firma" Path="/identity/account/registercompany" Icon=""></RadzenPanelMenuItem>
|
||||
<RadzenPanelMenuItem Text="Registrierung Lehrer" Path="/identity/account/registerteacher" Icon=""></RadzenPanelMenuItem>
|
||||
|
||||
<RadzenPanelMenuItem Text="ScriptGenerator" Path="/Admin/ScriptGenerator" Icon=""></RadzenPanelMenuItem>
|
||||
<RadzenPanelMenuItem Text="ShowConfig" Path="/ShowConfig" Icon=""></RadzenPanelMenuItem>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
</RadzenPanelMenu>
|
||||
@@ -162,6 +189,7 @@
|
||||
//public List<BlazorApp.Models.MenuItem> AdminMenu = new List<Models.MenuItem>();
|
||||
IEnumerable<BlazorApp.Models.MenuItem> AdminMenu;
|
||||
IEnumerable<BlazorApp.Models.MenuItem> CompanyMenu;
|
||||
IEnumerable<BlazorApp.Models.MenuItem> TeacherMenu;
|
||||
|
||||
string Theme
|
||||
{
|
||||
@@ -190,6 +218,7 @@
|
||||
|
||||
AdminMenu = MenuService.MenuAdmin;
|
||||
CompanyMenu = MenuService.MenuComapny;
|
||||
TeacherMenu = MenuService.MenuTeacher;
|
||||
|
||||
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user