A web blog and personal homepage engine written in Go.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

66 lines
1.6 KiB

{{ define "title" }}Initial Setup{{ end }}
{{ define "content" }}
<h1>Initial Setup</h1>
{{ if .Error }}
<div class="banner banner-danger mb-4">
<strong>Error:</strong> {{ .Error }}
</div>
{{ end }}
<p>
Welcome to Gophertype! Fill out the basic configuration below to set up the app.
</p>
<form method="POST" action="/admin/setup">
{{ CSRF }}
<div class="card mb-4">
<div class="card-header">
Create Administrator Login
</div>
<div class="card-body">
<div class="form-row">
<div class="form-group col-md-6">
<label for="username">Username<span class="text-danger">*</span>:</label>
<input type="text" class="form-control"
name="username"
id="username"
placeholder="Admin"
required>
</div>
<div class="form-group col-md-6">
<label for="username">Display Name:</label>
<input type="text" class="form-control"
name="name"
id="name"
placeholder="Soandso">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="password">Password<span class="text-danger">*</span>:</label>
<input type="password" class="form-control"
name="password"
id="password"
required>
</div>
<div class="form-group col-md-6">
<label for="confirm">Confirm<span class="text-danger">*</span>:</label>
<input type="password" class="form-control"
name="password2"
id="confirm"
required>
</div>
</div>
<div class="form-row">
<div class="col">
<button type="submit"
class="btn btn-primary">Continue</button>
</div>
</div>
</div>
</div>
</form>
{{ end }}