mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 15:41:29 +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>
64 lines
2.7 KiB
Text
64 lines
2.7 KiB
Text
@model BTCPayServer.Controllers.RegisterFromAdminViewModel
|
|
@{
|
|
ViewData.SetActivePage(ServerNavPages.Users, "Create account");
|
|
}
|
|
|
|
<form method="post" asp-action="CreateUser">
|
|
<div class="sticky-header">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a asp-action="ListUsers">Users</a>
|
|
</li>
|
|
<li class="breadcrumb-item active" aria-current="page">@ViewData["Title"]</li>
|
|
</ol>
|
|
<h2>@ViewData["Title"]</h2>
|
|
</nav>
|
|
<button id="Save" type="submit" class="btn btn-primary" name="command" value="Save">Create Account</button>
|
|
</div>
|
|
<partial name="_StatusMessage" />
|
|
|
|
<div class="row">
|
|
<div class="col-xl-6 col-xxl-constrain">
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
{
|
|
<div asp-validation-summary="ModelOnly"></div>
|
|
}
|
|
<div class="form-group">
|
|
<label asp-for="Email" class="form-label"></label>
|
|
<input asp-for="Email" required="required" 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>
|
|
@if (ViewData["AllowIsAdmin"] is true)
|
|
{
|
|
<div class="form-group form-check">
|
|
<input asp-for="IsAdmin" type="checkbox" class="form-check-input"/>
|
|
<label asp-for="IsAdmin" class="form-check-label"></label>
|
|
<span asp-validation-for="IsAdmin" class="text-danger"></span>
|
|
</div>
|
|
}
|
|
@if (ViewData["AllowRequestEmailConfirmation"] is true)
|
|
{
|
|
<div class="form-group form-check">
|
|
<input asp-for="EmailConfirmed" type="checkbox" class="form-check-input"/>
|
|
<label asp-for="EmailConfirmed" class="form-check-label"></label>
|
|
<span asp-validation-for="EmailConfirmed" class="text-danger"></span>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
@section PageFootContent {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|