2022-07-17 18:16:00 +00:00
|
|
|
<!--
|
2023-01-03 09:18:30 +00:00
|
|
|
Copyright (C) 2019-2023 Nicola Murino
|
2022-07-17 18:16:00 +00:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published
|
|
|
|
by the Free Software Foundation, version 3.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
2023-01-03 09:18:30 +00:00
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2022-07-17 18:16:00 +00:00
|
|
|
-->
|
2019-10-07 16:19:01 +00:00
|
|
|
{{template "base" .}}
|
|
|
|
|
|
|
|
{{define "title"}}{{.Title}}{{end}}
|
|
|
|
|
|
|
|
{{define "page_body"}}
|
2021-01-23 08:28:45 +00:00
|
|
|
|
2021-05-06 19:35:43 +00:00
|
|
|
{{if .LoggedUser.Username}}
|
2021-01-23 08:28:45 +00:00
|
|
|
<div class="card shadow mb-4">
|
|
|
|
<div class="card-header py-3">
|
|
|
|
<h6 class="m-0 font-weight-bold text-primary">{{.Title}}</h6>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
{{if .Error}}
|
2021-01-23 09:32:15 +00:00
|
|
|
<div class="card mb-2 border-left-warning">
|
2021-01-23 08:28:45 +00:00
|
|
|
<div class="card-body text-form-error">{{.Error}}</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-10-07 16:19:01 +00:00
|
|
|
|
2021-01-23 08:28:45 +00:00
|
|
|
{{if .Success}}
|
2021-01-23 09:32:15 +00:00
|
|
|
<div class="card mb-2 border-left-success">
|
2021-01-23 08:28:45 +00:00
|
|
|
<div class="card-body">{{.Success}}</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2019-10-07 16:19:01 +00:00
|
|
|
</div>
|
2021-01-17 21:29:08 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="row justify-content-center">
|
2019-10-07 16:19:01 +00:00
|
|
|
|
2021-01-17 21:29:08 +00:00
|
|
|
<div class="col-xl-8 col-lg-9 col-md-9">
|
|
|
|
|
|
|
|
<div class="card o-hidden border-0 shadow-lg my-5">
|
|
|
|
<div class="card-body p-0">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-lg-9">
|
|
|
|
<div class="p-5">
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="h4 text-gray-900 mb-4">{{.Title}}</h1>
|
|
|
|
</div>
|
|
|
|
{{if .Error}}
|
|
|
|
<div class="card mb-4 border-left-warning">
|
|
|
|
<div class="card-body text-form-error">{{.Error}}</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .Success}}
|
|
|
|
<div class="card mb-4 border-left-success">
|
|
|
|
<div class="card-body">{{.Success}}</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2021-01-23 08:28:45 +00:00
|
|
|
|
2019-10-07 16:19:01 +00:00
|
|
|
{{end}}
|