mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
140 lines
6.4 KiB
Plaintext
140 lines
6.4 KiB
Plaintext
@model StoreViewModel
|
|
@{
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData["Title"] = "Profile";
|
|
ViewData.AddActivePage(BTCPayServer.Views.Stores.StoreNavPages.Index);
|
|
}
|
|
|
|
<h4>@ViewData["Title"]</h4>
|
|
@Html.Partial("_StatusMessage", TempData["TempDataProperty-StatusMessage"])
|
|
|
|
<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">
|
|
<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>
|
|
<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>
|
|
<div class="form-group">
|
|
<label asp-for="PreferredExchange"></label>
|
|
<input asp-for="PreferredExchange" class="form-control" />
|
|
<span asp-validation-for="PreferredExchange" class="text-danger"></span>
|
|
<p id="PreferredExchangeHelpBlock" class="form-text text-muted">
|
|
Current price source is <a href="@Model.RateSource" target="_blank">@Model.PreferredExchange</a>.<small> (using 1 minute cache)</small>
|
|
</p>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="RateMultiplier"></label>
|
|
<input asp-for="RateMultiplier" class="form-control" />
|
|
<span asp-validation-for="RateMultiplier" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<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">
|
|
<label asp-for="MonitoringExpiration"></label>
|
|
<input asp-for="MonitoringExpiration" class="form-control" />
|
|
<span asp-validation-for="MonitoringExpiration" class="text-danger"></span>
|
|
</div>
|
|
<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>
|
|
<span>The DerivationScheme represents the destination of the funds received by your invoice on chain.</span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<table class="table">
|
|
<thead class="thead-inverse">
|
|
<tr>
|
|
<th>Crypto</th>
|
|
<th>Derivation Scheme</th>
|
|
<th style="text-align:right">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach(var scheme in Model.DerivationSchemes)
|
|
{
|
|
<tr>
|
|
<td>@scheme.Crypto</td>
|
|
<td style="max-width:300px;overflow:hidden;">@scheme.Value</td>
|
|
<td style="text-align:right">
|
|
@if(!string.IsNullOrWhiteSpace(scheme.Value))
|
|
{
|
|
<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>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<h5>Lightning nodes (Experimental)</h5>
|
|
<p>
|
|
<span>A connection to a lightning charge node is required to generate lignting network enabled invoices.<br /></span>
|
|
<span>This is experimental and not advised for production.</span>
|
|
</p>
|
|
</div>
|
|
<div class="form-group">
|
|
<table class="table">
|
|
<thead class="thead-inverse">
|
|
<tr>
|
|
<th>Crypto</th>
|
|
<th>Address</th>
|
|
<th style="text-align:right">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach(var scheme in Model.LightningNodes)
|
|
{
|
|
<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>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<button name="command" type="submit" class="btn btn-success" value="Save">Save</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
}
|