Wonky.Client/Wonky.Client/Pages/ActivityTodayListPage.razor

49 lines
1.8 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
@attribute [Authorize(Roles = "Adviser")]
@page "/activity-today"
<div class="card">
<div class="card-header">
<div class="row mb-1 align-items-center">
2022-07-02 16:15:28 +02:00
<div class="col-md-6">
2022-06-30 16:15:04 +02:00
<h2 class="workDate">@(string.IsNullOrWhiteSpace(_workDate) ? "" : $"{DateTime.Parse(_workDate).ToLongDateString()}")</h2>
</div>
2022-07-02 16:15:28 +02:00
<div class="col-md-4">
<WorkDateComponent OnChanged="GetActivities"></WorkDateComponent>
</div>
2022-07-02 16:15:28 +02:00
<div class="col-md-2">
2022-06-20 06:28:48 +02:00
@if (_reportExist)
{
<a class="btn btn-primary" href="/sales-reports/view/@_workDate">RAPPORT</a>
}
else
{
<a class="btn btn-primary" href="/sales-reports/new">RAPPORT</a>
}
</div>
</div>
2022-06-18 10:35:58 +02:00
</div>
</div>
<div class="card-body">
2022-07-02 16:15:28 +02:00
<ActivityTableComponent Activities="ReportItemListView.ReportItems"></ActivityTableComponent>
</div>