diff --git a/Blazor/Blazor/Pages/Admins/AddAdministrator.razor b/Blazor/Blazor/Pages/Admins/AddAdministrator.razor index 6b74e4f..6aa0230 100644 --- a/Blazor/Blazor/Pages/Admins/AddAdministrator.razor +++ b/Blazor/Blazor/Pages/Admins/AddAdministrator.razor @@ -1,24 +1,35 @@ @page "/addAdministrator" @using Blazor.Models +@using Blazor.Components -

@Localizer["Title"]

- - - + -

- -

-

- -

+
+
+

@Localizer["Title"]

+ + + +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
- -
\ No newline at end of file + + + +
+
\ No newline at end of file diff --git a/Blazor/Blazor/Pages/Chapters/AddChapter.razor b/Blazor/Blazor/Pages/Chapters/AddChapter.razor index 167b818..b015b44 100644 --- a/Blazor/Blazor/Pages/Chapters/AddChapter.razor +++ b/Blazor/Blazor/Pages/Chapters/AddChapter.razor @@ -1,20 +1,29 @@ @page "/addChapter" @using Blazor.Models +@using Blazor.Components -

@Localizer["Title"]

+ +
+
+

@Localizer["Title"]

- - - -

- -

+ + + + +
+
+ +
+
+ +
+
- -
\ No newline at end of file + +
+
+
\ No newline at end of file diff --git a/Blazor/Blazor/Pages/Index.razor b/Blazor/Blazor/Pages/Index.razor new file mode 100644 index 0000000..d0073f0 --- /dev/null +++ b/Blazor/Blazor/Pages/Index.razor @@ -0,0 +1,11 @@ +@page "/" + +Home + +
+ Logo MathsEduc +
+ +

@Localizer["Title"]

+ +

@Localizer["Text"]

diff --git a/Blazor/Blazor/Pages/Index.razor.cs b/Blazor/Blazor/Pages/Index.razor.cs new file mode 100644 index 0000000..88084ae --- /dev/null +++ b/Blazor/Blazor/Pages/Index.razor.cs @@ -0,0 +1,12 @@ +using Blazor.Pages.Questions; +using Microsoft.AspNetCore.Components; +using Microsoft.Extensions.Localization; + +namespace Blazor.Pages +{ + public partial class Index + { + [Inject] + public IStringLocalizer Localizer { get; set; } + } +} diff --git a/Blazor/Blazor/Pages/Players/AddPlayer.razor b/Blazor/Blazor/Pages/Players/AddPlayer.razor index 5719fb5..45c794b 100644 --- a/Blazor/Blazor/Pages/Players/AddPlayer.razor +++ b/Blazor/Blazor/Pages/Players/AddPlayer.razor @@ -1,23 +1,36 @@ @page "/addPlayer" @using Blazor.Models +@using Blazor.Components -

@Localizer["Title"]

+ - - - +
+
+

@Localizer["Title"]

-

- - -

+ + + +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
- -
\ No newline at end of file + + + +
+
\ No newline at end of file diff --git a/Blazor/Blazor/Pages/Questions/AddQuestion.razor b/Blazor/Blazor/Pages/Questions/AddQuestion.razor index 5dd9421..944e366 100644 --- a/Blazor/Blazor/Pages/Questions/AddQuestion.razor +++ b/Blazor/Blazor/Pages/Questions/AddQuestion.razor @@ -1,46 +1,72 @@ @page "/addQuestion" @using Blazor.Models +@using Blazor.Components -

@Localizer["Title"]

- - - - -

- -

-

- -

- - @foreach (var index in Enumerable.Range(0, answerModels.Count)) - { - var answerModel = answerModels[index]; - var checkbox = checkboxs[index]; - -

- - -

- } - -
+ + +
+
+

@Localizer["Title"]

+ + + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + @if (chapters != null) + { + foreach (var chapter in chapters) + { + + } + } + +
+
+ + @foreach (var index in Enumerable.Range(0, answerModels.Count)) + { + var answerModel = answerModels[index]; + var checkbox = checkboxs[index]; + +
+
+ +
+
+ +
+
+ +
+
+ } + +
+
+ +
+
+
+
+
diff --git a/Blazor/Blazor/Resources/Pages.Index.fr-FR.resx b/Blazor/Blazor/Resources/Pages.Index.fr-FR.resx new file mode 100644 index 0000000..fa05050 --- /dev/null +++ b/Blazor/Blazor/Resources/Pages.Index.fr-FR.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + C'est la partie administrateur de l'application MathsEduc. Vous pouvez modifier/ajouter/supprimer des questions ou gérer les joueurs, les administrateurs et les chapitres. + + + Bienvenue sur le backoffice de MathsEduc + + \ No newline at end of file diff --git a/Blazor/Blazor/Resources/Pages.Index.resx b/Blazor/Blazor/Resources/Pages.Index.resx new file mode 100644 index 0000000..127c567 --- /dev/null +++ b/Blazor/Blazor/Resources/Pages.Index.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + This is the administrator part of the MathsEduc application. You can edit/add/delete questions or manage players, admins and chapters. + + + Welcome to the MathsEduc backoffice + + \ No newline at end of file diff --git a/Blazor/Blazor/Shared/NavMenu.razor b/Blazor/Blazor/Shared/NavMenu.razor index b40353e..19d0c42 100644 --- a/Blazor/Blazor/Shared/NavMenu.razor +++ b/Blazor/Blazor/Shared/NavMenu.razor @@ -1,10 +1,10 @@