fix: make yearly theme editable and stop printing events twice
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<PageHeader
|
<PageHeader
|
||||||
Title="@($"TSA Events {Configuration["ChapterSettings:CompetitionYear"]}")"
|
Title="@($"TSA Events {Configuration["ChapterSettings:CompetitionYear"]}")"
|
||||||
Description="Yearly theme: Unity Through Community" />
|
Description="@($"Yearly theme: {Configuration["ChapterSettings:YearlyTheme"]}")" />
|
||||||
|
|
||||||
@if (_events == null)
|
@if (_events == null)
|
||||||
{
|
{
|
||||||
@@ -66,84 +66,7 @@ else
|
|||||||
{
|
{
|
||||||
<MudItem xs="3">
|
<MudItem xs="3">
|
||||||
<MudText Class="d-flex py-1">
|
<MudText Class="d-flex py-1">
|
||||||
<i>Theme for 2025-26:</i>
|
<i>Theme for @Configuration["ChapterSettings:CompetitionYear"]:</i>
|
||||||
</MudText>
|
|
||||||
</MudItem>
|
|
||||||
<MudItem xs="8">
|
|
||||||
<MudText Class="d-flex py-1 pre-wrap-text">@evt.Theme</MudText>
|
|
||||||
</MudItem>
|
|
||||||
}
|
|
||||||
|
|
||||||
@if (!string.IsNullOrEmpty(evt.Documentation))
|
|
||||||
{
|
|
||||||
<MudItem xs="3">
|
|
||||||
<MudText Class="d-flex py-1">
|
|
||||||
<i>Materials:</i>
|
|
||||||
</MudText>
|
|
||||||
</MudItem>
|
|
||||||
<MudItem xs="8">
|
|
||||||
<MudText Class="d-flex py-1 pre-wrap-text">@evt.Documentation</MudText>
|
|
||||||
</MudItem>
|
|
||||||
}
|
|
||||||
|
|
||||||
</MudGrid>
|
|
||||||
</MudContainer>
|
|
||||||
<MudDivider />
|
|
||||||
}
|
|
||||||
</MudContainer>
|
|
||||||
|
|
||||||
<MudContainer>
|
|
||||||
@foreach (var evt in _events)
|
|
||||||
{
|
|
||||||
<MudContainer Class="mt-3 mb-1 nobrk">
|
|
||||||
<MudGrid>
|
|
||||||
<MudItem xs="4">
|
|
||||||
<MudStack>
|
|
||||||
<MudItem>
|
|
||||||
<MudText Class="d-flex py-1" Typo="Typo.h5">@evt.Name</MudText>
|
|
||||||
</MudItem>
|
|
||||||
@if (evt.RegionalEvent)
|
|
||||||
{
|
|
||||||
<MudItem>
|
|
||||||
<MudText Class="d-flex" Typo="Typo.caption"><i>Regional Event</i></MudText>
|
|
||||||
</MudItem>
|
|
||||||
}
|
|
||||||
</MudStack>
|
|
||||||
</MudItem>
|
|
||||||
<MudItem xs="2">
|
|
||||||
|
|
||||||
<MudText>
|
|
||||||
@if (evt.EventFormat is EventFormat.Team)
|
|
||||||
{
|
|
||||||
<strong>@evt.EventFormat</strong>
|
|
||||||
<br />
|
|
||||||
<p>Size: <strong>@evt.TeamSize</strong></p>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<strong>@evt.EventFormat</strong>
|
|
||||||
}
|
|
||||||
</MudText>
|
|
||||||
|
|
||||||
</MudItem>
|
|
||||||
<MudItem xs="3">
|
|
||||||
Eligibility: @evt.Eligibility
|
|
||||||
</MudItem>
|
|
||||||
<MudItem xs="1">
|
|
||||||
<strong> Effort</strong>: @evt.LevelOfEffort
|
|
||||||
</MudItem>
|
|
||||||
<MudItem xs="2">
|
|
||||||
<strong>Activity</strong>: @evt.SemifinalistActivity
|
|
||||||
</MudItem>
|
|
||||||
|
|
||||||
<MudItem xs="12">
|
|
||||||
<MudText Class="d-flex py-1 pre-wrap-text">@evt.Description</MudText>
|
|
||||||
</MudItem>
|
|
||||||
@if (!string.IsNullOrEmpty(evt.Theme))
|
|
||||||
{
|
|
||||||
<MudItem xs="3">
|
|
||||||
<MudText Class="d-flex py-1">
|
|
||||||
<i>Theme for 2025-26:</i>
|
|
||||||
</MudText>
|
</MudText>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
<MudItem xs="8">
|
<MudItem xs="8">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<PageHeader
|
<PageHeader
|
||||||
Title="@($"{Configuration["ChapterSettings:Shortname"]} TSA Teams {Configuration["ChapterSettings:CompetitionYear"]}")"
|
Title="@($"{Configuration["ChapterSettings:Shortname"]} TSA Teams {Configuration["ChapterSettings:CompetitionYear"]}")"
|
||||||
Description="Yearly theme: Unity Through Community" />
|
Description="@($"Yearly theme: {Configuration["ChapterSettings:YearlyTheme"]}")" />
|
||||||
|
|
||||||
@if (_teams == null || _students == null)
|
@if (_teams == null || _students == null)
|
||||||
{
|
{
|
||||||
@@ -74,7 +74,7 @@ else
|
|||||||
{
|
{
|
||||||
<MudItem xs="3">
|
<MudItem xs="3">
|
||||||
<MudText Class="d-flex py-1">
|
<MudText Class="d-flex py-1">
|
||||||
<i>Theme for 2025-26:</i>
|
<i>Theme for @Configuration["ChapterSettings:CompetitionYear"]:</i>
|
||||||
</MudText>
|
</MudText>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
<MudItem xs="8">
|
<MudItem xs="8">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<PageHeader
|
<PageHeader
|
||||||
Title="@($"{Configuration["ChapterSettings:Shortname"]} TSA Teams {Configuration["ChapterSettings:CompetitionYear"]}")"
|
Title="@($"{Configuration["ChapterSettings:Shortname"]} TSA Teams {Configuration["ChapterSettings:CompetitionYear"]}")"
|
||||||
Description="Yearly theme: Unity Through Community" />
|
Description="@($"Yearly theme: {Configuration["ChapterSettings:YearlyTheme"]}")" />
|
||||||
|
|
||||||
<Legend></Legend>
|
<Legend></Legend>
|
||||||
@if (_teams == null)
|
@if (_teams == null)
|
||||||
|
|||||||
@@ -44,6 +44,12 @@
|
|||||||
MaxLength="4"
|
MaxLength="4"
|
||||||
Required="true" />
|
Required="true" />
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
<MudItem xs="12" md="6">
|
||||||
|
<MudTextField @bind-Value="_settings.YearlyTheme"
|
||||||
|
Label="Yearly Theme"
|
||||||
|
Variant="Variant.Outlined"
|
||||||
|
HelperText="National TSA yearly theme (e.g., Unity Through Community)" />
|
||||||
|
</MudItem>
|
||||||
<MudItem xs="12" md="6">
|
<MudItem xs="12" md="6">
|
||||||
<MudSelect T="SchoolLevel?" @bind-Value="_settings.SchoolLevel"
|
<MudSelect T="SchoolLevel?" @bind-Value="_settings.SchoolLevel"
|
||||||
Label="School Level"
|
Label="School Level"
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ public class ChapterSettings
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string CompetitionYear { get; set; } = "2026";
|
public string CompetitionYear { get; set; } = "2026";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// National TSA yearly theme (e.g., "Unity Through Community")
|
||||||
|
/// </summary>
|
||||||
|
public string YearlyTheme { get; set; } = "Unity Through Community";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Postal state abbreviation for printed schedules (example placeholder: "ST").
|
/// Postal state abbreviation for printed schedules (example placeholder: "ST").
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"NationalId": "2227",
|
"NationalId": "2227",
|
||||||
"StateId": "12227",
|
"StateId": "12227",
|
||||||
"RegionalId": "12227",
|
"RegionalId": "12227",
|
||||||
"CompetitionYear": "2026"
|
"CompetitionYear": "2026",
|
||||||
|
"YearlyTheme": "Unity Through Community"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"StateId": "00000",
|
"StateId": "00000",
|
||||||
"RegionalId": "00000",
|
"RegionalId": "00000",
|
||||||
"CompetitionYear": "2026",
|
"CompetitionYear": "2026",
|
||||||
|
"YearlyTheme": "Unity Through Community",
|
||||||
"StateAbbrev": "ST",
|
"StateAbbrev": "ST",
|
||||||
"StateScheduleHandout": {
|
"StateScheduleHandout": {
|
||||||
"StudentSpecialEventTypes": [
|
"StudentSpecialEventTypes": [
|
||||||
|
|||||||
Reference in New Issue
Block a user