2019-04-22 09:41:20 +02:00
|
|
|
@using BTCPayServer.Controllers
|
2022-01-07 12:32:00 +09:00
|
|
|
@model BTCPayServer.Controllers.UIServerController.CreateTemporaryFileUrlViewModel
|
2019-04-22 09:41:20 +02:00
|
|
|
@{
|
2021-12-16 11:17:02 +01:00
|
|
|
ViewData.SetActivePage(ServerNavPages.Services, $"Create temporary file link");
|
2019-04-22 09:41:20 +02:00
|
|
|
}
|
|
|
|
|
2022-01-17 17:19:27 -08:00
|
|
|
<h3 class="mb-4">@ViewData["Title"]</h3>
|
2019-04-22 09:41:20 +02:00
|
|
|
|
|
|
|
<div class="row">
|
2022-01-27 03:56:46 +01:00
|
|
|
<div class="col-xl-8 col-xxl-constrain">
|
2021-04-08 15:32:42 +02:00
|
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
|
|
{
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
}
|
2019-04-22 09:41:20 +02:00
|
|
|
<form method="post">
|
2021-06-06 13:44:54 +02:00
|
|
|
<div class="form-group form-check">
|
|
|
|
<input type="checkbox" class="form-check-input" asp-for="IsDownload"/>
|
|
|
|
<label asp-for="IsDownload" class="form-check-label"></label>
|
2019-04-22 09:41:20 +02:00
|
|
|
<span asp-validation-for="IsDownload" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-05-19 04:39:27 +02:00
|
|
|
<label asp-for="TimeAmount" class="form-label"></label>
|
2019-04-22 09:41:20 +02:00
|
|
|
<div class="input-group">
|
2022-03-25 22:09:58 -06:00
|
|
|
<input type="number" inputmode="decimal" asp-for="TimeAmount" class="form-control">
|
2022-01-07 12:32:00 +09:00
|
|
|
<select asp-for="TimeType" asp-items="@Html.GetEnumSelectList<UIServerController.CreateTemporaryFileUrlViewModel.TmpFileTimeType>()" class="form-select"></select>
|
2019-04-22 09:41:20 +02:00
|
|
|
</div>
|
2021-04-08 15:32:42 +02:00
|
|
|
|
2019-04-22 09:41:20 +02:00
|
|
|
<span asp-validation-for="TimeAmount" class="text-danger"></span>
|
|
|
|
<span asp-validation-for="TimeType" class="text-danger"></span>
|
|
|
|
</div>
|
2022-01-17 17:19:27 -08:00
|
|
|
<button type="submit" class="btn btn-primary mt-2" name="command" value="Generate">Generate</button>
|
2019-04-22 09:41:20 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-05-19 04:39:27 +02:00
|
|
|
@section PageFootContent {
|
2021-04-08 15:32:42 +02:00
|
|
|
<partial name="_ValidationScriptsPartial" />
|
2019-04-22 09:41:20 +02:00
|
|
|
}
|