mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
52 lines
2.5 KiB
Plaintext
52 lines
2.5 KiB
Plaintext
@using BTCPayServer
|
|
@using BTCPayServer.Abstractions.Extensions
|
|
@using BTCPayServer.Data
|
|
@using BTCPayServer.Plugins.FixedFloat
|
|
@using BTCPayServer.Services.Stores
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@model BTCPayServer.Plugins.FixedFloat.FixedFloatSettings
|
|
@inject BTCPayNetworkProvider BTCPayNetworkProvider
|
|
@{
|
|
ViewData.SetActivePage("FixedFloat", "FixedFloat", "FixedFloat");
|
|
var store = Context.GetStoreData();
|
|
var allowedPaymentMethods = store.GetEnabledPaymentIds(BTCPayNetworkProvider)
|
|
.Select(pmi => new SelectListItem(pmi.ToPrettyString(), pmi.ToString()))
|
|
.Prepend(new SelectListItem("Any", ""));
|
|
}
|
|
|
|
<partial name="_StatusMessage"/>
|
|
|
|
<h2 class="mb-4">@ViewData["Title"]</h2>
|
|
|
|
<div class="alert alert-warning mb-4" role="alert">
|
|
If you are enabling FixedFloat support, we advise that you configure the invoice expiration to a minimum of 30 minutes as it may take longer than the default 15 minutes to convert the funds.
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-10">
|
|
<form method="post">
|
|
<div class="form-group">
|
|
<div class="d-flex align-items-center">
|
|
<input asp-for="Enabled" type="checkbox" class="btcpay-toggle me-2"/>
|
|
<label asp-for="Enabled" class="form-label mb-0 me-1"></label>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="PreferredTargetPaymentMethodId" class="form-label" data-required>Convert always to this payment method, if possible</label>
|
|
<select asp-for="PreferredTargetPaymentMethodId" asp-items="allowedPaymentMethods" class="form-select"></select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="ExplicitMethods" class="form-label" data-required>Show these conversion options as individual payment methods</label>
|
|
<select style="min-height: 300px;" multiple asp-for="ExplicitMethods" asp-items="@FixedFloatSettings.AllowedSendingOptionsList" class="form-select"></select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="d-flex align-items-center">
|
|
<input asp-for="OnlyShowExplicitMethods" type="checkbox" class="btcpay-toggle me-2"/>
|
|
<label asp-for="OnlyShowExplicitMethods" class="form-label mb-0 me-1">Only show explicit methods</label>
|
|
</div>
|
|
</div>
|
|
<button name="command" type="submit" value="save" class="btn btn-primary">Submit</button>
|
|
</form>
|
|
</div>
|
|
</div> |