statping/source/tmpl/users.html

85 lines
3.2 KiB
HTML
Raw Normal View History

2018-06-10 01:31:13 +00:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
2018-06-26 07:01:41 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1.0, user-scalable=0">
2018-06-10 01:31:13 +00:00
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/base.css">
2018-06-10 03:44:47 +00:00
<title>Statup | Users</title>
2018-06-10 01:31:13 +00:00
</head>
<body>
2018-06-24 11:51:07 +00:00
<div class="container col-md-7 col-sm-12 mt-md-5 bg-light">
2018-06-10 01:31:13 +00:00
2018-06-11 03:41:02 +00:00
{{template "nav"}}
2018-06-10 01:31:13 +00:00
<div class="col-12">
<h3>Users</h3>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Username</th>
2018-06-19 04:48:25 +00:00
<th scope="col"></th>
2018-06-10 01:31:13 +00:00
</tr>
</thead>
<tbody>
{{range .}}
<tr>
<td>{{.Username}}</td>
2018-06-19 04:48:25 +00:00
<td class="text-right">
<div class="btn-group">
<a href="/users/{{.Id}}/delete" class="btn btn-danger">Delete</a>
</div>
</td>
2018-06-10 01:31:13 +00:00
</tr>
{{end}}
</tbody>
</table>
2018-06-10 03:44:47 +00:00
<h3>Create User</h3>
2018-06-15 04:30:10 +00:00
<form action="/users" method="POST">
<div class="form-group row">
<label for="inputEmail3" class="col-sm-4 col-form-label">Username</label>
<div class="col-sm-8">
<input type="text" name="username" class="form-control" id="inputEmail3" placeholder="Username">
2018-06-10 01:31:13 +00:00
</div>
2018-06-15 04:30:10 +00:00
</div>
2018-06-26 07:01:41 +00:00
<div class="form-group row">
<label for="inputEmail3" class="col-sm-4 col-form-label">Email Address</label>
<div class="col-sm-8">
<input type="text" name="email" class="form-control" id="inputEmail3" placeholder="user@domain.com">
</div>
</div>
2018-06-15 04:30:10 +00:00
<div class="form-group row">
<label for="inputPassword3" class="col-sm-4 col-form-label">Password</label>
<div class="col-sm-8">
<input type="password" name="password" class="form-control" id="inputPassword3" placeholder="Password">
2018-06-10 01:31:13 +00:00
</div>
2018-06-15 04:30:10 +00:00
</div>
<div class="form-group row">
<label for="inputPassword3" class="col-sm-4 col-form-label">Confirm Password</label>
<div class="col-sm-8">
2018-06-26 07:01:41 +00:00
<input type="password" name="password_confirm" class="form-control" id="inputPassword3" placeholder="Confirm Password">
2018-06-11 03:41:02 +00:00
</div>
2018-06-15 04:30:10 +00:00
</div>
<div class="form-group row">
<div class="col-sm-8">
<button type="submit" class="btn btn-primary">Create User</button>
2018-06-10 01:31:13 +00:00
</div>
2018-06-15 04:30:10 +00:00
</div>
</form>
2018-06-10 01:31:13 +00:00
</div>
</div>
2018-06-22 04:02:57 +00:00
{{template "footer"}}
2018-06-10 01:31:13 +00:00
<script src="/js/jquery-3.3.1.slim.min.js"></script>
2018-06-15 04:30:10 +00:00
<script src="/js/bootstrap.min.js"></script>
2018-06-10 01:31:13 +00:00
</body>
</html>