Wonky.Client/Wonky.Client/Pages/ActivityListTodayPage.razor

49 lines
1.7 KiB
Text
Raw Normal View History

2022-06-18 10:35:58 +02:00
@*
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
*@
2022-06-18 10:35:58 +02:00
@using Microsoft.AspNetCore.Authorization
@using Wonky.Client.Components
2022-07-17 11:56:28 +02:00
@attribute [Authorize(Roles = "Advisor")]
2022-06-18 10:35:58 +02:00
@page "/activity-today"
<div class="row bg-dark text-white rounded-2 mb-2 py-2 align-items-center">
2022-11-29 08:50:21 +01:00
<div class="col-sm-7">
<WorkDateComponent OnChangedCallback="GetActivities"/>
2022-08-25 18:51:05 +02:00
</div>
2022-11-29 08:50:21 +01:00
<div class="col-sm-3">
<AdvisorActivityKmStartComponent/>
2022-07-28 17:22:51 +02:00
</div>
2022-11-29 08:50:21 +01:00
<div class="col-sm-2 text-end">
2022-11-22 13:44:08 +01:00
@if (ReportExist)
2022-07-28 17:22:51 +02:00
{
2022-11-29 08:50:21 +01:00
<a class="btn btn-info" href="/sales-reports/view/@($"{SelectedDate:yyyy-MM-dd}")">Rapport <i style="font-size: 1.2em;" class="bi-info-lg"></i></a>
2022-07-28 17:22:51 +02:00
}
else
{
2022-11-29 08:50:21 +01:00
<a class="btn btn-primary" href="/sales-reports/new">Rapport <i style="font-size:1.2em;" class="bi-plus-lg"></i></a>
2022-07-28 17:22:51 +02:00
}
2022-06-18 10:35:58 +02:00
</div>
</div>
@if (ReportStatusView.ReportItems.Any())
2022-07-28 17:22:51 +02:00
{
<AdvisorActivityTableComponent ActivityList="ReportStatusView.ReportItems"/>
}
@if (Working)
{
<WorkingThreeDots/>
}