Skip to content

Commit

Permalink
Reworked DeleteMultipleContentConfirmationDialog.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinHo64 committed Jul 11, 2024
1 parent 4e9b448 commit 17cffe0
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@using System.Diagnostics.CodeAnalysis
@using Microsoft.Extensions.Localization
@using Presentation.PresentationLogic.LearningContent
@using Presentation.PresentationLogic.LearningElement
@using Presentation.PresentationLogic.LearningWorld
@using System.Diagnostics.CodeAnalysis
<MudDialog>
<DialogContent>
<MudText Class="main-text">
@((MarkupString)Localizer["Dialog.Text1", "ContentName"].Value)<br/>
@((MarkupString)Localizer["Dialog.Text1"].Value)<br/>
@Localizer["Dialog.Text2"]
</MudText>
<MudTable Items="ContentWorldElementInUseList">
Expand All @@ -32,7 +32,7 @@
@code {

[Inject, AllowNull] //can never be null, DI will throw exception on unresolved types - n.stich
internal IStringLocalizer<DeleteContentInUseConfirmationDialog> Localizer { get; set; }
internal IStringLocalizer<DeleteMultipleContentConfirmationDialog> Localizer { get; set; }

[CascadingParameter] public MudDialogInstance? MudDialog { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>

<root>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root"
xmlns="">
<xsd:element name="root" msdata:IsDataSet="true">

</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<data name="Dialog.Button.Delete.Text" xml:space="preserve">
<value>Löschen</value>
</data>
<data name="Dialog.Button.Cancel.Text" xml:space="preserve">
<value>Abbrechen</value>
</data>
<data name="Dialog.Text1" xml:space="preserve">
<value>Wollen Sie wirklich die folgenden Dateien löschen?</value>
</data>
<data name="Dialog.Text2" xml:space="preserve">
<value>Die Dateien werden momentan in den folgenden Lernelementen verwendet:</value>
</data>
<data name="Dialog.Header.World" xml:space="preserve">
<value>Lernwelt</value>
</data>
<data name="Dialog.Header.Element" xml:space="preserve">
<value>Lernelement</value>
</data>
<data name="Dialog.Header.Content" xml:space="preserve">
<value>Lernmaterial</value>
</data>
<data name="Dialog.Button.DeleteUnused.Text" xml:space="preserve">
<value>Nicht verwendetes Lernmaterial löschen</value>
</data>
<data name="Dialog.Button.DeleteAll.Text" xml:space="preserve">
<value>Alles löschen</value>
</data>
</root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>

<root>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root"
xmlns="">
<xsd:element name="root" msdata:IsDataSet="true">

</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<data name="Dialog.Button.Cancel.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="Dialog.Button.Delete.Text" xml:space="preserve">
<value>Delete</value>
</data>
<data name="Dialog.Text2" xml:space="preserve">
<value>The files are currently in use in the following learning elements:</value>
</data>
<data name="Dialog.Text1" xml:space="preserve">
<value>Are you really sure you want to delete the following files?</value>
</data>
<data name="Dialog.Header.World" xml:space="preserve">
<value>Learning world</value>
</data>
<data name="Dialog.Header.Element" xml:space="preserve">
<value>Learning element</value>
</data>
<data name="Dialog.Header.Content" xml:space="preserve">
<value>Learning material</value>
</data>
<data name="Dialog.Button.DeleteUnused.Text" xml:space="preserve">
<value>Delete unused learning material</value>
</data>
<data name="Dialog.Button.DeleteAll.Text" xml:space="preserve">
<value>Delete all</value>
</data>
</root>

0 comments on commit 17cffe0

Please sign in to comment.