{{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="/upload{{.Path}}" method="post" enctype="multipart/form-data">
                <input type="hidden" name="token" value="{{.Token}}">
                <div class="form-group">
                    <label class="col-form-label" for="name">Name</label>
                    <input class="form-control input-sm" type="text" id="name" name="name" autocomplete="off" value="{{.Data}}">
                </div>
                <div class="form-group">
                    <div class="input-group mb-3">
                    <div class="custom-file">
                        <input type="file" class="custom-file-input" id="file" name="file">
                        <label class="custom-file-label" for="file">Choose file</label>
                    </div>
                    </div>
                </div>
                <button class="btn btn-sm btn-success" type="submit">Upload</button>
                <a href="{{.Path}}" class="btn btn-sm btn-primary">Back</a>
            </form>
        </div>
        </div>
    </div>
</div>
{{end}}
