{{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>
            {{if .Data.Secret}}
            <a href="/user/totp" class="btn btn-sm btn-danger float-right">Disable TOTP</a>
            {{else}}
            <a href="/user/totp" class="btn btn-sm btn-success float-right">Enable TOTP</a>
            {{end}}
        </div>
        <div class="card-body">
            <form class="form-horizontal" action="/user/edit" method="post">
                <input type="hidden" name="token" value="{{.Token}}">
                <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" autofocus>
                </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">
                </div>
                <button class="btn btn-sm btn-primary" type="submit">Update</button>
                <a href="/" class="btn btn-sm btn-primary">Back</a>
            </form>
        </div>
        </div>
    </div>
</div>
{{end}}
