Co-authored-by: Claudio Schaad <c.schaad@pog.ch> Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
35 lines
1.6 KiB
Text
35 lines
1.6 KiB
Text
<div class="bill-chart-toolbar">
|
|
<div class="segmented" role="group" aria-label="Zeitraum">
|
|
@foreach (var kind in PeriodKinds)
|
|
{
|
|
<FluentButton Appearance="@(kind == Filter.Kind ? Appearance.Accent : Appearance.Neutral)"
|
|
aria-pressed="@(kind == Filter.Kind ? "true" : "false")"
|
|
OnClick="@(() => ChangeAsync(Filter with { Kind = kind }))">@PeriodKindName(kind)</FluentButton>
|
|
}
|
|
</div>
|
|
|
|
@if (Years.Count > 0)
|
|
{
|
|
<div class="years">
|
|
<FluentSelect TOption="int" Label="Von" Width="110px"
|
|
Items="@Years"
|
|
OptionText="@(y => y.ToString())"
|
|
OptionValue="@(y => y.ToString())"
|
|
SelectedOption="@Range.From"
|
|
SelectedOptionChanged="@OnFromChanged" />
|
|
<FluentSelect TOption="int" Label="Bis" Width="110px"
|
|
Items="@Years"
|
|
OptionText="@(y => y.ToString())"
|
|
OptionValue="@(y => y.ToString())"
|
|
SelectedOption="@Range.To"
|
|
SelectedOptionChanged="@OnToChanged" />
|
|
<FluentButton Appearance="Appearance.Lightweight" OnClick="@(() => ChangeAsync(Filter with { FromYear = null, ToYear = null }))"
|
|
Disabled="@Filter.CoversAll(Years)">Alle Jahre</FluentButton>
|
|
</div>
|
|
}
|
|
|
|
@if (IsSplit)
|
|
{
|
|
<span class="split-note">Werte anteilig auf die Monate der Abrechnungsperiode verteilt</span>
|
|
}
|
|
</div>
|