|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
|
|
|
|
|
<p>Ajouter une recherche</p>
|
|
|
|
|
|
|
|
|
|
<DataGrid TItem="Quote"
|
|
|
|
|
<DataGrid TItem="Quote"
|
|
|
|
|
Data="@quotes"
|
|
|
|
|
PageSize="@MaxValue"
|
|
|
|
|
ReadData="@OnReadData"
|
|
|
|
@ -15,15 +15,36 @@
|
|
|
|
|
ShowPager
|
|
|
|
|
Responsive>
|
|
|
|
|
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Id)" Caption="Id"/>
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Content)" Caption="Citation"/>
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Charac)" Caption="Personage"/>
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.TitleSrc)" Caption="Source" />
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Langue)" Caption="Langue" />
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.DateSrc)" Caption="Date" DisplayFormat="{0:d}" DisplayFormatProvider="@System.Globalization.CultureInfo.GetCultureInfo("fr-FR")" />
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Id)" Caption="Action">
|
|
|
|
|
<DisplayTemplate>
|
|
|
|
|
<a href="Edit/@(context.Id)" class="btn btn-primary"><i class="fa fa-edit"></i> Editer</a>
|
|
|
|
|
</DisplayTemplate>
|
|
|
|
|
</DataGridColumn>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Id)" Caption="Id"/>
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Content)" Caption="Citation"/>
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Charac)" Caption="Personage"/>
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.TitleSrc)" Caption="Source" />
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Langue)" Caption="Langue" />
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.DateSrc)" Caption="Date" DisplayFormat="{0:d}" DisplayFormatProvider="@System.Globalization.CultureInfo.GetCultureInfo("fr-FR")" />
|
|
|
|
|
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Id)" Caption="Action">
|
|
|
|
|
<DisplayTemplate>
|
|
|
|
|
<button @onclick="() => OnEditButtonClicked(context) " style="background-color: lightgray; padding: 0">
|
|
|
|
|
<img alt="Bouton Modifier" src="edit.png" width="30" height="30"/>
|
|
|
|
|
</button>
|
|
|
|
|
@*<a href="Edit/@(context.Id)" class="btn btn-primary"><i class="fa fa-edit"></i> Editer</a>*@
|
|
|
|
|
|
|
|
|
|
</DisplayTemplate>
|
|
|
|
|
</DataGridColumn>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
|
|
@if (showEditQuote && selectedQuote != null)
|
|
|
|
|
{
|
|
|
|
|
<div class="divPopup">
|
|
|
|
|
<div class="contentPopup">
|
|
|
|
|
<p>Modifier les informations de l'utilisateur :</p>
|
|
|
|
|
<label>Citation:</label>
|
|
|
|
|
<input type="text" @bind="selectedQuote.Content"/>
|
|
|
|
|
<label>Personnage:</label>
|
|
|
|
|
<input type="text" @bind="selectedQuote.Charac" />
|
|
|
|
|
<label>Source:</label>
|
|
|
|
|
<input type="text" @bind="selectedQuote.TitleSrc" />
|
|
|
|
|
<button @onclick="EditQuote">Sauvegarder </button>
|
|
|
|
|
<button @onclick="ClosePopup">Annuler</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|