| | 1 | | @namespace Syki.Front.Components.Agenda |
| | 2 | |
|
| | 3 | | <MudContainer Class="@Class"> |
| | 4 | | <MudGrid Spacing="2" Justify="Justify.SpaceBetween"> |
| 0 | 5 | | @foreach (AgendaDayOut day in GetDays()) |
| | 6 | | { |
| | 7 | | <MudItem xs="12" sm="6" md="4" lg="2"> |
| | 8 | | <MudPaper Class="pb-3" Style="height: 100%"> |
| | 9 | | <MudStack AlignItems="AlignItems.Center" Spacing="1"> |
| | 10 | | <MudText Class="mt-1" Typo="Typo.h6">@day.Day.GetDescription()</MudText> |
| | 11 | | <MudDivider/> |
| 0 | 12 | | @foreach (AgendaDisciplineOut item in day.Disciplines) |
| | 13 | | { |
| | 14 | | <MudPaper Class="border-solid mt-2" Style="width: 90%; border-width: 1px;"> |
| | 15 | | <MudText Align="Align.Center" Class="pa-2 pt-2" Typo="Typo.body2">@item.Name</MudText> |
| | 16 | | <MudText Align="Align.Center" Class="px-2 pb-2" Typo="Typo.body2"><strong>@item.Start.Ge |
| | 17 | | </MudPaper> |
| | 18 | | } |
| | 19 | | </MudStack> |
| | 20 | | </MudPaper> |
| | 21 | | </MudItem> |
| | 22 | | } |
| | 23 | | </MudGrid> |
| | 24 | | </MudContainer> |
| | 25 | |
|
| | 26 | | @code |
| | 27 | | { |
| | 28 | | [CascadingParameter(Name = "Days")] |
| 0 | 29 | | public List<AgendaDayOut> Days { get; set; } |
| | 30 | |
|
| | 31 | | [Parameter] |
| 0 | 32 | | public string Class { get; set; } |
| | 33 | |
|
| | 34 | | private List<AgendaDayOut> GetDays() |
| | 35 | | { |
| 0 | 36 | | return Days.OrderBy(d => d.Day).ToList(); |
| | 37 | | } |
| | 38 | | } |