Adding a Blazor WASM app
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
@page "/cities"
|
||||
|
||||
<PageHeader Name="Villes" NameType="Liste" Link="/cities/create"></PageHeader>
|
||||
|
||||
<Card>
|
||||
<table class="table table-responsive">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th class="text-nowrap">Nom</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(Cities != null)
|
||||
{
|
||||
@foreach (var city in Cities)
|
||||
{
|
||||
<tr>
|
||||
<th>@city.Id</th>
|
||||
<td>@city.Name</td>
|
||||
</tr>
|
||||
}
|
||||
} else
|
||||
{
|
||||
<tr>
|
||||
<td colspan="2">Chargement...</td>
|
||||
</tr>
|
||||
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</Card>
|
||||
Reference in New Issue
Block a user