parent
a098e11154
commit
2449c27f4e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,16 @@
|
|||||||
|
@page "/tickets/add"
|
||||||
|
|
||||||
|
<h3>Add Ticket</h3>
|
||||||
|
|
||||||
|
@*<EditForm Model="@TicketModel" OnValidSubmit="@HandleValidSubmit">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
<ValidationSummary />
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<label>
|
||||||
|
<InputCheckbox @bind-Value="ticketModel.Urgence" Value="boolean"/>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<button type="submit">Submit</button>
|
||||||
|
</EditForm>*@
|
@ -0,0 +1,3 @@
|
|||||||
|
@page "/admin"
|
||||||
|
|
||||||
|
<h3>Admin Page</h3>
|
@ -1,11 +1,29 @@
|
|||||||
@page "/banned-users"
|
@page "/banned-users"
|
||||||
|
@using HeartTrack.Models
|
||||||
<PageTitle>Banned Users</PageTitle>
|
<PageTitle>Banned Users</PageTitle>
|
||||||
|
|
||||||
<h1>Banned Users</h1>
|
<h1>Banned Users</h1>
|
||||||
|
|
||||||
This is banned users list of this website.
|
This is banned users list of this website.
|
||||||
|
<div>
|
||||||
|
<NavLink class="btn btn-primary" href="banned-users/add" Match="NavLinkMatch.All">
|
||||||
|
<i class="fa fa-plus"></i> Ajouter
|
||||||
|
</NavLink>
|
||||||
|
</div>
|
||||||
<SurveyPrompt Title="How is Blazor working for you?" />
|
<SurveyPrompt Title="How is Blazor working for you?" />
|
||||||
|
|
||||||
|
<DataGrid TItem="User"
|
||||||
|
Data="@users"
|
||||||
|
ReadData="@OnReadData"
|
||||||
|
TotalItems="@totalUser"
|
||||||
|
PageSize="10"
|
||||||
|
ShowPager
|
||||||
|
Responsive>
|
||||||
|
<DataGridColumn TItem="User" Field="@nameof(User.Id)" Caption="Id" />
|
||||||
|
<DataGridColumn TItem="User" Field="@nameof(User.Username)" Caption="@Localizer["Username"]" />
|
||||||
|
<DataGridColumn TItem="User" Field="@nameof(User.Nom)" Caption="@Localizer["FirstN"]" />
|
||||||
|
<DataGridColumn TItem="User" Field="@nameof(User.Prenom)" Caption="@Localizer["LastN"]" />
|
||||||
|
<DataGridColumn Caption="" />
|
||||||
|
</DataGrid>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
@page "/fetchdata"
|
|
||||||
|
|
||||||
<PageTitle>Weather forecast</PageTitle>
|
|
||||||
|
|
||||||
@using HeartTrack.Data
|
|
||||||
@inject WeatherForecastService ForecastService
|
|
||||||
|
|
||||||
<h1>Weather forecast</h1>
|
|
||||||
|
|
||||||
<p>This component demonstrates fetching data from a service.</p>
|
|
||||||
|
|
||||||
@if (forecasts == null)
|
|
||||||
{
|
|
||||||
<p><em>Loading...</em></p>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Date</th>
|
|
||||||
<th>Temp. (C)</th>
|
|
||||||
<th>Temp. (F)</th>
|
|
||||||
<th>Summary</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@foreach (var forecast in forecasts)
|
|
||||||
{
|
|
||||||
<tr>
|
|
||||||
<td>@forecast.Date.ToShortDateString()</td>
|
|
||||||
<td>@forecast.TemperatureC</td>
|
|
||||||
<td>@forecast.TemperatureF</td>
|
|
||||||
<td>@forecast.Summary</td>
|
|
||||||
</tr>
|
|
||||||
}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
}
|
|
||||||
|
|
||||||
@code {
|
|
||||||
private WeatherForecast[]? forecasts;
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
|
||||||
{
|
|
||||||
forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
@page "/login"
|
||||||
|
@layout AuthLayout
|
||||||
|
|
||||||
|
<h1 class="h2 font-weight-normal login-title">
|
||||||
|
Login
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<EditForm class="form-signin" OnValidSubmit="OnSubmit" Model="loginRequest">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
|
||||||
|
<label for="inputUsername" class="sr-only">User Name</label>
|
||||||
|
<InputText id="inputUsername" class="form-control" @bind-Value="loginRequest.UserName" autofocus placeholder="Username" />
|
||||||
|
<ValidationMessage For="@(() => loginRequest.UserName)" />
|
||||||
|
|
||||||
|
<label for="inputPassword" class="sr-only">Password</label>
|
||||||
|
<InputText type="password" id="inputPassword" class="form-control" placeholder="Password" @bind-Value="loginRequest.Password" />
|
||||||
|
<ValidationMessage For="@(() => loginRequest.Password)" />
|
||||||
|
|
||||||
|
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
|
||||||
|
|
||||||
|
<label class="text-danger">@error</label>
|
||||||
|
|
||||||
|
<NavLink href="register">
|
||||||
|
<h6 class="font-weight-normal text-center">Create account</h6>
|
||||||
|
</NavLink>
|
||||||
|
</EditForm>
|
@ -0,0 +1,29 @@
|
|||||||
|
@page "/register"
|
||||||
|
@layout AuthLayout
|
||||||
|
|
||||||
|
<h1 class="h2 font-weight-normal login-title">
|
||||||
|
Register
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<EditForm class="form-signin" OnValidSubmit="OnSubmit" Model="registerRequest">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
|
||||||
|
<label for="inputUsername" class="sr-only">User Name</label>
|
||||||
|
<InputText id="inputUsername" class="form-control" placeholder="Username" autofocus @bind-Value="@registerRequest.UserName" />
|
||||||
|
<ValidationMessage For="@(() => registerRequest.UserName)" />
|
||||||
|
|
||||||
|
<label for="inputPassword" class="sr-only">Password</label>
|
||||||
|
<InputText type="password" id="inputPassword" class="form-control" placeholder="Password" @bind-Value="@registerRequest.Password" />
|
||||||
|
<ValidationMessage For="@(() => registerRequest.Password)" />
|
||||||
|
|
||||||
|
<label for="inputPasswordConfirm" class="sr-only">Password Confirmation</label>
|
||||||
|
<InputText type="password" id="inputPasswordConfirm" class="form-control" placeholder="Password Confirmation" @bind-Value="@registerRequest.PasswordConfirm" />
|
||||||
|
<ValidationMessage For="@(() => registerRequest.PasswordConfirm)" />
|
||||||
|
|
||||||
|
<button class="btn btn-lg btn-primary btn-block" type="submit">Create account</button>
|
||||||
|
|
||||||
|
<label class="text-danger">@error</label>
|
||||||
|
<NavLink href="login">
|
||||||
|
<h6 class="font-weight-normal text-center">Already have an account? Click here to login</h6>
|
||||||
|
</NavLink>
|
||||||
|
</EditForm>
|
@ -0,0 +1,20 @@
|
|||||||
|
@page "/test"
|
||||||
|
<div class="text-center bg-blue-100">
|
||||||
|
<input class="border-4 w-1/3 rounded m-6 p-6 h-8
|
||||||
|
border-blue-300" @bind-value="SearchText"
|
||||||
|
@bind-value:event="oninput" placeholder="Search by title" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@if (!Users.Any())
|
||||||
|
{
|
||||||
|
<p>Loading some images...</p>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="p-2 grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3">
|
||||||
|
@foreach (var user in FilteredUsers)
|
||||||
|
{
|
||||||
|
<p>feur</p>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
@inherits LayoutComponentBase
|
||||||
|
<div class="main">
|
||||||
|
<div class="content px-4">
|
||||||
|
@Body
|
||||||
|
</div>
|
||||||
|
</div>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
d30ed4a3a42cee40f2ca209ab170f57dc5eeac4fd8080332dd4fcbae3a663d09
|
5a687aac22c0782076c5bfe0a6928ecd6e1ff431e08fce9b31ef12d9f3e7872b
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
c63d2a571d8336634ecbf160550214c50149e1f4299792f26181df7f54f2a67c
|
745ea91892ff6a7a3b964f04dfaa384d73fe1ef6a90b3230451e2306bbffd4b3
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue