diff --git a/FoodsharingSiegen.Server/Controls/InteractionRow.razor b/FoodsharingSiegen.Server/Controls/InteractionRow.razor
index a0a2891..13d405f 100644
--- a/FoodsharingSiegen.Server/Controls/InteractionRow.razor
+++ b/FoodsharingSiegen.Server/Controls/InteractionRow.razor
@@ -34,12 +34,15 @@
private bool Done => Interactions.Count >= Minimum;
private bool NotNeeded => Interactions.Any(x => x.NotNeeded);
+
+ private bool Alert => Interactions.Any(x => x.Alert);
}
@{
var rowClass = "";
if (Done) rowClass += " done";
if (NotNeeded) rowClass += " notneeded";
+ if (Alert) rowClass += " fs-alert";
}
diff --git a/FoodsharingSiegen.Server/Controls/InteractionRow.razor.css b/FoodsharingSiegen.Server/Controls/InteractionRow.razor.css
index cbd74e1..f77c863 100644
--- a/FoodsharingSiegen.Server/Controls/InteractionRow.razor.css
+++ b/FoodsharingSiegen.Server/Controls/InteractionRow.razor.css
@@ -4,4 +4,9 @@
tr.notneeded {
filter: grayscale(100%);
+}
+
+tr.fs-alert,
+tr.fs-alert th {
+ color: orange;
}
\ No newline at end of file
diff --git a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor
index 19ef1ed..37d93c1 100644
--- a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor
+++ b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor
@@ -12,7 +12,12 @@
- Nicht benötigt
+ Nicht benötigt
+
+
+
+
+ Achtung!
diff --git a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs
index e83eaa0..463f222 100644
--- a/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs
+++ b/FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor.cs
@@ -21,6 +21,7 @@ namespace FoodsharingSiegen.Server.Dialogs
private string _header;
private string _infoName;
private bool _showInfo;
+ private bool _showAlert;
private bool _showNotNeeded;
protected override async Task OnParametersSetAsync()
@@ -34,6 +35,8 @@ namespace FoodsharingSiegen.Server.Dialogs
{
if (prospectId == null) return;
_showInfo = false;
+ _showNotNeeded = false;
+ _showAlert = false;
_infoName = "Kommentar";
switch (type)
@@ -41,6 +44,7 @@ namespace FoodsharingSiegen.Server.Dialogs
case InteractionType.EinAb:
_header = "Einführung eintragen";
_showInfo = true;
+ _showAlert = true;
_infoName = "Welcher Betrieb?";
break;
case InteractionType.Welcome:
@@ -48,6 +52,7 @@ namespace FoodsharingSiegen.Server.Dialogs
break;
case InteractionType.IdCheck:
_header = "Ausweisprüfung eintragen";
+ _showAlert = true;
_showInfo = true;
break;
case InteractionType.PrintPass:
@@ -68,7 +73,7 @@ namespace FoodsharingSiegen.Server.Dialogs
_showInfo = true;
break;
}
-
+
Interaction = new Interaction
{
Type = type,
diff --git a/FoodsharingSiegen.Server/_Imports.razor b/FoodsharingSiegen.Server/_Imports.razor
index c5a4431..38f62e9 100644
--- a/FoodsharingSiegen.Server/_Imports.razor
+++ b/FoodsharingSiegen.Server/_Imports.razor
@@ -9,4 +9,5 @@
@using FoodsharingSiegen.Server
@using FoodsharingSiegen.Server.Shared
@using Blazorise
-@using Blazorise.DataGrid
\ No newline at end of file
+@using Blazorise.DataGrid
+@using Blazorise.Components
\ No newline at end of file