btcpayserver/BTCPayServer/Views/Account/Register.cshtml

63 lines
3.3 KiB
Plaintext
Raw Normal View History

2017-09-13 08:47:34 +02:00
@model RegisterViewModel
@{
ViewData["Title"] = "Register";
2017-09-13 08:47:34 +02:00
}
<section>
2019-06-03 13:47:18 +02:00
<div>
<div class="modal-dialog modal-login">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Create account</h4>
</div>
<div class="modal-body">
<form asp-route-returnUrl="@ViewData["ReturnUrl"]" asp-route-logon="@ViewData["Logon"]" method="post">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
2019-06-03 13:47:18 +02:00
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<label for="Email" class="input-group-text"><span class="input-group-addon fa fa-user"></span></label>
</div>
<input asp-for="Email" class="form-control" placeholder="Email" required="required"/>
2019-06-03 13:47:18 +02:00
</div>
<span asp-validation-for="Email" class="text-danger"></span>
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<label for="Password" class="input-group-text"><span class="input-group-addon fa fa-lock"></span></label>
</div>
<input asp-for="Password" class="form-control" placeholder="Password" required="required"/>
2019-06-03 13:47:18 +02:00
</div>
<span asp-validation-for="Password" class="text-danger"></span>
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<label for="ConfirmPassword" class="input-group-text"><span class="input-group-addon fa fa-lock"></span></label>
</div>
<input asp-for="ConfirmPassword" class="form-control" placeholder="Repeat password" required="required"/>
2019-06-03 13:47:18 +02:00
</div>
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
</div>
@if (ViewData["AllowIsAdmin"] is true)
{
<div class="form-group">
<label asp-for="IsAdmin"></label>
<input asp-for="IsAdmin" type="checkbox" class="form-check-inline"/>
2019-06-03 13:47:18 +02:00
<span asp-validation-for="IsAdmin" class="text-danger"></span>
</div>
}
<div class="form-group">
2019-06-03 13:47:18 +02:00
<button type="submit" class="btn btn-primary btn-block btn-lg" id="RegisterButton">Create account</button>
</div>
2019-06-03 13:47:18 +02:00
</form>
</div>
</div>
</div>
</div>
2017-09-13 08:47:34 +02:00
</section>
@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
2017-09-13 08:47:34 +02:00
}