shit commit for future dev
continuous-integration/drone/push Build is passing Details

blazor
Antoine JOURDAIN 1 year ago
parent 276d9668f2
commit 8bbc76c255

@ -3,10 +3,9 @@ namespace adminBlazor.Models
{
public class Translation
{
private int id;
private string word1;
private string word2;
private int listVoc;
private int Id { get; set; }
private string FirstWord { get; set; }
private string SecondWord { get; set; }
}
}

@ -18,9 +18,20 @@
ShowPager
Responsive>
<DataGridColumn TItem="VocabularyList" Field="@nameof(VocabularyList.Id)" Caption="Image">
<DisplayTemplate>
@if (!string.IsNullOrWhiteSpace(context.ImageBase64))
{
<img src="@($"data:image/png;base64, {context.ImageBase64}")" class="img-thumbnail" style="min-width: 50px; max-width: 150px" />
}
else
{
<img src="images/default.jpeg" class="img-thumbnail" style="max-width: 150px" />
}
</DisplayTemplate>
</DataGridColumn>
<DataGridColumn TItem="VocabularyList" Field="@nameof(VocabularyList.Id)" Caption="id" />
<DataGridColumn TItem="VocabularyList" Field="@nameof(VocabularyList.Name)" Caption="Name" />
<DataGridColumn TItem="VocabularyList" Field="@nameof(VocabularyList.Image)" Caption="Image" />
<DataGridColumn TItem="VocabularyList" Field="@nameof(VocabularyList.Aut)" Caption="Author ID">
<DisplayTemplate>
@if (context is VocabularyList voc)

@ -20,8 +20,8 @@
{
CurrentUser = new List<AppUser>
{
new AppUser { UserName = "Admin", Password = "123456", Roles = new List<string> { "admin" } },
new AppUser{ UserName ="Teacher1", Password = "123456", Roles = new List<string>{ "teacher" } }
new AppUser { UserName = "Admin", Password = "1", Roles = new List<string> { "admin" } },
new AppUser{ UserName = "Teacher", Password = "1", Roles = new List<string>{ "teacher" } }
};
}

Loading…
Cancel
Save