Initial Commit to Add RestAPI Server to IEC
[iec.git] / src / foundation / api / apiserver / app / views / flash.html
diff --git a/src/foundation/api/apiserver/app/views/flash.html b/src/foundation/api/apiserver/app/views/flash.html
new file mode 100644 (file)
index 0000000..1c764c0
--- /dev/null
@@ -0,0 +1,18 @@
+{{if .flash.success}}
+<div class="alert alert-success">
+       {{.flash.success}}
+</div>
+{{end}}
+
+{{if or .errors .flash.error}}
+<div class="alert alert-danger">
+       {{if .flash.error}}
+               {{.flash.error}}
+       {{end}}
+       <ul style="margin-top:10px;">
+               {{range .errors}}
+                       <li>{{.}}</li>
+               {{end}}
+       </ul>
+</div>
+{{end}}