Wonky.Client/Wonky.Client/Pages/CrmActivityTodayPage.razor

51 lines
1.6 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">
<div class="col">
<WorkDateComponent OnChangedCallback="GetActivities" />
2022-08-25 18:51:05 +02:00
</div>
<div class="col-md-3">
2022-09-06 17:30:26 +02:00
<AdvisorActivityKmStartComponent />
2022-07-28 17:22:51 +02:00
</div>
<div class="col-md-2">
2022-11-22 13:44:08 +01:00
@if (ReportExist)
2022-07-28 17:22:51 +02:00
{
<a class="btn btn-primary" href="/sales-reports/view/@($"{SelectedDate:yyyy-MM-dd}")">RAPPORT</a>
2022-07-28 17:22:51 +02:00
}
else
{
<a class="btn btn-primary" href="/sales-reports/new">RAPPORT</a>
}
2022-06-18 10:35:58 +02:00
</div>
</div>
2022-07-28 17:22:51 +02:00
2022-09-06 12:27:55 +02:00
@if (ReportStatusView.ReportItems.Any())
2022-07-28 17:22:51 +02:00
{
2022-09-06 17:30:26 +02:00
<AdvisorActivityTableComponent Activities="ReportStatusView.ReportItems" />
2022-07-28 17:22:51 +02:00
}
else
{
2022-11-14 17:06:43 +01:00
<LoaderThreeDots />
2022-07-28 17:22:51 +02:00
}