2023-06-22 16:26:09 +02:00
|
|
|
|
|
|
|
{{define "content"}}
|
2023-06-23 09:03:36 +02:00
|
|
|
<div class="row">
|
2023-06-23 09:42:31 +02:00
|
|
|
<div class="col messageCol">
|
|
|
|
<div class="alert messageCard {{.MsgType}}" role="alert">
|
|
|
|
{{if eq .MsgType "alert-info"}}
|
|
|
|
<i class="bi-info-circle-fill messageIcon"></i>
|
|
|
|
<b>{{.Message}}</b>
|
|
|
|
{{else if eq .MsgType "alert-warning"}}
|
|
|
|
<i class="bi-question-circle-fill messageIcon"></i>
|
|
|
|
<b>{{.Message}}</b>
|
|
|
|
{{else if eq .MsgType "alert-danger"}}
|
|
|
|
<i class="bi-exclamation-circle-fill messageIcon"></i>
|
|
|
|
<b>{{.Message}}</b>
|
|
|
|
{{end}}
|
2023-06-23 09:03:36 +02:00
|
|
|
</div>
|
2023-06-22 16:26:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-23 09:42:31 +02:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "stylesheets"}}
|
|
|
|
<style>
|
|
|
|
.messageCol {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.messageCard {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 50%;
|
|
|
|
padding-top: 2rem;
|
|
|
|
padding-bottom: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.messageIcon {
|
|
|
|
font-size: 2rem;
|
|
|
|
margin-right:1rem;
|
|
|
|
}
|
|
|
|
</style>
|
2023-06-23 09:03:36 +02:00
|
|
|
{{end}}
|