{{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">
            <p>You are about to delete
            {{if eq .Data 1}}the directory{{end}}
            {{if eq .Data 2}}the file{{end}}
            <a href="{{.Path}}">{{.Path}}</a>.
            {{if eq .Data 1}}<br>This will also remove all files and directories below.</p>{{end}}
            <form class="form-horizontal" action="/delete{{.Path}}" method="post">
                <input type="hidden" name="token" value="{{.Token}}">
                <button class="btn btn-sm btn-danger" type="submit">Delete</button>
                <a href="{{.Path}}" class="btn btn-sm btn-primary">Back</a>
            </form>
        </div>
        </div>
    </div>
</div>
{{end}}
