Wonky.Client/Wonky.Client/Pages/AdvisorQuoteListPage.razor

65 lines
3.4 KiB
Text
Raw Normal View History

2022-12-31 13:53:02 +01: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-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
@attribute [Authorize(Roles = "Advisor")]
2023-01-16 13:53:09 +01:00
@page "/advisor/agreements"
<PageTitle>Aftaler og Tilbud - Oversigt</PageTitle>
2022-12-15 17:05:09 +01:00
<div class="row g-3 align-items-center">
<div class="col-sm-8">
<h2>Aftaler og Tilbud</h2>
2022-12-15 17:05:09 +01:00
</div>
<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-01-10 14:58:14 +01:00
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter4" autocomplete="off" @onchange="() => FilterQuotes(QStatus.All)"/>
<label class="btn btn-dark" for="btn-filter4"><i class="bi-list"style="font-size: 1.3rem"></i></label>
2022-12-15 17:05:09 +01:00
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter1" autocomplete="off" @onchange="() => FilterQuotes(QStatus.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
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter2" autocomplete="off" @onchange="() => FilterQuotes(QStatus.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>
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter5" autocomplete="off" @onchange="() => FilterQuotes(QStatus.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>
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter3" autocomplete="off" @onchange="() => FilterQuotes(QStatus.Note)"/>
<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
<input type="radio" class="btn-check" name="btn-filter" id="btn-filter6" autocomplete="off" @onchange="() => FilterQuotes(QStatus.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"
@bind-Value="Filtered" @bind-Value:event="onchange" @onclick="FilterQuotes" disabled="@(!Quotes.Any())"/>
<label for="showAll" class="form-check-label">Vis alle</label>
</div>
*@
</div>
</div>
<QuoteListComponent Quotes="_quotes" OnChangedCallback="UpdateQuoteCallback" />
@if (Working)
{
<WorkingThreeDots/>
2022-12-20 09:59:16 +01:00
}