cc-backend/web/templates/message.tmpl

42 lines
1.1 KiB
Cheetah
Raw Normal View History

{{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>
</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}}