Wonky.Client/Wonky.Client/Pages/ActivityListTodayPage.razor
2022-12-22 08:19:08 +01:00

48 lines
1.7 KiB
Text

@*
// 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]
//
*@
@using Microsoft.AspNetCore.Authorization
@using Wonky.Client.Components
@attribute [Authorize(Roles = "Advisor")]
@page "/activity-today"
<div class="row bg-dark text-white rounded-2 mb-2 py-2 align-items-center">
<div class="col-sm-7">
<WorkDateComponent OnChangedCallback="GetActivities"/>
</div>
<div class="col-sm-3">
<AdvisorActivityKmStartComponent/>
</div>
<div class="col-sm-2 text-end">
@if (ReportExist)
{
<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>
}
else
{
<a class="btn btn-primary" href="/sales-reports/new">Rapport <i style="font-size:1.2em;" class="bi-plus-lg"></i></a>
}
</div>
</div>
@if (ReportStatusView.ReportItems.Any())
{
<AdvisorActivityTableComponent ActivityList="ReportStatusView.ReportItems"/>
}
@if (Working)
{
<WorkingThreeDots/>
}