66 lines
2 KiB
Text
66 lines
2 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 = "Adviser")]
|
||
|
@page "/activity-today"
|
||
|
|
||
|
<div class="row mb-1 align-items-center">
|
||
|
<div class="col-md-4">
|
||
|
<span class="workDate">@(string.IsNullOrWhiteSpace(_workDate) ? "" : $"{DateTime.Parse(_workDate).ToLongDateString()}")</span>
|
||
|
</div>
|
||
|
<div class="col-md-4">
|
||
|
<WorkDateComponent OnChanged="GetActivities"></WorkDateComponent>
|
||
|
</div>
|
||
|
<div class="col">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<hr/>
|
||
|
<h5>Dagens aktivitet</h5>
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr class="align-items-center">
|
||
|
<th scope="col">Kunde</th>
|
||
|
<th scope="col">Demo</th>
|
||
|
<th scope="col">Salg</th>
|
||
|
<th scope="col">Sum</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@if (_view != null)
|
||
|
{
|
||
|
foreach (var activity in _view.Activities)
|
||
|
{
|
||
|
<tr class="align-items-center">
|
||
|
<td>
|
||
|
@activity.Company.Name
|
||
|
</td>
|
||
|
<td>
|
||
|
@activity.Demo
|
||
|
</td>
|
||
|
<td>
|
||
|
@activity.SalesResume
|
||
|
</td>
|
||
|
<td>
|
||
|
@activity.OrderAmount
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|