112 lines
3.8 KiB
Plaintext
112 lines
3.8 KiB
Plaintext
@page "/home"
|
|
@using TIAMSharedUI.Shared
|
|
@using TIAMWebApp.Shared.Application.Models;
|
|
@using TIAMWebApp.Shared.Application.Interfaces;
|
|
@using TIAMSharedUI.Shared.Components.BaseComponents
|
|
@using TIAMWebApp.Shared.Application.Services
|
|
@inherits BasePageComponent
|
|
@* @layout AdminLayout *@
|
|
@inject IPopulationStructureDataProvider DataProvider
|
|
@inject ISupplierService SupplierService
|
|
@inject IUserDataService UserDataService
|
|
@inject ExchangeRateService ExchangeRateService
|
|
<PageTitle>Sysadmin</PageTitle>
|
|
|
|
<div class="text-center m-5">
|
|
<h1>Welcome</h1>
|
|
<h2 style="font-size:small">Have a nice day!</h2>
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
|
|
|
<div class="row py-3">
|
|
<div class=" col-12 col-xl-3">
|
|
<div class="card card-admin" style="border-radius: 16px;">
|
|
|
|
<h3>Exchange Rate</h3>
|
|
|
|
@if (exchangeRate == null)
|
|
{
|
|
<p><em>Loading...</em></p>
|
|
}
|
|
else
|
|
{
|
|
<p>Current EUR to HUF exchange rate: @exchangeRate.EURtoHUF</p>
|
|
<input type="number" @bind="exchangeRate.EURtoHUF" step="0.01" />
|
|
<button @onclick="SaveExchangeRate">Save</button>
|
|
}
|
|
|
|
@* <div class="card-header py-2 px-4">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<div>
|
|
<span class="fw-bold text-body">Panel title</span>
|
|
<p class="text-muted mb-0">Subtitle</p>
|
|
</div>
|
|
<div>
|
|
<h6 class="mb-0"> <a href="#">All details</a> </h6>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body card-admin-body py-2 px-4">
|
|
<div class="d-flex flex-row mb-4 pb-2">
|
|
<div class="flex-fill">
|
|
<h5 class="bold">Some info</h5>
|
|
<p class="text-muted"> Budapest, Dózsa György út 35, 1146</p>
|
|
</div>
|
|
<div>
|
|
<!--img class="align-self-center img-fluid"
|
|
src="https://mdbcdn.b-cdn.net/img/Photos/Horizontal/E-commerce/Products/6.webp" width="250"-->
|
|
</div>
|
|
|
|
</div>
|
|
<ul id="progressbar-1" class="mx-0 mt-0 mb-5 px-0 pt-0 pb-4">
|
|
<li class="step0 active" id="step1">
|
|
<span style="margin-left: 22px; margin-top: 12px;">PLACED</span>
|
|
</li>
|
|
<li class="step0 active text-center" id="step2"><span>WAITING FOR PICK UP</span></li>
|
|
<li class="step0 text-muted text-end" id="step3">
|
|
<span style="margin-right: 22px;">FINISHED</span>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="d-flex flex-row mb-4 pb-2">
|
|
<h4> Some <span class="small text-muted"> conclusion </span></h4>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer py-2 px-4">
|
|
<div class="d-flex justify-content-between">
|
|
|
|
<a href="#!">Modify</a>
|
|
<div class="border-start h-100"></div>
|
|
|
|
|
|
</div>
|
|
</div> *@
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
@code {
|
|
|
|
|
|
private ExchangeRate exchangeRate;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
exchangeRate = await ExchangeRateService.GetExchangeRateAsync();
|
|
}
|
|
|
|
private async Task SaveExchangeRate()
|
|
{
|
|
await ExchangeRateService.SetExchangeRateAsync(exchangeRate);
|
|
}
|
|
|
|
}
|
|
|