ui+stores: updates switches ui to be consistent with other switches (#3929)

This commit is contained in:
dstrukt 2022-07-05 20:43:22 -07:00 committed by GitHub
parent 657423207b
commit 9ec2052428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 34 deletions

View File

@ -79,34 +79,45 @@
</div>
<h3 class="mt-5 mb-3" id="ln-url">LNURL</h3>
<div class="d-flex align-items-center">
<div class="form-group d-flex align-items-center">
<input asp-for="LNURLEnabled" type="checkbox" class="btcpay-toggle me-3" data-bs-toggle="collapse" data-bs-target="#LNURLSettings" aria-expanded="@Model.LNURLEnabled" aria-controls="LNURLSettings"/>
<label asp-for="LNURLEnabled" class="form-label mb-0 me-1"></label>
</div>
<div class="collapse @(Model.LNURLEnabled ? "show" : "")" id="LNURLSettings">
<div class="form-group">
<div class="d-flex align-items-center pt-4">
<label class="form-group d-flex align-items-center">
<input type="checkbox" asp-for="LNURLBech32Mode" class="btcpay-toggle me-3" />
<div class="">
<label asp-for="LNURLBech32Mode" class="form-label mb-0 me-1"></label>
<span asp-validation-for="LNURLBech32Mode" class="text-danger"></span>
</div>
<p class="form-text text-muted mb-0">For wallet compatibility: Bech32 encoded (classic) vs. cleartext URL (upcoming)</p>
</div>
<div class="form-group">
<div class="d-flex align-items-center">
<input type="checkbox" asp-for="LNURLStandardInvoiceEnabled" class="btcpay-toggle me-3"/>
<label asp-for="LNURLStandardInvoiceEnabled" class="form-label mb-0 me-1"></label>
</label>
</div>
<div class="form-group">
<label class="form-group d-flex align-items-center">
<input type="checkbox" asp-for="LNURLStandardInvoiceEnabled" class="btcpay-toggle me-3" />
<div class="">
<label asp-for="LNURLStandardInvoiceEnabled" class="form-label mb-0 me-1"></label>
<p class="form-text text-muted mb-0">Required for Lightning Address, the pay button and apps.</p>
</div>
<div class="form-group">
<div class="d-flex align-items-center">
<input type="checkbox" asp-for="DisableBolt11PaymentMethod" class="btcpay-toggle me-3"/>
<label asp-for="DisableBolt11PaymentMethod" class="form-label mb-0 me-1"></label>
</label>
</div>
<div class="form-group">
<label class="form-group d-flex align-items-center">
<input type="checkbox" asp-for="DisableBolt11PaymentMethod" class="btcpay-toggle me-3" />
<div class="">
<label asp-for="DisableBolt11PaymentMethod" class="form-label mb-0 me-1"></label>
<p class="form-text text-muted mb-0">Performance: Turn it off if users should pay only via LNURL.</p>
</div>
<div class="form-group mb-0 pb-2">
</label>
</div>
<div class="form-group mb-3">
<div class="d-flex align-items-center">
<input type="checkbox" asp-for="LUD12Enabled" class="btcpay-toggle me-3" />
<label asp-for="LUD12Enabled" class="form-label mb-0 me-1"></label>

View File

@ -32,20 +32,22 @@
<p class="text-muted small form-text">The endpoint receiving the payload must validate the payload by checking that the HTTP header <code>BTCPAY-SIG</code> of the callback matches the HMAC256 of the secret on the payload's body bytes.</p>
</div>
<div class="form-group">
<label class="d-flex align-items-center mb-2">
<label class="form-group d-flex align-items-center">
<input asp-for="AutomaticRedelivery" type="checkbox" class="btcpay-toggle me-3" />
<div class="">
<span>Automatic redelivery</span>
<p class="text-muted small form-text mb-0">We will try to redeliver any failed delivery after 10 seconds, 1 minute and up to 6 times after 10 minutes</p>
</div>
</label>
<p class="text-muted small form-text">We will try to redeliver any failed delivery after 10 seconds, 1 minute and up to 6 times after 10 minutes</p>
</div>
<div class="form-group">
<label class="d-flex align-items-center mb-2">
<input asp-for="Active" type="checkbox" class="btcpay-toggle me-3" />
<span>Is enabled</span>
<span>Enabled</span>
</label>
</div>
<h3 class="mb-3">Events</h3>
<h3 class="mb-3 mt-5">Events</h3>
<label asp-for="Everything" class="form-label">Which events would you like to trigger this webhook?</label>
<select asp-for="Everything" class="form-select w-auto mb-3">
<option value="true">Send me everything</option>

View File

@ -159,14 +159,16 @@
</div>
}
<div class="form-group">
<label class="d-flex align-items-center mb-2">
<label class="d-flex align-items-center">
<button type="submit" id="ShowScripting" class="btcpay-toggle me-3 @if (Model.ShowScripting) { @("btcpay-toggle--active") }" value="scripting-@(Model.ShowScripting ? "off" : "on")" name="command" data-bs-toggle="modal" data-bs-target="#ConfirmModal">@(Model.ShowScripting ? "Disable" : "Enable") advanced rate rule scripting</button>
<div class="">
<span>Advanced rate rule scripting</span>
</label>
<p class="text-muted small form-text">
<p class="text-muted small form-text mb-0">
@(Model.ShowScripting ? "Disabling will delete your rate script." : "Enabling will modify your current rate sources. This is a feature for advanced users.")
</p>
</div>
</label>
</div>
<div class="form-group">
<label asp-for="Spread" class="form-label"></label>
<div class="input-group">