{{ define "title" }}Initial Setup{{ end }}
{{ define "content" }}
<h1>Initial Setup</h1>

<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="email">Email<span class="text-danger">*</span>:</label>
					<input type="email" class="form-control"
						name="email"
						id="email"
						value="{{ FormValue "email" }}"
						placeholder="name@domain.com"
						required>
				</div>
				<div class="form-group col-md-6">
					<label for="name">Display Name:</label>
					<input type="text" class="form-control"
						name="name"
						id="name"
						value="{{ FormValue "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"
						value="{{ FormValue "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"
						value="{{ FormValue "password" }}"
						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 }}
