Update audit view
This commit is contained in:
@@ -3,23 +3,27 @@
|
|||||||
@using FoodsharingSiegen.Server.BaseClasses
|
@using FoodsharingSiegen.Server.BaseClasses
|
||||||
@using FoodsharingSiegen.Contracts.Entity
|
@using FoodsharingSiegen.Contracts.Entity
|
||||||
@using FoodsharingSiegen.Server.Data
|
@using FoodsharingSiegen.Server.Data
|
||||||
@using FoodsharingSiegen.Server.Data.Service
|
|
||||||
|
|
||||||
@inherits FsBase
|
@inherits FsBase
|
||||||
|
|
||||||
<PageTitle>Aktivitäten</PageTitle>
|
<PageTitle>Aktivitäten</PageTitle>
|
||||||
|
|
||||||
<h2>Aktivitäten</h2>
|
<div class="d-flex flex-column p-audit">
|
||||||
|
<h2>Aktivitäten</h2>
|
||||||
|
|
||||||
|
<DataGrid TItem="Audit"
|
||||||
|
Data="@Audits"
|
||||||
|
VirtualizeOptions="@(new() { DataGridHeight = "100%", DataGridMaxHeight = "100%"})"
|
||||||
|
Virtualize="true"
|
||||||
|
Responsive>
|
||||||
|
<DataGridColumn Field="@nameof(Audit.Created)" Caption="Datum" Width="180px" />
|
||||||
|
<DataGridColumn Caption="Aktion">
|
||||||
|
<DisplayTemplate>
|
||||||
|
<span>
|
||||||
|
@((context as Audit).User?.Name) @(AuditHelper.CreateText(context))
|
||||||
|
</span>
|
||||||
|
</DisplayTemplate>
|
||||||
|
</DataGridColumn>
|
||||||
|
</DataGrid>
|
||||||
|
</div>
|
||||||
|
|
||||||
<DataGrid TItem="Audit"
|
|
||||||
Data="@Audits"
|
|
||||||
Responsive>
|
|
||||||
<DataGridColumn Field="@nameof(Audit.Created)" Caption="Datum" Width="180px" />
|
|
||||||
<DataGridColumn Caption="Aktion">
|
|
||||||
<DisplayTemplate>
|
|
||||||
<span>
|
|
||||||
@((context as Audit).User?.Name) @(AuditHelper.CreateText(context))
|
|
||||||
</span>
|
|
||||||
</DisplayTemplate>
|
|
||||||
</DataGridColumn>
|
|
||||||
</DataGrid>
|
|
||||||
3
FoodsharingSiegen.Server/Pages/AuditView.razor.css
Normal file
3
FoodsharingSiegen.Server/Pages/AuditView.razor.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.p-audit > ::deep form {
|
||||||
|
height: calc(100% - 68px);
|
||||||
|
}
|
||||||
3
FoodsharingSiegen.Server/Pages/AuditView.razor.scss
Normal file
3
FoodsharingSiegen.Server/Pages/AuditView.razor.scss
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.p-audit > ::deep form {
|
||||||
|
height: calc(100% - 68px);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user