diff --git a/src/iRLeagueManager.Web/Components/EditEventModal.razor b/src/iRLeagueManager.Web/Components/EditEventModal.razor index a5855fd1..039497dd 100644 --- a/src/iRLeagueManager.Web/Components/EditEventModal.razor +++ b/src/iRLeagueManager.Web/Components/EditEventModal.razor @@ -26,8 +26,7 @@ MinimumLength=1 MaximumSuggestions=100 EnableDropDown=true - class="form-control py-0 px-0 ps-1 border border-top-0" - style="border-color: #ced4da !important" + class="form-control py-0 px-0 ps-1" placeholder="Search by Track name..."> @track?.TrackName diff --git a/src/iRLeagueManager.Web/Components/EventSelect.razor b/src/iRLeagueManager.Web/Components/EventSelect.razor index 947f15f9..0db65bfb 100644 --- a/src/iRLeagueManager.Web/Components/EventSelect.razor +++ b/src/iRLeagueManager.Web/Components/EventSelect.razor @@ -64,7 +64,7 @@ [Parameter] public EventCallback SelectedChanged { get; set; } - private const string BaseClass = "input-group container px-0 mb-2 mx-0"; + private const string BaseClass = "input-group"; private string CssClass { get diff --git a/src/iRLeagueManager.Web/Components/LoadingHeader.razor b/src/iRLeagueManager.Web/Components/LoadingHeader.razor index ef046d5f..f1bde7b6 100644 --- a/src/iRLeagueManager.Web/Components/LoadingHeader.razor +++ b/src/iRLeagueManager.Web/Components/LoadingHeader.razor @@ -1,10 +1,10 @@ @using System.ComponentModel
-
+
@ChildContent +
-
@code { diff --git a/src/iRLeagueManager.Web/Components/Reviews/ReviewCard.razor b/src/iRLeagueManager.Web/Components/Reviews/ReviewCard.razor index d86db5f5..25e3f752 100644 --- a/src/iRLeagueManager.Web/Components/Reviews/ReviewCard.razor +++ b/src/iRLeagueManager.Web/Components/Reviews/ReviewCard.razor @@ -51,7 +51,7 @@
-
+
Involved
@@ -76,7 +76,7 @@
-
+
Involved Drivers
diff --git a/src/iRLeagueManager.Web/Components/Settings/ChampionshipPreview.razor b/src/iRLeagueManager.Web/Components/Settings/ChampionshipPreview.razor index 5c072bee..7ffc2365 100644 --- a/src/iRLeagueManager.Web/Components/Settings/ChampionshipPreview.razor +++ b/src/iRLeagueManager.Web/Components/Settings/ChampionshipPreview.razor @@ -9,7 +9,7 @@
@name
@if (string.IsNullOrEmpty(displayName) == false && displayName != name) { -    => "@displayName" +    "@displayName" }
@if (ChampSeason is not null) diff --git a/src/iRLeagueManager.Web/Components/Settings/EditChampSeasonModal.razor b/src/iRLeagueManager.Web/Components/Settings/EditChampSeasonModal.razor index 08f6af50..9bbcc89e 100644 --- a/src/iRLeagueManager.Web/Components/Settings/EditChampSeasonModal.razor +++ b/src/iRLeagueManager.Web/Components/Settings/EditChampSeasonModal.razor @@ -3,14 +3,17 @@ -
+ @{ + var accordionId = $"champseason-{Vm.ChampSeasonId}-accordion"; + } +
-

+

-
+
@@ -20,42 +23,49 @@
-

-

-
- @foreach(var resultConfig in Vm.ResultConfigViewModels) - { -
OnResultConfigClick(resultConfig))> - -
- - + +
+
+ } +
+
-
- } -
- +
-
+

-

