REORG
This commit is contained in:
parent
8d68ee380a
commit
45514010f2
3505 changed files with 154 additions and 523 deletions
7
src/Org/Views/Account/AccessDenied.cshtml
Normal file
7
src/Org/Views/Account/AccessDenied.cshtml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
<div class="container">
|
||||
<div class="lead">
|
||||
<h1>Access Denied</h1>
|
||||
<p>You do not have access to that resource.</p>
|
||||
</div>
|
||||
</div>
|
||||
10
src/Org/Views/Account/AccountCreated.cshtml
Normal file
10
src/Org/Views/Account/AccountCreated.cshtml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
@{
|
||||
ViewData["Title"] = "Account creation success";
|
||||
|
||||
}
|
||||
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
Your account has successfully been created.
|
||||
|
||||
<a asp-action="Index" asp-controller="Home">Return to home</a>
|
||||
14
src/Org/Views/Account/AdminDelete.cshtml
Normal file
14
src/Org/Views/Account/AdminDelete.cshtml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@model UnregisterViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Unregister";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
<form asp-controller="Account" asp-action="AdminDelete" method="post" class="form-horizontal" role="form">
|
||||
|
||||
@Html.Hidden("UserId")
|
||||
@Html.Hidden("ReturnUrl")
|
||||
<input type="submit" value="Unregister" class="btn btn-primary" />
|
||||
</form>
|
||||
|
||||
12
src/Org/Views/Account/AdminSendConfirationEmail.cshtml
Executable file
12
src/Org/Views/Account/AdminSendConfirationEmail.cshtml
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
@model Yavsc.Abstract.Manage.EmailSentViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "S'il vous plait, veuillez confirmer votre adresse e-mail";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<div>
|
||||
<p>
|
||||
Un message vient d'être envoyé à l'adresse e-mail ( @Model.EMail , id:@Model.MessageId ).
|
||||
</p>
|
||||
</div>
|
||||
15
src/Org/Views/Account/EmailConfirmed.cshtml
Executable file
15
src/Org/Views/Account/EmailConfirmed.cshtml
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
@{
|
||||
ViewData["Title"] = "Confirmation de votre adresse e-mail";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<div>
|
||||
<p>
|
||||
Merci d’avoir confirmé votre e-mail.
|
||||
@if (User.GetUserId()==null) {
|
||||
<text>S’il vous plait,
|
||||
<a asp-controller="Account" asp-action="SignIn">Cliquez ici pour vous connecter</a>.
|
||||
</text>
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
9
src/Org/Views/Account/ForgotPassword.cshtml
Normal file
9
src/Org/Views/Account/ForgotPassword.cshtml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
@model ForgotPasswordViewModel
|
||||
|
||||
<form asp-controller="Account" asp-action="ForgotPassword">
|
||||
<div class="form-group">
|
||||
<label asp-for="LoginOrEmail"></label>
|
||||
<input class="form-control" placeholder="LoginOrEmail" asp-for="LoginOrEmail" autofocus>
|
||||
</div>
|
||||
<button class="btn btn-primary" name="button" value="send">Send me a recovery link</button>
|
||||
</form>
|
||||
5
src/Org/Views/Account/ForgotPasswordConfirmation.cshtml
Normal file
5
src/Org/Views/Account/ForgotPasswordConfirmation.cshtml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@model string
|
||||
|
||||
|
||||
<h1>Check your mail box!</h1>
|
||||
|
||||
34
src/Org/Views/Account/LoggedOut.cshtml
Normal file
34
src/Org/Views/Account/LoggedOut.cshtml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
@model LoggedOutViewModel
|
||||
|
||||
@{
|
||||
// set this so the layout rendering sees an anonymous user
|
||||
ViewData["signed-out"] = true;
|
||||
}
|
||||
|
||||
<div class="logged-out-page">
|
||||
<h1>
|
||||
Logout
|
||||
<small>You are now logged out</small>
|
||||
</h1>
|
||||
|
||||
@if (Model.PostLogoutRedirectUri != null)
|
||||
{
|
||||
<div>
|
||||
Click <a class="PostLogoutRedirectUri" href="@Model.PostLogoutRedirectUri">here</a> to return to the
|
||||
<span>@Model.ClientName</span> application.
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (Model.SignOutIframeUrl != null)
|
||||
{
|
||||
<iframe width="0" height="0" class="signout" src="@Model.SignOutIframeUrl"></iframe>
|
||||
}
|
||||
</div>
|
||||
|
||||
@section scripts
|
||||
{
|
||||
@if (Model.AutomaticRedirectAfterSignOut)
|
||||
{
|
||||
<script src="~/js/signout-redirect.js"></script>
|
||||
}
|
||||
}
|
||||
87
src/Org/Views/Account/Login.cshtml
Normal file
87
src/Org/Views/Account/Login.cshtml
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
@model LoginViewModel
|
||||
|
||||
<div class="login-page">
|
||||
<div class="lead">
|
||||
<h1>Login</h1>
|
||||
<p>Choose how to login</p>
|
||||
</div>
|
||||
|
||||
<partial name="_ValidationSummary" />
|
||||
|
||||
<div class="row">
|
||||
|
||||
@if (Model.EnableLocalLogin)
|
||||
{
|
||||
<div class="col-sm-6">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Local Account</h2>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form asp-route="Login">
|
||||
<input type="hidden" asp-for="ReturnUrl" />
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Username"></label>
|
||||
<input class="form-control" placeholder="Username" asp-for="Username" autofocus>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Password"></label>
|
||||
<input type="password" class="form-control" placeholder="Password" asp-for="Password" autocomplete="off">
|
||||
</div>
|
||||
@if (Model.AllowRememberLogin)
|
||||
{
|
||||
<div class="form-group">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" asp-for="RememberLogin">
|
||||
<label class="form-check-label" asp-for="RememberLogin">
|
||||
Remember My Login
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<button class="btn btn-primary" name="button" value="login">Login</button>
|
||||
<button class="btn btn-secondary" name="button" value="cancel">Cancel</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (Model.VisibleExternalProviders.Any())
|
||||
{
|
||||
<div class="col-sm-6">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>External Account</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="list-inline">
|
||||
@foreach (var provider in Model.VisibleExternalProviders)
|
||||
{
|
||||
<li class="list-inline-item">
|
||||
<a class="btn btn-secondary"
|
||||
asp-controller="External"
|
||||
asp-action="Challenge"
|
||||
asp-route-scheme="@provider.AuthenticationScheme"
|
||||
asp-route-returnUrl="@Model.ReturnUrl">
|
||||
@provider.DisplayName
|
||||
</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (!Model.EnableLocalLogin && !Model.VisibleExternalProviders.Any())
|
||||
{
|
||||
<div class="alert alert-warning">
|
||||
<strong>Invalid login request</strong>
|
||||
There are no login schemes configured for this request.
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
15
src/Org/Views/Account/Logout.cshtml
Normal file
15
src/Org/Views/Account/Logout.cshtml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@model LogoutViewModel
|
||||
|
||||
<div class="logout-page">
|
||||
<div class="lead">
|
||||
<h1>Logout</h1>
|
||||
<p>Would you like to logut of IdentityServer?</p>
|
||||
</div>
|
||||
|
||||
<form asp-action="Logout">
|
||||
<input type="hidden" name="logoutId" value="@Model.LogoutId" />
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary">Yes</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
8
src/Org/Views/Account/Register.cshtml
Normal file
8
src/Org/Views/Account/Register.cshtml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@model RegisterModel
|
||||
|
||||
<partial name="_ValidationSummary" />
|
||||
<form method="post">
|
||||
@Html.EditorForModel()
|
||||
<button class="btn btn-primary" name="button"
|
||||
value="Register">Register</button>
|
||||
</form>
|
||||
18
src/Org/Views/Account/ResetPassword.cshtml
Normal file
18
src/Org/Views/Account/ResetPassword.cshtml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
@model ResetPasswordViewModel
|
||||
|
||||
<form asp-route-id="@Model.Id" asp-route-code="@Model.Code">
|
||||
<p>Your email : <code>@Model.Email</code></p>
|
||||
<input type="hidden" name="Email" value="@Model.Email" />
|
||||
@Html.ValidationSummary()
|
||||
<div class="form-group">
|
||||
<label asp-for="Password"></label>
|
||||
<input class="form-control" placeholder="Password" asp-for="Password" autofocus>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ConfirmPassword"></label>
|
||||
<input class="form-control" placeholder="ConfirmPassword" asp-for="ConfirmPassword" autofocus>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" name="button" value="Reset">Reset Password</button>
|
||||
|
||||
</form>
|
||||
7
src/Org/Views/Account/ResetPasswordConfirmation fr.cshtml
Executable file
7
src/Org/Views/Account/ResetPasswordConfirmation fr.cshtml
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
@{
|
||||
ViewData["Title"] = "Reset password confirmation";
|
||||
}
|
||||
|
||||
<h1>@ViewData["Title"].</h1>
|
||||
<p>Votre mot de passe a été ré-initialisé.
|
||||
<a href="~/signin">Cliquez ici pour vous connecter</a>.</p>
|
||||
8
src/Org/Views/Account/ResetPasswordConfirmation.cshtml
Executable file
8
src/Org/Views/Account/ResetPasswordConfirmation.cshtml
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
@{
|
||||
ViewData["Title"] = "Reset password confirmation";
|
||||
}
|
||||
|
||||
<h1>@ViewData["Title"].</h1>
|
||||
<p>
|
||||
Your password has been reset. Please <a href="~/signin">Click here to log in</a>.
|
||||
</p>
|
||||
70
src/Org/Views/Account/UserList.cshtml
Normal file
70
src/Org/Views/Account/UserList.cshtml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
@model ApplicationUser[]
|
||||
@{
|
||||
ViewData["Title"] = "Liste des utilisateurs";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<table >
|
||||
<thead>
|
||||
<th>
|
||||
@SR["Public info"]
|
||||
</th>
|
||||
<th>
|
||||
@SR["AdminOnly"]
|
||||
</th>
|
||||
|
||||
</thead>
|
||||
@foreach (var user in Model)
|
||||
{
|
||||
<tr style="border-width:2px;">
|
||||
<td>
|
||||
@Html.DisplayFor(m=>user)
|
||||
</td>
|
||||
<td>
|
||||
<dl>
|
||||
<dt>
|
||||
@SR["UserName"]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(m=>user.UserName)
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
@SR["FullName"]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(m=>user.FullName)
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
@SR["PostalAddress"]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(m=>user.PostalAddress)
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
@SR["Email"]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(m=>user.Email)
|
||||
@if (!user.EmailConfirmed) {
|
||||
<a class="btn btn-primary"
|
||||
asp-action="AdminSendConfirationEmail" asp-route-id="@user.Id" >Envoyer une demande de confirmation</a>
|
||||
}
|
||||
<a asp-action="AdminDelete" asp-route-id="@user.Id"
|
||||
class="btn btn-secondary">Supprimer</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
|
||||
@if (ViewBag.hasNext)
|
||||
{
|
||||
<a asp-route-page="@ViewBag.nextpage" asp-route-len="@ViewBag.pageLen">Next page</a>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue