mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
140 lines
6.3 KiB
Plaintext
140 lines
6.3 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", Model.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="DefaultCryptoCurrency"></label>
|
|
<select asp-for="DefaultCryptoCurrency" asp-items="Model.CryptoCurrencies" class="form-control"></select>
|
|
</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">
|
|
<label asp-for="AllowCoinConversion"></label>
|
|
<input asp-for="AllowCoinConversion" type="checkbox" class="form-check" />
|
|
</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">
|
|
<a asp-action="AddDerivationScheme" class="btn btn-success" role="button"><span class="glyphicon glyphicon-plus"></span>Add or modify a derivation scheme</a>
|
|
<table class="table">
|
|
<thead class="thead-inverse">
|
|
<tr>
|
|
<th>Crypto</th>
|
|
<th>Derivation Scheme</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var scheme in Model.DerivationSchemes)
|
|
{
|
|
<tr>
|
|
<td>@scheme.Crypto</td>
|
|
<td style="max-width:400px;overflow:hidden;">@scheme.Value</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 so keep in mind:</span>
|
|
</p>
|
|
</div>
|
|
<div class="form-group">
|
|
<a asp-action="AddLightningNode" class="btn btn-success" role="button"><span class="glyphicon glyphicon-plus"></span>Add or modify a lightning node</a>
|
|
<table class="table">
|
|
<thead class="thead-inverse">
|
|
<tr>
|
|
<th>Crypto</th>
|
|
<th>Address</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var scheme in Model.LightningNodes)
|
|
{
|
|
<tr>
|
|
<td>@scheme.CryptoCode</td>
|
|
<td>@scheme.Address</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")
|
|
}
|