{{define "body"}}
<div class="page-header">
    <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="/login" method="post">
                        <input type="hidden" name="token" value="{{.Token}}">
                        <input type="hidden" name="referer" value="{{.Data.Referer}}">
                        <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" value="{{.Data.User}}" 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">
                            <div class="custom-control custom-checkbox">
                                <input type="checkbox" class="custom-control-input" id="remember" name="remember">
                                <label class="custom-control-label" for="remember">Remember Me</label>
                            </div>
                        </div>
                        <button class="btn btn-sm btn-primary" type="submit">Login</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{{end}}
