a9036d5d04
This commit introduces a new StateScheduleHandout component for generating printable schedules for students, including a combined master list of events. It adds configuration options in appsettings.json for state abbreviations and special event filters, enhancing the scheduling functionality. The Program.cs file is updated to register the new StateScheduleHandoutOptions, and the Calendar and Teams components are modified to include links to the new handout feature. Additionally, utility methods for filtering event occurrences are implemented to support the new functionality, improving the overall user experience in managing state schedules.
50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
using Core.Models;
|
|
|
|
namespace WebApp.Models;
|
|
|
|
/// <summary>
|
|
/// Configuration for chapter-specific information
|
|
/// </summary>
|
|
public class ChapterSettings
|
|
{
|
|
/// <summary>
|
|
/// Full chapter name (e.g., "Your Chapter Name")
|
|
/// </summary>
|
|
public string Name { get; set; } = "Your Chapter Name";
|
|
|
|
/// <summary>
|
|
/// Short chapter name abbreviation (e.g., "YCN")
|
|
/// </summary>
|
|
public string ShortName { get; set; } = "YCN";
|
|
|
|
/// <summary>
|
|
/// National chapter ID (4 digits, e.g., "0000")
|
|
/// </summary>
|
|
public string NationalId { get; set; } = "0000";
|
|
|
|
/// <summary>
|
|
/// State chapter ID (5 digits, e.g., "00000")
|
|
/// </summary>
|
|
public string StateId { get; set; } = "00000";
|
|
|
|
/// <summary>
|
|
/// Regional chapter ID (5 digits, e.g., "00000")
|
|
/// </summary>
|
|
public string RegionalId { get; set; } = "00000";
|
|
|
|
/// <summary>
|
|
/// Competition year (e.g., "2026")
|
|
/// </summary>
|
|
public string CompetitionYear { get; set; } = "2026";
|
|
|
|
/// <summary>
|
|
/// Postal state abbreviation for printed schedules (example placeholder: "ST").
|
|
/// </summary>
|
|
public string StateAbbrev { get; set; } = "ST";
|
|
|
|
/// <summary>
|
|
/// School level for the chapter (null = import both MS and HS events)
|
|
/// </summary>
|
|
public SchoolLevel? SchoolLevel { get; set; }
|
|
}
|