mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
0f8da123b8
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
96 lines
4.1 KiB
Plaintext
96 lines
4.1 KiB
Plaintext
@model BTCPayServer.Models.ServerViewModels.DynamicDnsViewModel
|
|
@{
|
|
ViewData.SetActivePage(ServerNavPages.Services, "Dynamic DNS Service");
|
|
}
|
|
|
|
@section PageFootContent {
|
|
<script>
|
|
delegate('click', '.serviceSettings', e => {
|
|
document.getElementById('ServiceUrl').value = e.target.dataset.url;
|
|
});
|
|
</script>
|
|
}
|
|
<form method="post">
|
|
<div class="sticky-header">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a asp-action="Services">Services</a>
|
|
</li>
|
|
<li class="breadcrumb-item">
|
|
<a asp-action="DynamicDnsService">Dynamic DNS Settings</a>
|
|
</li>
|
|
<li class="breadcrumb-item active" aria-current="page">@ViewData["Title"]</li>
|
|
</ol>
|
|
<h2>
|
|
<span>@ViewData["Title"]</span>
|
|
<small>
|
|
<a href="https://docs.btcpayserver.org/Apps/" target="_blank" rel="noreferrer noopener" title="More information...">
|
|
<vc:icon symbol="info" />
|
|
</a>
|
|
</small>
|
|
</h2>
|
|
</nav>
|
|
<button name="command" class="btn btn-primary" type="submit" value="Save">Save</button>
|
|
</div>
|
|
<partial name="_StatusMessage" />
|
|
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
{
|
|
<div asp-validation-summary="All"></div>
|
|
}
|
|
<div class="form-group">
|
|
<input type="hidden" asp-for="Modify"/>
|
|
<div class="form-group">
|
|
<label asp-for="Settings.ServiceUrl" class="form-label"></label>
|
|
<input id="ServiceUrl" asp-for="Settings.ServiceUrl" class="form-control" placeholder="Url"/>
|
|
<div class="form-text">
|
|
Well-known Dynamic DNS providers are:
|
|
@for (var i = 0; i < Model.KnownServices.Length; i++)
|
|
{
|
|
<a href="#" class="serviceSettings" data-url="@Model.KnownServices[i].Url">@Model.KnownServices[i].Name</a>
|
|
<span>@(i == Model.KnownServices.Length - 1 ? "" : ",")</span>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Settings.Hostname" class="form-label"></label>
|
|
@if (Model.Modify)
|
|
{
|
|
<input asp-for="Settings.Hostname" class="form-control" readonly placeholder="Hostname"/>
|
|
<div class="form-text">
|
|
<span>The DNS record has been refreshed: </span>
|
|
@if (Model.LastUpdated != null)
|
|
{
|
|
<span>@Model.LastUpdated</span>
|
|
}
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<input asp-for="Settings.Hostname" class="form-control" placeholder="Hostname"/>
|
|
<span asp-validation-for="Settings.Hostname" class="text-danger"></span>
|
|
}
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Settings.Login" class="form-label"></label>
|
|
<input asp-for="Settings.Login" class="form-control" placeholder="Login"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Settings.Password" class="form-label"></label>
|
|
<input asp-for="Settings.Password" class="form-control" placeholder="Password"/>
|
|
</div>
|
|
@if (Model.Modify)
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="Settings.Enabled" class="form-label"></label>
|
|
<input asp-for="Settings.Enabled" disabled type="checkbox" class="btcpay-toggle ms-2" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|