Skip to content

Commit

Permalink
move checkoutform id in checkout appearance outside of checkotu v2 to…
Browse files Browse the repository at this point in the history
…ggle
  • Loading branch information
Kukks committed Nov 19, 2022
1 parent 7c0554a commit e4d21bb
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions BTCPayServer/Views/UIStores/CheckoutAppearance.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
var criteria = Model.PaymentMethodCriteria[index];
<tr>
<td class="border-0 ps-0 align-middle">
<input type="hidden" asp-for="PaymentMethodCriteria[index].PaymentMethod" />
<input type="hidden" asp-for="PaymentMethodCriteria[index].PaymentMethod"/>
@PaymentMethodId.Parse(criteria.PaymentMethod).ToPrettyString()
</td>
<td class="border-0">
Expand All @@ -58,33 +58,37 @@
</select>
</td>
<td class="border-0">
<input placeholder="6.15 USD" asp-for="PaymentMethodCriteria[index].Value" class="form-control my-0" style="max-width: 20ch;" />
<input placeholder="6.15 USD" asp-for="PaymentMethodCriteria[index].Value" class="form-control my-0" style="max-width: 20ch;"/>
</td>
</tr>
}
</table>
</div>
}

<div class="form-group pt-2">
<label asp-for="CheckoutFormId" class="form-label"></label>
<select asp-for="CheckoutFormId" class="form-select w-auto" asp-items="@checkoutFormOptions"></select>
<span asp-validation-for="CheckoutFormId" class="text-danger"></span>
</div>
<div class="form-check my-3">
<input asp-for="RequiresRefundEmail" type="checkbox" class="form-check-input" />
<input asp-for="RequiresRefundEmail" type="checkbox" class="form-check-input"/>
<label asp-for="RequiresRefundEmail" class="form-check-label"></label>
</div>
<div class="form-check my-3">
<input asp-for="LazyPaymentMethods" type="checkbox" class="form-check-input" />
<input asp-for="LazyPaymentMethods" type="checkbox" class="form-check-input"/>
<label asp-for="LazyPaymentMethods" class="form-check-label"></label>
</div>
<div class="form-check my-3">
<input asp-for="RedirectAutomatically" type="checkbox" class="form-check-input" />
<input asp-for="RedirectAutomatically" type="checkbox" class="form-check-input"/>
<label asp-for="RedirectAutomatically" class="form-check-label"></label>
</div>

<h3 class="mt-5 mb-3 d-flex align-items-center">
New checkout
<span class="badge bg-warning ms-3" style="font-size:10px;">Experimental</span>
</h3>
<div class="d-flex align-items-center mb-3">
<input asp-for="UseNewCheckout" type="checkbox" class="btcpay-toggle me-3" data-bs-toggle="collapse" data-bs-target="#NewCheckoutSettings" aria-expanded="@(Model.UseNewCheckout)" aria-controls="NewCheckoutSettings" />
<input asp-for="UseNewCheckout" type="checkbox" class="btcpay-toggle me-3" data-bs-toggle="collapse" data-bs-target="#NewCheckoutSettings" aria-expanded="@(Model.UseNewCheckout)" aria-controls="NewCheckoutSettings"/>
<div>
<label asp-for="UseNewCheckout" class="form-label mb-0"></label>
<span asp-validation-for="UseNewCheckout" class="text-danger"></span>
Expand All @@ -94,37 +98,33 @@
</div>
</div>
</div>

<div class="collapse @(Model.UseNewCheckout ? "show" : "")" id="NewCheckoutSettings">
<div class="form-group pt-2">
<label asp-for="CheckoutFormId" class="form-label"></label>
<select asp-for="CheckoutFormId" class="form-select w-auto" asp-items="@checkoutFormOptions"></select>
<span asp-validation-for="CheckoutFormId" class="text-danger"></span>
</div>

<div class="form-check mb-0">
<input asp-for="OnChainWithLnInvoiceFallback" type="checkbox" class="form-check-input"/>
<label asp-for="OnChainWithLnInvoiceFallback" class="form-check-label"></label>
</div>
</div>

<h3 class="mt-5 mb-3">Public receipt</h3>
<div class="form-check my-3">
<input asp-for="ReceiptOptions.Enabled" type="checkbox" class="form-check-input" />
<input asp-for="ReceiptOptions.Enabled" type="checkbox" class="form-check-input"/>
<label asp-for="ReceiptOptions.Enabled" class="form-check-label"></label>
</div>
<div class="form-check my-3">
<input asp-for="ReceiptOptions.ShowPayments" type="checkbox" class="form-check-input" />
<div class="form-check my-3">
<input asp-for="ReceiptOptions.ShowPayments" type="checkbox" class="form-check-input"/>
<label asp-for="ReceiptOptions.ShowPayments" class="form-check-label"></label>
</div>
<div class="form-check my-3">
<input asp-for="ReceiptOptions.ShowQR" type="checkbox" class="form-check-input" />
<div class="form-check my-3">
<input asp-for="ReceiptOptions.ShowQR" type="checkbox" class="form-check-input"/>
<label asp-for="ReceiptOptions.ShowQR" class="form-check-label"></label>
</div>

<h3 class="mt-5 mb-3">Language</h3>
<div class="form-group">
<div class="form-check">
<input asp-for="AutoDetectLanguage" type="checkbox" class="form-check-input" />
<input asp-for="AutoDetectLanguage" type="checkbox" class="form-check-input"/>
<label asp-for="AutoDetectLanguage" class="form-check-label"></label>
<p class="text-muted">Detects the language of the customer's browser with 99.9% accuracy.</p>
</div>
Expand All @@ -137,31 +137,31 @@
<h3 class="mt-5 mb-3">Appearance</h3>
<div class="form-group">
<label asp-for="HtmlTitle" class="form-label"></label>
<input asp-for="HtmlTitle" class="form-control" />
<input asp-for="HtmlTitle" class="form-control"/>
<span asp-validation-for="HtmlTitle" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="CustomLogo" class="form-label"></label>
<a href="https://docs.btcpayserver.org/Development/Theme/#checkout-page-themes" target="_blank" rel="noreferrer noopener">
<span class="fa fa-question-circle-o text-secondary" title="More information..."></span>
</a>
<input asp-for="CustomLogo" class="form-control" />
<input asp-for="CustomLogo" class="form-control"/>
<span asp-validation-for="CustomLogo" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="CustomCSS" class="form-label"></label>
<a href="https://docs.btcpayserver.org/Development/Theme/#checkout-page-themes" target="_blank" rel="noreferrer noopener">
<span class="fa fa-question-circle-o text-secondary" title="More information..."></span>
</a>
<input asp-for="CustomCSS" class="form-control" />
<input asp-for="CustomCSS" class="form-control"/>
<span asp-validation-for="CustomCSS" class="text-danger"></span>
<p class="form-text text-muted">
Bundled Themes:
<a href="#" class="setTheme" data-theme="default">Default</a> |
<a href="#" class="setTheme" data-theme="dark">Dark</a> |
<a href="#" class="setTheme" data-theme="legacy">Legacy</a>
</p>
@await Component.InvokeAsync("UiExtensionPoint", new { location = "invoice-checkout-theme-options", model = Model })
@await Component.InvokeAsync("UiExtensionPoint", new {location = "invoice-checkout-theme-options", model = Model})
</div>
<button name="command" type="submit" class="btn btn-primary" value="Save">Save</button>
</form>
Expand Down

0 comments on commit e4d21bb

Please sign in to comment.