diff --git a/WebApp/Components/CrudActions.razor b/WebApp/Components/CrudActions.razor new file mode 100644 index 0000000..c4f53b5 --- /dev/null +++ b/WebApp/Components/CrudActions.razor @@ -0,0 +1,29 @@ + + @if (DetailsHref != null) + { + + Details + + } + @if (EditHref != null) + { + + Edit + + } + @if (DeleteOnClick != null) + { + + + + } + + +@code { + + [Parameter] public string? DetailsHref { get; set; } + [Parameter] public string? EditHref { get; set; } + [Parameter] public Action? DeleteOnClick { get; set; } +} \ No newline at end of file diff --git a/WebApp/Components/Pages/EventAttributes.razor b/WebApp/Components/Pages/EventAttributes.razor index e755ca4..a21343a 100644 --- a/WebApp/Components/Pages/EventAttributes.razor +++ b/WebApp/Components/Pages/EventAttributes.razor @@ -1,5 +1,7 @@ @using WebApp.Models +@AppIcons.LevelOfEffortIcon(EventDefinition.LevelOfEffort) + @if(EventDefinition.EventFormat == EventFormat.Individual) { @AppIcons.IndividualEvent } diff --git a/WebApp/Components/Pages/EventDefinitionPages/Index.razor b/WebApp/Components/Pages/EventDefinitionPages/Index.razor index 0112edb..fc9353a 100644 --- a/WebApp/Components/Pages/EventDefinitionPages/Index.razor +++ b/WebApp/Components/Pages/EventDefinitionPages/Index.razor @@ -25,35 +25,19 @@ - + - @if (context.Item.RegionalEvent) { @AppIcons.RegionalEvent } - - - - - @if (context.Item.Presubmission) { @AppIcons.PresubmissionEvent } + - - - - Details - - - Edit - - - - - - + + diff --git a/WebApp/Components/Pages/StudentPages/Index.razor b/WebApp/Components/Pages/StudentPages/Index.razor index ad55620..29a7637 100644 --- a/WebApp/Components/Pages/StudentPages/Index.razor +++ b/WebApp/Components/Pages/StudentPages/Index.razor @@ -31,21 +31,10 @@ - - - - - - - - - - - - - + + diff --git a/WebApp/Components/Pages/TeamPages/Index.razor b/WebApp/Components/Pages/TeamPages/Index.razor index 5dac594..2a60a83 100644 --- a/WebApp/Components/Pages/TeamPages/Index.razor +++ b/WebApp/Components/Pages/TeamPages/Index.razor @@ -38,21 +38,11 @@ *@ - - - - Details - - - Edit - - - - - - + +