2017-09-13 16:50:36 +02:00
|
|
|
@model StoreViewModel
|
|
|
|
@{
|
2017-10-27 10:53:04 +02:00
|
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
|
|
ViewData["Title"] = "Profile";
|
|
|
|
ViewData.AddActivePage(BTCPayServer.Views.Stores.StoreNavPages.Index);
|
2017-09-13 16:50:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
<h4>@ViewData["Title"]</h4>
|
2018-05-08 10:57:53 +02:00
|
|
|
<partial name="_StatusMessage" for="@TempData["TempDataProperty-StatusMessage"]" />
|
2017-09-13 16:50:36 +02:00
|
|
|
|
|
|
|
<div class="row">
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
</div>
|
2017-09-13 16:50:36 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-02-26 07:40:49 +01:00
|
|
|
<div class="col-md-8">
|
2017-10-27 10:53:04 +02:00
|
|
|
<form method="post">
|
2017-12-03 15:35:52 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="Id"></label>
|
|
|
|
<input asp-for="Id" readonly class="form-control" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="StoreName"></label>
|
|
|
|
<input asp-for="StoreName" class="form-control" />
|
|
|
|
<span asp-validation-for="StoreName" class="text-danger"></span>
|
|
|
|
</div>
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="StoreWebsite"></label>
|
|
|
|
<input asp-for="StoreWebsite" class="form-control" />
|
|
|
|
<span asp-validation-for="StoreWebsite" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="NetworkFee"></label>
|
|
|
|
<input asp-for="NetworkFee" type="checkbox" class="form-check" />
|
|
|
|
</div>
|
2017-12-03 06:43:52 +01:00
|
|
|
<div class="form-group">
|
2018-01-17 07:11:05 +01:00
|
|
|
<label asp-for="InvoiceExpiration"></label>
|
|
|
|
<input asp-for="InvoiceExpiration" class="form-control" />
|
|
|
|
<span asp-validation-for="InvoiceExpiration" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-12-03 06:43:52 +01:00
|
|
|
<label asp-for="MonitoringExpiration"></label>
|
|
|
|
<input asp-for="MonitoringExpiration" class="form-control" />
|
|
|
|
<span asp-validation-for="MonitoringExpiration" class="text-danger"></span>
|
|
|
|
</div>
|
2018-05-04 16:15:34 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="PaymentTolerance"></label>
|
|
|
|
<input asp-for="PaymentTolerance" class="form-control" />
|
|
|
|
<span asp-validation-for="PaymentTolerance" class="text-danger"></span>
|
|
|
|
</div>
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="SpeedPolicy"></label>
|
|
|
|
<select asp-for="SpeedPolicy" class="form-control">
|
|
|
|
<option value="0">Is unconfirmed</option>
|
|
|
|
<option value="1">Has at least 1 confirmation</option>
|
|
|
|
<option value="2">Has at least 6 confirmations</option>
|
|
|
|
</select>
|
|
|
|
<span asp-validation-for="SpeedPolicy" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<h5>Derivation Scheme</h5>
|
2018-02-25 16:48:12 +01:00
|
|
|
<span>The DerivationScheme represents the destination of the funds received by your invoice on chain.</span>
|
2017-12-06 10:08:21 +01:00
|
|
|
</div>
|
2018-01-08 14:45:09 +01:00
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="form-group">
|
2018-04-08 07:06:47 +02:00
|
|
|
<table class="table table-sm table-responsive-md">
|
2018-04-06 06:20:12 +02:00
|
|
|
<thead>
|
2018-01-08 14:45:09 +01:00
|
|
|
<tr>
|
|
|
|
<th>Crypto</th>
|
|
|
|
<th>Derivation Scheme</th>
|
2018-03-20 18:48:11 +01:00
|
|
|
<th style="text-align:right">Actions</th>
|
2018-01-08 14:45:09 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-04-18 09:38:17 +02:00
|
|
|
@foreach(var scheme in Model.DerivationSchemes)
|
2018-03-27 07:48:32 +02:00
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@scheme.Crypto</td>
|
|
|
|
<td style="max-width:300px;overflow:hidden;">@scheme.Value</td>
|
|
|
|
<td style="text-align:right">
|
2018-04-18 09:38:17 +02:00
|
|
|
@if(!string.IsNullOrWhiteSpace(scheme.Value))
|
2018-03-27 07:48:32 +02:00
|
|
|
{
|
|
|
|
<a asp-action="Wallet" asp-route-cryptoCode="@scheme.Crypto">Wallet</a><span> - </span>
|
|
|
|
}
|
|
|
|
<a asp-action="AddDerivationScheme" asp-route-cryptoCode="@scheme.Crypto">Modify</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
2018-01-08 14:45:09 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-10-27 10:53:04 +02:00
|
|
|
</div>
|
2018-02-25 16:48:12 +01:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<h5>Lightning nodes (Experimental)</h5>
|
2018-02-26 07:16:17 +01:00
|
|
|
<p>
|
2018-02-26 08:13:10 +01:00
|
|
|
<span>A connection to a lightning charge node is required to generate lignting network enabled invoices.<br /></span>
|
2018-03-23 17:58:11 +01:00
|
|
|
<span>This is experimental and not advised for production.</span>
|
2018-02-26 07:16:17 +01:00
|
|
|
</p>
|
2018-02-25 16:48:12 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2018-04-08 07:06:47 +02:00
|
|
|
<table class="table table-sm table-responsive-md">
|
2018-04-06 06:20:12 +02:00
|
|
|
<thead>
|
2018-02-25 16:48:12 +01:00
|
|
|
<tr>
|
|
|
|
<th>Crypto</th>
|
|
|
|
<th>Address</th>
|
2018-03-20 18:48:11 +01:00
|
|
|
<th style="text-align:right">Actions</th>
|
2018-02-25 16:48:12 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-04-18 09:38:17 +02:00
|
|
|
@foreach(var scheme in Model.LightningNodes)
|
2018-03-27 07:48:32 +02:00
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@scheme.CryptoCode</td>
|
|
|
|
<td>@scheme.Address</td>
|
|
|
|
<td style="text-align:right"><a asp-action="AddLightningNode" asp-route-cryptoCode="@scheme.CryptoCode">Modify</a></td>
|
|
|
|
</tr>
|
|
|
|
}
|
2018-02-25 16:48:12 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-07 09:27:46 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="LightningDescriptionTemplate"></label>
|
|
|
|
<input asp-for="LightningDescriptionTemplate" class="form-control" />
|
|
|
|
<span asp-validation-for="LightningDescriptionTemplate" class="text-danger"></span>
|
|
|
|
<p class="form-text text-muted">
|
2018-04-07 14:34:24 +02:00
|
|
|
Available placeholders are: {StoreName}, {ItemDescription} and {OrderId}
|
2018-04-07 09:27:46 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-04-08 07:08:15 +02:00
|
|
|
<button name="command" type="submit" class="btn btn-primary" value="Save">Save</button>
|
2017-10-27 10:53:04 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
2017-09-13 16:50:36 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts {
|
2017-10-27 10:53:04 +02:00
|
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
2017-09-13 16:50:36 +02:00
|
|
|
}
|