2017-09-13 08:47:34 +02:00
|
|
|
@model RegisterViewModel
|
|
|
|
@{
|
2017-10-27 10:53:04 +02:00
|
|
|
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">
|
2019-06-04 14:37:13 +02:00
|
|
|
<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>
|
2019-06-04 14:37:13 +02:00
|
|
|
<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>
|
2019-06-04 14:37:13 +02:00
|
|
|
<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>
|
2019-06-04 14:37:13 +02:00
|
|
|
<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>
|
2019-06-04 14:37:13 +02:00
|
|
|
<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>
|
|
|
|
}
|
2019-05-13 10:00:58 +02:00
|
|
|
<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>
|
2019-05-13 10:00:58 +02:00
|
|
|
</div>
|
2019-06-03 13:47:18 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
2017-10-27 10:53:04 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-13 08:47:34 +02:00
|
|
|
</section>
|
|
|
|
@section Scripts {
|
2017-10-27 10:53:04 +02:00
|
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
2017-09-13 08:47:34 +02:00
|
|
|
}
|