{{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="/move{{.Path}}" method="post">
                <input type="hidden" name="token" value="{{.Token}}">
                <div class="form-group">
                    <label class="col-form-label" for="destination">Destination</label>
                    <select class="form-control input-sm" id="destination" name="destination" required>
                    {{range $item := .Paths}}
                        <option value="{{$item.Abs}}"{{if $item.Flag}} selected{{end}}>{{$item.Abs}}</option>
                    {{end}}
                    </select>
                </div>
                <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>
                <button class="btn btn-sm btn-primary" type="submit">Move</button>
                <a href="{{.Path}}" class="btn btn-sm btn-primary">Back</a>
            </form>
        </div>
        </div>
    </div>
</div>
{{end}}
