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>
|
|
|
|
@Html.Partial("_StatusMessage", Model.StatusMessage)
|
|
|
|
|
|
|
|
<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">
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="col-md-6">
|
|
|
|
<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>
|
2018-01-09 03:41:07 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="DefaultCryptoCurrency"></label>
|
|
|
|
<select asp-for="DefaultCryptoCurrency" asp-items="Model.CryptoCurrencies" class="form-control"></select>
|
|
|
|
</div>
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="NetworkFee"></label>
|
|
|
|
<input asp-for="NetworkFee" type="checkbox" class="form-check" />
|
|
|
|
</div>
|
2018-01-19 08:00:20 +01:00
|
|
|
<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">
|
2018-01-19 09:14:27 +01:00
|
|
|
Current price source is <a href="@Model.RateSource" target="_blank">@Model.PreferredExchange</a>.<small> (using 1 minute cache)</small>
|
2018-01-19 08:00:20 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-01-17 07:59:31 +01:00
|
|
|
<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>
|
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>
|
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-01-08 14:45:09 +01:00
|
|
|
<span>The DerivationScheme represents the destination of the funds received by your invoice.</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-01-08 14:45:09 +01:00
|
|
|
<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)
|
2018-01-09 03:41:07 +01:00
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@scheme.Crypto</td>
|
|
|
|
<td>@scheme.Value</td>
|
|
|
|
</tr>
|
|
|
|
}
|
2018-01-08 14:45:09 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-10-27 10:53:04 +02:00
|
|
|
</div>
|
|
|
|
<button name="command" type="submit" class="btn btn-success" value="Save">Save</button>
|
|
|
|
</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
|
|
|
}
|