@page "/activities"
@using HeartTrack.Models

<PageTitle>Activities</PageTitle>

<h1>@Localizer["Title"]</h1>

<p>
    @Localizer["Description"]
</p>

<DataGrid TItem="Activity"
          Data="@activities"
          ReadData="@OnReadData"
          TotalItems="@totalActivity"
          PageSize="10"
          ShowPager
          Responsive>
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.IdActivity)" Caption="Id" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.Type)" Caption="Type" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.Date)" Caption="Date" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.StartTime)" Caption="@Localizer["StartTime"]" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.EndTime)" Caption="@Localizer["EndTime"]" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.EffortRessenti)" Caption="@Localizer["EffortRessenti"]" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.Variability)" Caption="@Localizer["Variability"]" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.Variance)" Caption="@Localizer["Variance"]" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.StandardDeviation)" Caption="@Localizer["StandardDeviation"]" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.Average)" Caption="@Localizer["Average"]" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.Maximum)" Caption="Maximum" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.Minimum)" Caption="Minimum" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.AvrTemperature)" Caption="@Localizer["AvrTemperature"]" />
    <DataGridColumn TItem="Activity" Field="@nameof(Activity.HasAutoPause)" Caption="@Localizer["HasAutoPause"]" />
</DataGrid>