@model BTCPayServer.Storage.Services.Providers.AmazonS3Storage.Configuration.AmazonS3StorageConfiguration
@{
    ViewData.SetActivePageAndTitle(ServerNavPages.Services, $"Storage - Amazon S3");
}


<h4>@ViewData["Title"]</h4>
<partial name="_StatusMessage" for="@TempData["StatusMessage"]" />
<div class="row">
    <div class="col-lg-6">
        <div asp-validation-summary="All" class="text-danger"></div>
    </div>
</div>
<div class="row">
    <div class="col-lg-6">
        <form method="post">
            <div class="form-group">
                <label asp-for="ContainerName"></label>
                <input class="form-control" asp-for="ContainerName" />
                <span asp-validation-for="ContainerName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="SecretKey"></label>
                <input class="form-control" asp-for="SecretKey"/>
                <span asp-validation-for="SecretKey" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Bucket"></label>
                <input class="form-control" asp-for="Bucket"/>
                <span asp-validation-for="Bucket" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ServiceUrl"></label>
                <input class="form-control" asp-for="ServiceUrl"/>
                <span asp-validation-for="ServiceUrl" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ServerSideEncryptionMethod"></label>
                <input class="form-control" asp-for="ServerSideEncryptionMethod"/>
                <span asp-validation-for="ServerSideEncryptionMethod" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ProfileName"></label>
                <input class="form-control" asp-for="ProfileName"/>
                <span asp-validation-for="ProfileName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ChunkedUploadThreshold"></label>
                <input  class="form-control" type="number" asp-for="ChunkedUploadThreshold"/>
                <span asp-validation-for="ChunkedUploadThreshold" class="text-danger"></span>
            </div>

            <button type="submit" class="btn btn-primary" name="command" value="Save">Save</button>
            <a asp-action="Storage" asp-route-forceChoice="true" >Change Storage provider</a>
        </form>
    </div>
</div>

@section Scripts {
    @await Html.PartialAsync("_ValidationScriptsPartial")
}
