Compare commits
4 Commits
master
...
pages_list
Author | SHA1 | Date |
---|---|---|
|
0f1ddf467a | 2 years ago |
|
9c402bb5ce | 2 years ago |
|
8980c31462 | 2 years ago |
|
69cafafb14 | 2 years ago |
@ -0,0 +1,16 @@
|
||||
@page "/answers"
|
||||
@using Blazor.Models;
|
||||
@using Blazorise.DataGrid
|
||||
<h3>Answers</h3>
|
||||
|
||||
<DataGrid TItem="Answer"
|
||||
Data="@answers"
|
||||
ReadData="@OnReadData"
|
||||
TotalItems="@totalItem"
|
||||
PageSize="10"
|
||||
ShowPager
|
||||
Responsive>
|
||||
<DataGridColumn TItem="Answer" Field="@nameof(Answer.Id)" Caption="#" />
|
||||
<DataGridColumn TItem="Answer" Field="@nameof(Answer.Content)" Caption="Display content" />
|
||||
<DataGridColumn TItem="Answer" Field="@nameof(Answer.IdQuestion)" Caption="# question" />
|
||||
</DataGrid>
|
@ -0,0 +1,15 @@
|
||||
@page "/players"
|
||||
@using Blazor.Models;
|
||||
@using Blazorise.DataGrid
|
||||
<h3>Players</h3>
|
||||
|
||||
<DataGrid TItem="Player"
|
||||
Data="@players"
|
||||
ReadData="@OnReadData"
|
||||
TotalItems="@totalItem"
|
||||
PageSize="10"
|
||||
ShowPager
|
||||
Responsive>
|
||||
<DataGridColumn TItem="Player" Field="@nameof(Player.Id)" Caption="#" />
|
||||
<DataGridColumn TItem="Player" Field="@nameof(Player.Nickname)" Caption="Display nickname" />
|
||||
</DataGrid>
|
@ -0,0 +1,19 @@
|
||||
@page "/questions"
|
||||
@using Blazor.Models;
|
||||
@using Blazorise.DataGrid
|
||||
<h3>Questions</h3>
|
||||
|
||||
<DataGrid TItem="Question"
|
||||
Data="@questions"
|
||||
ReadData="@OnReadData"
|
||||
TotalItems="@totalItem"
|
||||
PageSize="10"
|
||||
ShowPager
|
||||
Responsive>
|
||||
<DataGridColumn TItem="Question" Field="@nameof(Question.Id)" Caption="#" />
|
||||
<DataGridColumn TItem="Question" Field="@nameof(Question.IdChapter)" Caption="# chapter" />
|
||||
<DataGridColumn TItem="Question" Field="@nameof(Question.IdAnswerGood)" Caption="# correct aswer" />
|
||||
<DataGridColumn TItem="Question" Field="@nameof(Question.Content)" Caption="Display content" />
|
||||
<DataGridColumn TItem="Question" Field="@nameof(Question.Difficulty)" Caption="Difficulty" />
|
||||
<DataGridColumn TItem="Question" Field="@nameof(Question.nbFails)" Caption="Number of fails" />
|
||||
</DataGrid>
|
Loading…
Reference in new issue