Änderung der Version und Anpassen der Anzeige der events für mobil und pcs
This commit is contained in:
@ -19,7 +19,37 @@ else
|
||||
<p>@Status</p>
|
||||
@if (@_EventRegistrations.Count != 0)
|
||||
{
|
||||
<Pager Items="@_EventRegistrations">
|
||||
|
||||
<div class="event-list">
|
||||
<div class="event-list">
|
||||
@foreach (var context in _EventRegistrations)
|
||||
{
|
||||
<div class="event-card">
|
||||
<h3>@context.Name</h3>
|
||||
<p><strong>@Localizer["Date"]:</strong> @context.EventDate.ToLocalTime()</p>
|
||||
<p><strong>@Localizer["Location"]:</strong> @context.Location</p>
|
||||
|
||||
<div class="event-actions">
|
||||
<ActionLink Action="Edit"
|
||||
Parameters="@($"id={context.EventId}")"
|
||||
ResourceKey="Edit" />
|
||||
|
||||
<ActionDialog Action="Delete"
|
||||
Security="SecurityAccessLevel.Edit"
|
||||
Class="btn btn-danger"
|
||||
OnClick="@(() => Delete(context))"
|
||||
ResourceKey="Delete"
|
||||
Id="@context.EventId.ToString()" />
|
||||
|
||||
<ActionLink Action="Details"
|
||||
Parameters="@($"id={context.EventId}")"
|
||||
ResourceKey="Details" />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
/* <Pager Items="@_EventRegistrations">
|
||||
<Header>
|
||||
<th style="width: 1px;"> </th>
|
||||
<th style="width: 1px;"> </th>
|
||||
@ -36,7 +66,7 @@ else
|
||||
<td>@context.Location</td>
|
||||
<td><ActionLink Action="Details" Parameters="@($"id=" + context.EventId.ToString())" ResourceKey="Details"/></td>
|
||||
</Row>
|
||||
</Pager>
|
||||
</Pager>*/
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user