2024-07-25 15:23:28 +09:00
|
|
|
@model BTCPayServer.Controllers.RegisterFromAdminViewModel
|
2020-07-02 19:32:24 +02:00
|
|
|
@{
|
2021-12-16 11:17:02 +01:00
|
|
|
ViewData.SetActivePage(ServerNavPages.Users, "Create account");
|
2020-07-02 19:32:24 +02:00
|
|
|
}
|
|
|
|
|
2024-06-19 15:23:10 +02:00
|
|
|
<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>
|
2024-07-25 22:46:02 +09:00
|
|
|
<h2 text-translate="true">@ViewData["Title"]</h2>
|
2024-06-19 15:23:10 +02:00
|
|
|
</nav>
|
2024-07-25 15:23:28 +09:00
|
|
|
<button id="page-primary" type="submit" class="btn btn-primary" name="command" value="Save">Create Account</button>
|
2024-06-19 15:23:10 +02:00
|
|
|
</div>
|
|
|
|
<partial name="_StatusMessage" />
|
2020-07-02 19:32:24 +02:00
|
|
|
|
2024-06-19 15:23:10 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xl-6 col-xxl-constrain">
|
|
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
|
|
{
|
|
|
|
<div asp-validation-summary="ModelOnly"></div>
|
|
|
|
}
|
2020-07-02 19:32:24 +02:00
|
|
|
<div class="form-group">
|
2021-06-06 13:44:54 +02:00
|
|
|
<label asp-for="Email" class="form-label"></label>
|
2020-07-02 19:32:24 +02:00
|
|
|
<input asp-for="Email" required="required" class="form-control"/>
|
|
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-06-06 13:44:54 +02:00
|
|
|
<label asp-for="Password" class="form-label"></label>
|
2020-09-05 12:16:48 +02:00
|
|
|
<input asp-for="Password" class="form-control"/>
|
2020-07-02 19:32:24 +02:00
|
|
|
<span asp-validation-for="Password" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-06-06 13:44:54 +02:00
|
|
|
<label asp-for="ConfirmPassword" class="form-label"></label>
|
2020-09-05 12:16:48 +02:00
|
|
|
<input asp-for="ConfirmPassword" class="form-control"/>
|
2020-07-02 19:32:24 +02:00
|
|
|
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
@if (ViewData["AllowIsAdmin"] is true)
|
|
|
|
{
|
2020-07-13 19:08:47 +02:00
|
|
|
<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>
|
2020-07-02 19:32:24 +02:00
|
|
|
<span asp-validation-for="IsAdmin" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
}
|
2020-09-05 12:16:48 +02:00
|
|
|
@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>
|
|
|
|
}
|
2024-06-19 15:23:10 +02:00
|
|
|
</div>
|
2020-07-02 19:32:24 +02:00
|
|
|
</div>
|
2024-06-19 15:23:10 +02:00
|
|
|
</form>
|
2020-07-02 19:32:24 +02:00
|
|
|
|
2024-06-19 15:23:10 +02:00
|
|
|
@section PageFootContent {
|
|
|
|
<partial name="_ValidationScriptsPartial" />
|
|
|
|
}
|