{{define "body"}}
<div class="row">
    <div class="col-xs-4 offset-4">
        <div class="card border-primary mx-auto">
        <div class="card-header">
            <strong>{{.BodyTitle}}</strong>
        </div>
        <div class="card-body">
            <form class="form-horizontal" action="/user/new" method="post">
                <input type="hidden" name="token" value="{{.Token}}">
                <div class="form-group">
                    <label class="col-form-label" for="user">Username</label>
                    <input class="form-control input-sm" type="text" id="user" name="user" autocomplete="off" autofocus required>
                </div>
                <div class="form-group">
                    <label class="col-form-label" for="password">Password</label>
                    <input class="form-control input-sm" type="password" id="password" name="password" required>
                </div>
                <div class="form-group">
                    <label class="col-form-label" for="repeat">Repeat</label>
                    <input class="form-control input-sm" type="password" id="repeat" name="repeat" required>
                </div>
                <div class="form-group">
                    <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" id="admin" name="admin" value="0">
                        <label class="custom-control-label" for="admin">Admin Privileges</label>
                    </div>
                </div>
                <button class="btn btn-sm btn-primary" type="submit">Create</button>
                <a href="/users" class="btn btn-sm btn-primary">Back</a>
            </form>
        </div>
        </div>
    </div>
</div>
{{end}}
