aboutsummaryrefslogtreecommitdiff
path: root/app/views/fragments/flashBanner.scala.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/fragments/flashBanner.scala.html')
-rw-r--r--app/views/fragments/flashBanner.scala.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/fragments/flashBanner.scala.html b/app/views/fragments/flashBanner.scala.html
new file mode 100644
index 0000000..41766f9
--- /dev/null
+++ b/app/views/fragments/flashBanner.scala.html
@@ -0,0 +1,13 @@
1@()(implicit flash:Flash)
2
3@displayFlash(flashType: String) = {
4 @for(message <- flash.get(flashType)) {
5 <div class="@flashType">
6 @message
7 </div>
8 }
9}
10
11@for(flashType <- List("success", "info", "warning", "error")) {
12 @displayFlash(flashType)
13}