2018-03-27 14:48:32 +09:00
|
|
|
@model CheckoutExperienceViewModel
|
|
|
|
@{
|
|
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
2018-08-22 13:56:55 +02:00
|
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Checkout, "Checkout experience");
|
2018-03-27 14:48:32 +09:00
|
|
|
}
|
|
|
|
|
2019-10-31 15:19:38 +09:00
|
|
|
<partial name="_StatusMessage" />
|
2018-03-27 14:48:32 +09:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
<form method="post">
|
2018-03-27 15:14:50 +09:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="CustomLogo"></label>
|
2019-06-09 22:26:59 +09:00
|
|
|
<a href="https://docs.btcpayserver.org/development/theme#checkout-page-theme" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
|
2018-03-27 15:14:50 +09:00
|
|
|
<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"></label>
|
2019-06-09 22:26:59 +09:00
|
|
|
<a href="https://docs.btcpayserver.org/development/theme#checkout-page-theme" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
|
2018-03-27 15:14:50 +09:00
|
|
|
<input asp-for="CustomCSS" class="form-control" />
|
|
|
|
<span asp-validation-for="CustomCSS" class="text-danger"></span>
|
2020-03-28 14:10:18 -06:00
|
|
|
<p class="form-text text-muted">
|
|
|
|
Bundled Themes:
|
|
|
|
<a href="#" onclick="return setTheme(1);">Legacy</a>
|
2020-04-04 16:47:37 -05:00
|
|
|
| <a href="#" onclick="return setTheme(2);">Dark</a>
|
2020-03-28 14:10:18 -06:00
|
|
|
@* | <a href="#" onclick="return setTheme(0);">Default</a>*@
|
|
|
|
</p>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function setTheme(themeChoice) {
|
|
|
|
if (themeChoice === 1) { // reserving 0 for potential clear down the road
|
|
|
|
$('#CustomCSS').val('/checkout/css/themes/legacy.css');
|
2020-04-04 16:47:37 -05:00
|
|
|
} else if (themeChoice == 2) {
|
|
|
|
$('#CustomCSS').val('/checkout/css/themes/dark.css');
|
2020-03-28 14:10:18 -06:00
|
|
|
} else {
|
|
|
|
$('#CustomCSS').val('');
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
</script>
|
2018-03-27 15:14:50 +09:00
|
|
|
</div>
|
2018-05-03 16:51:04 -05:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="HtmlTitle"></label>
|
|
|
|
<input asp-for="HtmlTitle" class="form-control" />
|
|
|
|
<span asp-validation-for="HtmlTitle" class="text-danger"></span>
|
|
|
|
</div>
|
2018-03-27 14:48:32 +09:00
|
|
|
<div class="form-group">
|
2019-01-31 19:07:38 +09:00
|
|
|
<label asp-for="DefaultPaymentMethod"></label>
|
|
|
|
<select asp-for="DefaultPaymentMethod" asp-items="Model.CryptoCurrencies" class="form-control"></select>
|
2018-03-27 14:48:32 +09:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="DefaultLang"></label>
|
|
|
|
<select asp-for="DefaultLang" asp-items="Model.Languages" class="form-control"></select>
|
|
|
|
</div>
|
2018-04-26 11:13:44 +09:00
|
|
|
<div class="form-group">
|
2019-10-13 20:07:41 -07:00
|
|
|
<div class="form-check">
|
|
|
|
<input asp-for="RequiresRefundEmail" type="checkbox" class="form-check-input" />
|
|
|
|
<label asp-for="RequiresRefundEmail" class="form-check-label"></label>
|
|
|
|
</div>
|
2018-04-26 11:13:44 +09:00
|
|
|
</div>
|
2019-03-15 22:43:57 -05:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="OnChainMinValue"></label>
|
|
|
|
<input asp-for="OnChainMinValue" class="form-control" />
|
|
|
|
<span asp-validation-for="OnChainMinValue" class="text-danger"></span>
|
|
|
|
<p class="form-text text-muted">Example: 5.50 USD</p>
|
|
|
|
</div>
|
2018-03-27 14:48:32 +09:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="LightningMaxValue"></label>
|
|
|
|
<input asp-for="LightningMaxValue" class="form-control" />
|
|
|
|
<span asp-validation-for="LightningMaxValue" class="text-danger"></span>
|
|
|
|
<p class="form-text text-muted">Example: 5.50 USD</p>
|
|
|
|
</div>
|
2018-04-03 17:39:28 +09:00
|
|
|
<div class="form-group">
|
2019-10-13 20:07:41 -07:00
|
|
|
<div class="form-check">
|
|
|
|
<input asp-for="LightningAmountInSatoshi" type="checkbox" class="form-check-input" />
|
|
|
|
<label asp-for="LightningAmountInSatoshi" class="form-check-label"></label>
|
|
|
|
<span asp-validation-for="LightningAmountInSatoshi" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
|
|
<input asp-for="RedirectAutomatically" type="checkbox" class="form-check-input" />
|
2019-10-07 21:06:12 -07:00
|
|
|
<label asp-for="RedirectAutomatically" class="form-check-label"></label>
|
2019-10-13 20:07:41 -07:00
|
|
|
<span asp-validation-for="RedirectAutomatically" class="text-danger"></span>
|
|
|
|
</div>
|
2019-10-07 21:06:12 -07:00
|
|
|
<div class="form-check">
|
|
|
|
<input asp-for="ShowRecommendedFee" type="checkbox" class="form-check-input" />
|
|
|
|
<label asp-for="ShowRecommendedFee" class="form-check-label"></label>
|
|
|
|
<p class="form-text text-muted">Fee will be shown for BTC and LTC onchain payments only.</p>
|
|
|
|
</div>
|
2019-04-11 11:53:31 +02:00
|
|
|
</div>
|
2019-11-06 16:21:33 -08:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="RecommendedFeeBlockTarget"></label>
|
|
|
|
<input asp-for="RecommendedFeeBlockTarget" class="form-control" />
|
|
|
|
<span asp-validation-for="RecommendedFeeBlockTarget" class="text-danger"></span>
|
|
|
|
</div>
|
2018-04-08 00:08:15 -05:00
|
|
|
<button name="command" type="submit" class="btn btn-primary" value="Save">Save</button>
|
2018-03-27 14:48:32 +09:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts {
|
|
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
|
|
}
|