2023-03-07 12:40:02 +01:00
|
|
|
@* Copyright (C) 2022 FCS Frede's Computer Services.
|
2022-12-31 13:53:02 +01:00
|
|
|
// 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]
|
|
|
|
*@
|
2023-03-07 12:40:02 +01:00
|
|
|
|
2022-12-15 17:05:09 +01:00
|
|
|
@using Wonky.Client.Components
|
|
|
|
@using Wonky.Client.Models
|
2022-12-31 13:53:02 +01:00
|
|
|
@using Microsoft.AspNetCore.Authorization
|
2023-04-11 15:50:24 +02:00
|
|
|
@using Wonky.Client.Enums
|
2022-12-31 13:53:02 +01:00
|
|
|
@attribute [Authorize(Roles = "Advisor")]
|
2023-01-16 13:53:09 +01:00
|
|
|
@page "/advisor/agreements"
|
2023-01-15 18:46:27 +01:00
|
|
|
<PageTitle>Aftaler og Tilbud - Oversigt</PageTitle>
|
2022-12-15 17:05:09 +01:00
|
|
|
<div class="row g-3 align-items-center">
|
2022-12-20 09:56:42 +01:00
|
|
|
<div class="col-sm-8">
|
|
|
|
<h2>Aftaler og Tilbud</h2>
|
2022-12-15 17:05:09 +01:00
|
|
|
</div>
|
2022-12-20 09:56:42 +01:00
|
|
|
<div class="col-sm-4 text-end">
|
2022-12-15 17:05:09 +01:00
|
|
|
<div class="btn-group btn-group" role="group" aria-label="Filter tilbud">
|
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter4" autocomplete="off" @onchange="() => FilterQuotes(QuoteStatus.All)"/>
|
2023-01-10 14:58:14 +01:00
|
|
|
<label class="btn btn-dark" for="btn-filter4"><i class="bi-list"style="font-size: 1.3rem"></i></label>
|
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter1" autocomplete="off" @onchange="() => FilterQuotes(QuoteStatus.Lose)"/>
|
2023-01-10 14:58:14 +01:00
|
|
|
<label class="btn btn-dark" for="btn-filter1"><i class="bi-trash-fill"style="font-size: 1.3rem"></i></label>
|
2022-12-15 17:05:09 +01:00
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter2" autocomplete="off" @onchange="() => FilterQuotes(QuoteStatus.Archive)"/>
|
2023-01-10 14:58:14 +01:00
|
|
|
<label class="btn btn-dark" for="btn-filter2"><i class="bi-archive-fill"style="font-size: 1.3rem"></i></label>
|
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter5" autocomplete="off" @onchange="() => FilterQuotes(QuoteStatus.None)"/>
|
2023-01-10 14:58:14 +01:00
|
|
|
<label class="btn btn-dark" for="btn-filter5"><i class="bi-question-circle-fill"style="font-size: 1.3rem"></i></label>
|
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter3" autocomplete="off" @onchange="() => FilterQuotes(QuoteStatus.Note)"/>
|
2023-01-10 14:58:14 +01:00
|
|
|
<label class="btn btn-dark" for="btn-filter3"><i class="bi-tag-fill"style="font-size: 1.3rem"></i></label>
|
2022-12-15 17:05:09 +01:00
|
|
|
|
2023-03-04 12:14:21 +01:00
|
|
|
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter6" autocomplete="off" @onchange="() => FilterQuotes(QuoteStatus.NoteOpen)" checked/>
|
2023-01-10 14:58:14 +01:00
|
|
|
<label class="btn btn-dark" for="btn-filter6"><i class="bi-activity"style="font-size: 1.3rem"></i></label>
|
2022-12-15 17:05:09 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@*
|
|
|
|
<div class="form-check">
|
|
|
|
<input class="form-check-input" type="checkbox" id="showAll"
|
2023-05-08 09:26:50 +02:00
|
|
|
@bind-Value="Filtered" @bind-Value:event="onchange" onclick="@FilterQuotes" disabled="@(!Quotes.Any())"/>
|
2022-12-15 17:05:09 +01:00
|
|
|
<label for="showAll" class="form-check-label">Vis alle</label>
|
|
|
|
</div>
|
|
|
|
*@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-02-10 14:58:09 +01:00
|
|
|
<QuoteListComponent Quotes="FilteredQuotes" OnChangedCallback="UpdateQuoteCallback" />
|
2022-12-15 17:05:09 +01:00
|
|
|
|
|
|
|
@if (Working)
|
|
|
|
{
|
|
|
|
<WorkingThreeDots/>
|
2022-12-20 09:59:16 +01:00
|
|
|
}
|