|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
@page "/list"
|
|
|
|
|
@using CraftSharp.Models
|
|
|
|
|
|
|
|
|
|
<h3>List</h3>
|
|
|
|
|
<h3>@Localizer["Title"]</h3>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<NavLink class="btn btn-primary" href="Add" Match="NavLinkMatch.All">
|
|
|
|
|
<i class="fa fa-plus"></i> Ajouter
|
|
|
|
|
<i class="fa fa-plus"></i> @Localizer["Add"]
|
|
|
|
|
</NavLink>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
ShowPager
|
|
|
|
|
Responsive>
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="#" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="Image">
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="@Localizer["Image"]">
|
|
|
|
|
<DisplayTemplate>
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(context.ImageBase64))
|
|
|
|
|
{
|
|
|
|
@ -29,24 +29,24 @@
|
|
|
|
|
}
|
|
|
|
|
</DisplayTemplate>
|
|
|
|
|
</DataGridColumn>
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.DisplayName)" Caption="Display name" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.StackSize)" Caption="Stack size" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.MaxDurability)" Caption="Maximum durability" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.EnchantCategories)" Caption="Enchant categories">
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.DisplayName)" Caption="@Localizer["Display"]" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.StackSize)" Caption="@Localizer["Stack"]" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.MaxDurability)" Caption="@Localizer["Maximum"]" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.EnchantCategories)" Caption="@Localizer["Enchant"]">
|
|
|
|
|
<DisplayTemplate>
|
|
|
|
|
@(string.Join(", ", ((Item)context).EnchantCategories))
|
|
|
|
|
</DisplayTemplate>
|
|
|
|
|
</DataGridColumn>
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.RepairWith)" Caption="Repair with">
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.RepairWith)" Caption="@Localizer["Repair"]">
|
|
|
|
|
<DisplayTemplate>
|
|
|
|
|
@(string.Join(", ", ((Item)context).RepairWith))
|
|
|
|
|
</DisplayTemplate>
|
|
|
|
|
</DataGridColumn>
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.CreatedDate)" Caption="Created date" DisplayFormat="{0:d}" DisplayFormatProvider="@System.Globalization.CultureInfo.GetCultureInfo("fr-FR")" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="Action">
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.CreatedDate)" Caption="@Localizer["Created"]" DisplayFormat="{0:d}" DisplayFormatProvider="@System.Globalization.CultureInfo.GetCultureInfo("fr-FR")" />
|
|
|
|
|
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="@Localizer["Action"]">
|
|
|
|
|
<DisplayTemplate>
|
|
|
|
|
<a href="Edit/@(context.Id)" class="btn btn-primary"><i class="fa fa-edit"></i> Editer</a>
|
|
|
|
|
<button type="button" class="btn btn-primary" @onclick="() => OnDelete(context.Id)"><i class="fa fa-trash"></i> Supprimer</button>
|
|
|
|
|
<a href="Edit/@(context.Id)" class="btn btn-primary"><i class="fa fa-edit"></i> @Localizer["Edit"]</a>
|
|
|
|
|
<button type="button" class="btn btn-primary" @onclick="() => OnDelete(context.Id)"><i class="fa fa-trash"></i> @Localizer["Supp"]</button>
|
|
|
|
|
</DisplayTemplate>
|
|
|
|
|
</DataGridColumn>
|
|
|
|
|
</DataGrid>
|