-
+
@if (Vm.StandingConfig is not null) {
diff --git a/src/iRLeagueManager.Web/Components/Settings/EditScoring.razor b/src/iRLeagueManager.Web/Components/Settings/EditScoring.razor index f5d925f1..6bf42ff8 100644 --- a/src/iRLeagueManager.Web/Components/Settings/EditScoring.razor +++ b/src/iRLeagueManager.Web/Components/Settings/EditScoring.razor @@ -22,7 +22,7 @@ MaxPoints: @pointRule.MaxPoints DropOff p.Pl: @pointRule.PointDropOff } - + diff --git a/src/iRLeagueManager.Web/Components/Settings/PointTable.razor b/src/iRLeagueManager.Web/Components/Settings/PointTable.razor index b9ca5024..af2d59df 100644 --- a/src/iRLeagueManager.Web/Components/Settings/PointTable.razor +++ b/src/iRLeagueManager.Web/Components/Settings/PointTable.razor @@ -1,6 +1,8 @@ -@inherits MvvmComponentBase +@using static iRLeagueManager.Web.ViewModels.PointRuleViewModel; +@inherits MvvmComponentBase
+ @GetPointTypeString() @if (@Bind(PointRule, x => x.PointsPerPlace).Count() > 0) { @@ -24,10 +26,6 @@
} - else - { - Points from source - }
@code { @@ -41,4 +39,22 @@ base.OnParametersSet(); BlazorParameterNullException.ThrowIfNull(this, PointRule); } + + private string GetPointTypeString() + { + if (PointRule.PointsPerPlace.Count() == 0) + { + return "Keep points"; + } + switch (PointRule.RuleType) + { + case PointRuleType.PointList: + return "Points per place"; + case PointRuleType.MaxPoints: + return $"Max pts.: {PointRule.MaxPoints}; Drop-off: {PointRule.PointDropOff}"; + case PointRuleType.Formula: + return $"Formula"; + } + return "Unknown"; + } } diff --git a/src/iRLeagueManager.Web/Components/Settings/ResultConfigPreview.razor b/src/iRLeagueManager.Web/Components/Settings/ResultConfigPreview.razor index 5e3f7887..fbbc164c 100644 --- a/src/iRLeagueManager.Web/Components/Settings/ResultConfigPreview.razor +++ b/src/iRLeagueManager.Web/Components/Settings/ResultConfigPreview.razor @@ -16,6 +16,7 @@
@scoring.Name
+ Sort results by: @string.Join(" then ", scoring.PointRule.FinalSortOptions)
diff --git a/src/iRLeagueManager.Web/Pages/Leagues.razor b/src/iRLeagueManager.Web/Pages/Leagues.razor index 8a807393..13d024ee 100644 --- a/src/iRLeagueManager.Web/Pages/Leagues.razor +++ b/src/iRLeagueManager.Web/Pages/Leagues.razor @@ -8,12 +8,14 @@ @inject LeaguesViewModel vm @inject ILeagueApiClient apiClient -
- x.Loading)> -

Leagues

-
+
+ - +
diff --git a/src/iRLeagueManager.Web/Pages/Protests.razor b/src/iRLeagueManager.Web/Pages/Protests.razor index d2297440..da60fbad 100644 --- a/src/iRLeagueManager.Web/Pages/Protests.razor +++ b/src/iRLeagueManager.Web/Pages/Protests.razor @@ -6,7 +6,7 @@ @inject ReviewsPageViewModel ReviewsVm @inject ClientLocalTimeProvider ClientTime -
+

File Protest

@@ -189,7 +189,7 @@ if (@event?.EventId != null) { var navUrl = $"./{LeagueName}/Protests/Events/{@event.EventId}"; - NavigationManager.NavigateTo(navUrl); + NavigationManager.NavigateTo(navUrl, replace: true); await ReviewsVm.LoadFromEventAsync(@event.EventId); } SessionId = @event?.Sessions.FirstOrDefault()?.SessionId; diff --git a/src/iRLeagueManager.Web/Pages/Results.razor b/src/iRLeagueManager.Web/Pages/Results.razor index cab774b6..e46fd74a 100644 --- a/src/iRLeagueManager.Web/Pages/Results.razor +++ b/src/iRLeagueManager.Web/Pages/Results.razor @@ -13,44 +13,48 @@ @inherits LeagueComponentBase @inject ResultsPageViewModel vm -
- x.Loading)> -

Results

-
- - - @if (@Bind(vm, x => x.Results)?.Count == 0) - { -
-

No Results

+
+
Id