btcpayserver/BTCPayServer/Views/Shared/Ethereum/UpdateChainConfig.cshtml
d11n 452915478b
UI: Fix duplicate status messages (#2481)
The status message is included in the NavLayout, hence the pages that use this layout should not include the status message.

Fixes #2478.
2021-04-20 16:16:21 +09:00

50 lines
2.4 KiB
Plaintext

@using BTCPayServer.Services.Altcoins.Ethereum.UI
@using BTCPayServer.Views.Server
@using System.Net.Http
@model BTCPayServer.Services.Altcoins.Ethereum.Configuration.EthereumLikeConfiguration
@inject BTCPayNetworkProvider BTCPayNetworkProvider;
@inject IHttpClientFactory HttpClientFactory;
@{
Layout = "../_NavLayout.cshtml";
ViewData["NavPartialName"] = "../Server/_Nav";
ViewBag.MainTitle = "Server settings";
ViewData.SetActivePageAndTitle(ServerNavPages.Policies, $"ETH Chain {Model.ChainId} Configuration");
}
@if (!ViewContext.ModelState.IsValid)
{
<div asp-validation-summary="All" class="text-danger"></div>
}
<form method="post">
<div class="form-group">
<input type="hidden" asp-for="ChainId"/>
<div class="form-check">
<label asp-for="Web3ProviderUrl" class="form-control-label"></label>
<input asp-for="Web3ProviderUrl" type="text" class="form-control"/>
<span asp-validation-for="Web3ProviderUrl" class="text-danger"></span>
<div>
Possible free options are
<ul>
<li><a href="https://medium.com/linkpool/release-of-public-ethereum-rpcs-f5dd57455d2e" target="_blank">linkpool.io</a> - Free, just set the url to <code>https://main-rpc.linkpool.io</code></li>
<li><a href="https://chainstack.com/" target="_blank">chainstack.com</a> - Free plan, choose shared public node</li>
<li><a href="https://infura.io/" target="_blank">infura.io</a> - Free tier but limited calls per day</li>
<li>Your own geth/openethereum node</li>
</ul>
</div>
</div>
<div class="form-check">
<label asp-for="Web3ProviderUsername" class="form-control-label"></label>
<input asp-for="Web3ProviderUsername" type="text" class="form-control"/>
<span asp-validation-for="Web3ProviderUsername" class="text-danger"></span>
</div>
<div class="form-check">
<label asp-for="Web3ProviderPassword" class="form-control-label"></label>
<input asp-for="Web3ProviderPassword" type="text" class="form-control"/>
<span asp-validation-for="Web3ProviderPassword" class="text-danger"></span>
</div>
</div>
<button type="submit" class="btn btn-primary" name="command" value="Save" id="saveButton">Save</button>
</form>