mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* Improve and unify page headers * Altcoin test fixes * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Fix missing store name in pairing view * Fix CanUsePairing test * Bump header navigation font size * Use partial tag instead of Html.PartialAsync in views As suggested by @nicolasdorier. These are equivalent, see details [here](https://docs.microsoft.com/en-us/aspnet/core/mvc/views/partial?view=aspnetcore-3.1#partial-tag-helper). * Fix docs link As in #2432. * Update BTCPayServer/Views/Wallets/SignWithSeed.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletSendVault.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletTransactions.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com>
66 lines
3 KiB
Text
66 lines
3 KiB
Text
@model BTCPayServer.Models.ServerViewModels.DynamicDnsViewModel
|
|
@{
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services, "Dynamic DNS Service");
|
|
}
|
|
|
|
<h2 class="mb-4">@ViewData["PageTitle"]</h2>
|
|
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
@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="Modify"/>
|
|
<div class="form-group">
|
|
<label asp-for="Settings.ServiceUrl"></label>
|
|
<input id="ServiceUrl" asp-for="Settings.ServiceUrl" class="form-control" placeholder="Url"/>
|
|
<p class="form-text text-muted">
|
|
Well-known Dynamic DNS providers are:
|
|
@for (int i = 0; i < Model.KnownServices.Length; i++)
|
|
{
|
|
<a href="#" onclick="document.getElementById('ServiceUrl').value = '@Model.KnownServices[i].Url'; return false;">@Model.KnownServices[i].Name</a><span>@(i == Model.KnownServices.Length - 1 ? "" : ",")</span>
|
|
}
|
|
</p>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Settings.Hostname"></label>
|
|
@if (Model.Modify)
|
|
{
|
|
<input asp-for="Settings.Hostname" class="form-control" readonly placeholder="Hostname"/>
|
|
<p class="form-text text-muted">
|
|
<span>The DNS record has been refreshed: </span>
|
|
@if (Model.LastUpdated != null)
|
|
{
|
|
<span>@Model.LastUpdated</span>
|
|
}
|
|
</p>
|
|
}
|
|
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"></label>
|
|
<input asp-for="Settings.Login" class="form-control" placeholder="Login"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Settings.Password"></label>
|
|
<input asp-for="Settings.Password" class="form-control" placeholder="Password"/>
|
|
</div>
|
|
@if (Model.Modify)
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="Settings.Enabled"></label>
|
|
<input asp-for="Settings.Enabled" class="form-check-inline" type="checkbox"/>
|
|
</div>
|
|
}
|
|
<button name="command" class="btn btn-primary" type="submit" value="Save">Save</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|