|
|
@ -3,6 +3,7 @@ |
|
|
@using EventHub.Admin.Permissions |
|
|
@using EventHub.Admin.Permissions |
|
|
@using EventHub.Admin.Events |
|
|
@using EventHub.Admin.Events |
|
|
@using EventHub.Events |
|
|
@using EventHub.Events |
|
|
|
|
|
@using Volo.Abp.AspNetCore.Components.Notifications |
|
|
@inherits EventHubComponentBase |
|
|
@inherits EventHubComponentBase |
|
|
@attribute [Authorize(EventHubPermissions.Events.Default)] |
|
|
@attribute [Authorize(EventHubPermissions.Events.Default)] |
|
|
@inject IEventAppService EventAppService |
|
|
@inject IEventAppService EventAppService |
|
|
@ -10,12 +11,10 @@ |
|
|
|
|
|
|
|
|
<Card> |
|
|
<Card> |
|
|
<CardHeader> |
|
|
<CardHeader> |
|
|
@* ************************* PAGE HEADER ************************* *@ |
|
|
|
|
|
<h2>@L["Events"]</h2> |
|
|
<h2>@L["Events"]</h2> |
|
|
</CardHeader> |
|
|
</CardHeader> |
|
|
|
|
|
|
|
|
<CardBody> |
|
|
<CardBody> |
|
|
@* ************************* SEARCH ************************* *@ |
|
|
|
|
|
<Form> |
|
|
<Form> |
|
|
<div id="FilterSection" class="row mt-3"> |
|
|
<div id="FilterSection" class="row mt-3"> |
|
|
<Column ColumnSize="ColumnSize.Is3"> |
|
|
<Column ColumnSize="ColumnSize.Is3"> |
|
|
@ -57,7 +56,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
</Form> |
|
|
</Form> |
|
|
|
|
|
|
|
|
@* ************************* DATA GRID ************************* *@ |
|
|
|
|
|
<DataGrid TItem="EventInListDto" |
|
|
<DataGrid TItem="EventInListDto" |
|
|
Data="EventList" |
|
|
Data="EventList" |
|
|
ReadData="OnDataGridReadAsync" |
|
|
ReadData="OnDataGridReadAsync" |
|
|
@ -76,7 +74,7 @@ |
|
|
</EntityAction> |
|
|
</EntityAction> |
|
|
<EntityAction TItem="EventInListDto" |
|
|
<EntityAction TItem="EventInListDto" |
|
|
RequiredPolicy="@EventHubPermissions.Events.Registrations.Default" |
|
|
RequiredPolicy="@EventHubPermissions.Events.Registrations.Default" |
|
|
Clicked="@(() => NavigationManager.NavigateTo($"/events/{context.Id}/attendees"))" |
|
|
Clicked="@(() => NavigationManager.NavigateTo($"/event/{context.Id}/attendees"))" |
|
|
Text="@L["Attendees"]"> |
|
|
Text="@L["Attendees"]"> |
|
|
</EntityAction> |
|
|
</EntityAction> |
|
|
</EntityActions> |
|
|
</EntityActions> |
|
|
@ -107,8 +105,6 @@ |
|
|
</CardBody> |
|
|
</CardBody> |
|
|
</Card> |
|
|
</Card> |
|
|
|
|
|
|
|
|
@* ************************* EDIT MODAL ************************* *@ |
|
|
|
|
|
|
|
|
|
|
|
<Modal @ref="EditEventModal" Closing="@OnEditModalClosing"> |
|
|
<Modal @ref="EditEventModal" Closing="@OnEditModalClosing"> |
|
|
<ModalContent Centered="true" Size="ModalSize.Large"> |
|
|
<ModalContent Centered="true" Size="ModalSize.Large"> |
|
|
<Form id="EditEventForm"> |
|
|
<Form id="EditEventForm"> |
|
|
@ -177,7 +173,7 @@ |
|
|
{ |
|
|
{ |
|
|
<Validation> |
|
|
<Validation> |
|
|
<Field> |
|
|
<Field> |
|
|
<FieldLabel>@L["OnlineLink"]</FieldLabel> |
|
|
<FieldLabel>@L["OnlineLink"] *</FieldLabel> |
|
|
<MemoEdit @bind-Text="@EditingEvent.OnlineLink"> |
|
|
<MemoEdit @bind-Text="@EditingEvent.OnlineLink"> |
|
|
<Feedback> |
|
|
<Feedback> |
|
|
<ValidationError/> |
|
|
<ValidationError/> |
|
|
@ -190,7 +186,7 @@ |
|
|
{ |
|
|
{ |
|
|
<Validation> |
|
|
<Validation> |
|
|
<Field> |
|
|
<Field> |
|
|
<FieldLabel>@L["Country"]</FieldLabel> |
|
|
<FieldLabel>@L["Country"] *</FieldLabel> |
|
|
<Select @bind-SelectedValue="@EditingEvent.CountryId"> |
|
|
<Select @bind-SelectedValue="@EditingEvent.CountryId"> |
|
|
@if (Countries != null && Countries.Any()) |
|
|
@if (Countries != null && Countries.Any()) |
|
|
{ |
|
|
{ |
|
|
@ -205,7 +201,7 @@ |
|
|
|
|
|
|
|
|
<Validation> |
|
|
<Validation> |
|
|
<Field> |
|
|
<Field> |
|
|
<FieldLabel>@L["City"]</FieldLabel> |
|
|
<FieldLabel>@L["City"] *</FieldLabel> |
|
|
<TextEdit TValue="string" @bind-Text="@EditingEvent.City"> |
|
|
<TextEdit TValue="string" @bind-Text="@EditingEvent.City"> |
|
|
<Feedback> |
|
|
<Feedback> |
|
|
<ValidationError/> |
|
|
<ValidationError/> |
|
|
|