mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 09:19:24 +01:00
* 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>
43 lines
1.7 KiB
Text
43 lines
1.7 KiB
Text
@model BTCPayServer.Models.AccountViewModels.SetPasswordViewModel
|
|
@{
|
|
var cta = Model.HasPassword ? "Reset your password" : "Create Account";
|
|
ViewData["Title"] = cta;
|
|
Layout = "_LayoutSignedOut";
|
|
}
|
|
|
|
<form method="post" asp-action="SetPassword">
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
{
|
|
<div asp-validation-summary="All" class="@(ViewContext.ModelState.ErrorCount.Equals(1) ? "no-marker" : "")"></div>
|
|
}
|
|
<input asp-for="Code" type="hidden" />
|
|
<input asp-for="EmailSetInternally" type="hidden" />
|
|
@if (Model.EmailSetInternally)
|
|
{
|
|
<input asp-for="Email" type="hidden" />
|
|
<div class="form-group">
|
|
<label asp-for="Email" class="form-label"></label>
|
|
<input type="text" disabled value="@Model.Email" class="form-control" />
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="Email" class="form-label"></label>
|
|
<input asp-for="Email" value="@Model.Email" class="form-control" />
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
|
</div>
|
|
}
|
|
<div class="form-group">
|
|
<label asp-for="Password" class="form-label"></label>
|
|
<input asp-for="Password" class="form-control" />
|
|
<span asp-validation-for="Password" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="ConfirmPassword" class="form-label"></label>
|
|
<input asp-for="ConfirmPassword" class="form-control" />
|
|
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary w-100 btn-lg" id="SetPassword">@cta</button>
|
|
</form>
|