1
0
mirror of https://github.com/akpaevj/onecmonitor.git synced 2026-06-17 22:34:48 +02:00
Files

18 lines
748 B
Plaintext

@page "/techlog/templates"
@using Microsoft.AspNetCore.Components.Authorization
@using OneSwiss.Server.Attributes
@using OneSwiss.Server.Extensions
@using OneSwiss.Server.Models
@using OneSwiss.Server.Components.Shared
@rendermode InteractiveServer
@attribute [ExtAuthorize(Roles.ReadTechLogSeances, Roles.WriteTechLogSeances)]
<AuthorizeView>
<DatabaseObjectsTable TModel="LogTemplate" TViewModel="LogTemplate"
NameSelector="template => template.Name"
Route="techlog/templates"
Title="Шаблоны сбора технологического журнала"
ReadOnly="@context.IsReadOnly(Roles.WriteTechLogSeances)"/>
</AuthorizeView>