2022-02-01 17:48:56 +01:00
|
|
|
{{define "navigation"}}
|
2022-03-02 08:37:30 +01:00
|
|
|
<header>
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-light fixed-top bg-light">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<a class="navbar-brand" href="/">
|
|
|
|
{{block "brand" .}}
|
|
|
|
<img style="height: 30px;" alt="ClusterCockpit Logo" src="/img/logo.png" class="d-inline-block align-top">
|
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2022-02-01 17:48:56 +01:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<section class="content-section">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-4 mx-auto">
|
2022-02-03 09:38:08 +01:00
|
|
|
{{if .Error}}
|
2022-02-01 17:48:56 +01:00
|
|
|
<div class="alert alert-warning" role="alert">
|
2022-02-03 09:38:08 +01:00
|
|
|
{{.Error}}
|
2022-02-01 17:48:56 +01:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2022-02-03 09:38:08 +01:00
|
|
|
{{if .Info}}
|
2022-02-01 17:48:56 +01:00
|
|
|
<div class="alert alert-success" role="alert">
|
2022-02-03 09:38:08 +01:00
|
|
|
{{.Info}}
|
2022-02-01 17:48:56 +01:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h3>Login</h3>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<form action="/login" method="post">
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="username">Username</label>
|
|
|
|
<input class="form-control" type="text" id="username" name="username" required autofocus/>
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="password">Password</label>
|
|
|
|
<input class="form-control" type="password" id="password" name="password" required/>
|
|
|
|
</div>
|
2022-02-03 07:25:02 +01:00
|
|
|
<button type="submit" class="btn btn-success">Submit</button>
|
2022-02-01 17:48:56 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-15 10:03:09 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-01 17:48:56 +01:00
|
|
|
</section>
|
|
|
|
{{end}}
|