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>
|
||||
}
|
||||
83
src/Org/Views/Activity/Create.cshtml
Normal file
83
src/Org/Views/Activity/Create.cshtml
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
@model Activity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Activity</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Code" class="col-md-2 control-label">Code</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Code" class="form-control" />
|
||||
<span asp-validation-for="Code" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label">
|
||||
Name"]</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Parent" class="col-md-2 control-label">
|
||||
Parent"]</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ParentCode" asp-items=@ViewBag.ParentCode class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="ParentCode" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Description" class="col-md-2 control-label">
|
||||
Description"]</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Description" class="form-control" />
|
||||
<span asp-validation-for="Description" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Photo" class="col-md-2 control-label">
|
||||
Photo"]
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Photo" class="form-control" />
|
||||
<span asp-validation-for="Photo" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="SettingsClassName" class="col-md-2 control-label">
|
||||
SettingsClass"]
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
|
||||
</select>
|
||||
<span asp-validation-for="SettingsClassName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create"]" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
||||
40
src/Org/Views/Activity/Delete.cshtml
Normal file
40
src/Org/Views/Activity/Delete.cshtml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
@model Activity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>Activity</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Description)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Description)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Photo)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Photo)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-danger" />
|
||||
<a asp-action="Index" class="btn btn-link">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
37
src/Org/Views/Activity/Details.cshtml
Normal file
37
src/Org/Views/Activity/Details.cshtml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
@model Activity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>Activity</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Description)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Description)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Photo)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Photo)
|
||||
<img src="@Model.Photo" style="max-width:100%"/>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Code">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
86
src/Org/Views/Activity/Edit.cshtml
Normal file
86
src/Org/Views/Activity/Edit.cshtml
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
@model Activity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Activity @Model.Code</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Code" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Parent" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ParentCode" asp-items=@ViewBag.ParentCode class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="ParentCode" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Description" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Description" class="form-control" />
|
||||
<span asp-validation-for="Description" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Photo" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Photo" class="form-control" />
|
||||
<span asp-validation-for="Photo" class="text-danger">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="SettingsClassName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
|
||||
</select>
|
||||
<span asp-validation-for="SettingsClassName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Hidden" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Hidden" class="form-control" />
|
||||
<span asp-validation-for="Hidden" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Rate" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Rate" class="form-control" />
|
||||
<span asp-validation-for="Rate" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
||||
89
src/Org/Views/Activity/Index.cshtml
Normal file
89
src/Org/Views/Activity/Index.cshtml
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
@model IEnumerable<Activity>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
@section scripts {
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("tr[data-hidden=True]").css('background-color','grey')
|
||||
})
|
||||
</script>
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Code)
|
||||
</th>
|
||||
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Description)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Photo)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Parent)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.SettingsClassName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Children)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Rate)
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr data-hidden="@item.Hidden">
|
||||
<td>
|
||||
<a name="@item.Code" class="btn btn-link"></a> @Html.DisplayFor(modelItem => item.Name)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Code)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Description)
|
||||
</td>
|
||||
<td>@if (item.Photo!=null) {
|
||||
<img src="@item.Photo" style="max-height: 4em;" />
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@if (item.Parent!=null) {
|
||||
<text>
|
||||
<a href="#@item.ParentCode">@Html.DisplayFor(modelItem => item.Parent)</a>
|
||||
</text>
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@if (item.SettingsClassName!=null) {
|
||||
<text>
|
||||
@item.SettingsClassName
|
||||
</text>
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Children)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Rate)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Code" class="btn btn-default">Edit</a>
|
||||
<a asp-action="Details" asp-route-id="@item.Code" class="btn btn-success">Details</a>
|
||||
<a asp-action="Delete" asp-route-id="@item.Code" class="btn btn-danger">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
29
src/Org/Views/Administration/Enroll.cshtml
Normal file
29
src/Org/Views/Administration/Enroll.cshtml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
@model Yavsc.ViewModels.EnrolerViewModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Enroll"+" : "+Model.RoleName;
|
||||
}
|
||||
|
||||
<form asp-action="Enroll">
|
||||
<div class="form-horizontal">
|
||||
<h4>@ViewBag.Title</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="EnroledUserId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="EnroledUserId" asp-items=@ViewBag.UserId class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="EnroledUserId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" asp-for="RoleName" />
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Submit"]" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
33
src/Org/Views/Administration/Fire.cshtml
Normal file
33
src/Org/Views/Administration/Fire.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model Yavsc.ViewModels.FireViewModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Fire"+" : "+Model.RoleName;
|
||||
}
|
||||
|
||||
<form asp-action="Fire">
|
||||
<div class="form-horizontal">
|
||||
<h4>@ViewBag.Title</h4>
|
||||
<hr />
|
||||
<span asp-validation-for="RoleName" class="text-danger" ></span>
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="EnroledUserName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<p class="col-md-7">
|
||||
@Html.DisplayFor(model => model.EnroledUserName)
|
||||
</p>
|
||||
|
||||
<span asp-validation-for="EnroledUserId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" asp-for="RoleName" />
|
||||
<input type="hidden" asp-for="EnroledUserId" />
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Submit"]" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
5
src/Org/Views/Administration/Haircut.cshtml
Normal file
5
src/Org/Views/Administration/Haircut.cshtml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@model HaircutAdminViewModel
|
||||
|
||||
<a asp-controller="HairTaints" class="btn btn-primary">
|
||||
Gestion des couleurs
|
||||
</a>
|
||||
70
src/Org/Views/Administration/Index.cshtml
Normal file
70
src/Org/Views/Administration/Index.cshtml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
@model AdminViewModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Administration";
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
<h3>Rôles</h3>
|
||||
<ul>
|
||||
@foreach (var role in Model.Roles) {
|
||||
<li>@Html.ActionLink(role.Name,"Role",new { id=role.Id }) (@role.UserCount membres)</li>
|
||||
}
|
||||
</ul>
|
||||
<h3>Administrateurs</h3>
|
||||
<dl><dt>
|
||||
Nombre </dt><dd> @Model.AdminCount</dd>
|
||||
<dt>Êtes-vous administrateur?</dt>
|
||||
<dd>@(Model.YouAreAdmin?"Oui":"Non")</dd>
|
||||
</dl>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
|
||||
<h3>Utilisateurs</h3>
|
||||
<a asp-action="UserList" asp-controller="Account">
|
||||
@Model.UserCount utilisateurs enregistrés</a>
|
||||
|
||||
<h3>Logiciel</h3>
|
||||
<dl>
|
||||
<dt>Cette librairie
|
||||
</dt>
|
||||
<dd>@ViewBag.ThisAssembly
|
||||
</dd>
|
||||
<dt>Version du runtime
|
||||
</dt>
|
||||
<dd>@ViewBag.RunTimeVersion
|
||||
</dd>
|
||||
|
||||
<dt>Hôte
|
||||
</dt>
|
||||
<dd>@ViewBag.HostContextFullName
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<h3>Musical</h3>
|
||||
|
||||
<a asp-controller="Instruments" class="btn btn-primary">
|
||||
Gestion des Instruments
|
||||
</a>
|
||||
|
||||
<environment names="coiffure">
|
||||
|
||||
<h3>Coiffure</h3>
|
||||
|
||||
<a asp-controller="HairTaints" class="btn btn-primary">
|
||||
Gestion des couleurs
|
||||
</a>
|
||||
</environment>
|
||||
|
||||
<h3>Devices</h3>
|
||||
<a asp-controller="Devices" class="btn btn-primary">
|
||||
Cloud Messaging
|
||||
</a>
|
||||
|
||||
<h3>Applications tièrces</h3>
|
||||
<a asp-controller="Client" class="btn btn-primary">
|
||||
OAuth key management
|
||||
</a>
|
||||
|
||||
33
src/Org/Views/Administration/Role.cshtml
Normal file
33
src/Org/Views/Administration/Role.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model RoleUserCollection
|
||||
@{
|
||||
ViewBag.Title = "Role"+" "+Model.Name;
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
<p>
|
||||
<a asp-action="Enroll" asp-route-RoleName="@Model.Name" class="btn btn-primary" >Enroll</a>
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
User
|
||||
</th>
|
||||
<th>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
@foreach (var user in Model.Users) {
|
||||
<tr>
|
||||
<td>
|
||||
<img src="~/avatars/@(user.UserName).xs.png" alt="avatar"/>
|
||||
<span> @user.UserName <@(user.Email)> </span>
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Fire" asp-route-RoleName="@Model.Name" asp-route-UserId="@user.UserId" class="btn btn-success" >
|
||||
<img src="~/images/ptcroix.png" /> Fire </a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
55
src/Org/Views/Announces/Create.cshtml
Normal file
55
src/Org/Views/Announces/Create.cshtml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
@model Yavsc.Models.Messaging.Announce
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Announce</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="All" class="text-danger"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="For" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="For" class="form-control" asp-items="@ViewBag.For"></select>
|
||||
<span asp-validation-for="For" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Message" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Message" class="form-control" />
|
||||
<span asp-validation-for="Message" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Sender" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Sender" class="form-control" />
|
||||
<span asp-validation-for="Sender" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Topic" class="form-control" />
|
||||
<span asp-validation-for="Topic" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
46
src/Org/Views/Announces/Delete.cshtml
Normal file
46
src/Org/Views/Announces/Delete.cshtml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
@model Yavsc.Models.Messaging.Announce
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>Announce</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.For)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.For)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Message)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Message)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Sender)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Sender)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Topic)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Topic)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
42
src/Org/Views/Announces/Details.cshtml
Normal file
42
src/Org/Views/Announces/Details.cshtml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
@model Yavsc.Models.Messaging.Announce
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>Announce</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.For)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.For)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Message)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Message)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Sender)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Sender)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Topic)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Topic)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
54
src/Org/Views/Announces/Edit.cshtml
Normal file
54
src/Org/Views/Announces/Edit.cshtml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
@model Yavsc.Models.Messaging.Announce
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Announce</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="For" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="For" class="form-control"></select>
|
||||
<span asp-validation-for="For" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Message" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Message" class="form-control" />
|
||||
<span asp-validation-for="Message" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Sender" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Sender" class="form-control" />
|
||||
<span asp-validation-for="Sender" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Topic" class="form-control" />
|
||||
<span asp-validation-for="Topic" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
50
src/Org/Views/Announces/Index.cshtml
Normal file
50
src/Org/Views/Announces/Index.cshtml
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
@model IEnumerable<Yavsc.Models.Messaging.Announce>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.For)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Message)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Sender)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Topic)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.For)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Message)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Sender)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Topic)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
88
src/Org/Views/Blogspot/Create.cshtml
Normal file
88
src/Org/Views/Blogspot/Create.cshtml
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
@model BlogPostCreateViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Blog post edition";
|
||||
}
|
||||
|
||||
@section header {
|
||||
|
||||
<link href="~/css/main/dropzone.css" rel="stylesheet">
|
||||
|
||||
<script src="~/js/dropzone.js"></script>
|
||||
|
||||
@{ await Html.RenderPartialAsync("_FSScriptsPartial"); }
|
||||
|
||||
}
|
||||
|
||||
<h2>Blog post</h2>
|
||||
<label><input type="checkbox" id="vcbtn" />Editer le code source Markdown</label>
|
||||
|
||||
<div asp-validation-summary="All" class="text-danger"></div>
|
||||
|
||||
<img class="blogphoto" alt="" src="@Model.Photo" title="Photo associée au post">
|
||||
<h2 title="Titre du post" class="blogtitle" id="titleview" >@Model.Title</h2>
|
||||
|
||||
<div title="Contenu du post" id="contentview">@Model.Content</div>
|
||||
|
||||
<hr>
|
||||
<form asp-controller="Blogspot" asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
|
||||
<div class="form-group mdcoding">
|
||||
<label asp-for="Title" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Title" class="form-control" data-from="titleview"/>
|
||||
<span asp-validation-for="Title" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Photo" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Photo" class="form-control" />
|
||||
<span asp-validation-for="Photo" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mdcoding">
|
||||
<label asp-for="Content" class="col-md-2 control-label" ></label>
|
||||
<div class="col-md-10">
|
||||
<textarea asp-for="Content" class="form-control" id="Content" data-from="contentview">
|
||||
</textarea>
|
||||
<span asp-validation-for="Content" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="ACL" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
@await Component.InvokeAsync("CirclesControl", Model)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Publish" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Publish" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<button class="btn btn-primary" >Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@await Component.InvokeAsync("Directory","")
|
||||
<div >
|
||||
@{ await Html.RenderPartialAsync("_PostFilesPartial"); }
|
||||
</div>
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
58
src/Org/Views/Blogspot/Delete.cshtml
Normal file
58
src/Org/Views/Blogspot/Delete.cshtml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
@model BlogPost
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
}
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>Blog</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
Author
|
||||
</dt>
|
||||
<dd>
|
||||
@Model.Author
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Content)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Content)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateModified)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Photo)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Photo)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Title)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
105
src/Org/Views/Blogspot/Details.cshtml
Normal file
105
src/Org/Views/Blogspot/Details.cshtml
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
@model BlogPost
|
||||
@{
|
||||
ViewData["Title"]=Model.Title;
|
||||
}
|
||||
@section scripts {
|
||||
|
||||
<script src="~/js/comment.js" asp-append-version="true"></script>
|
||||
<script>
|
||||
$.psc.blogcomment.prototype.options.lang = '@System.Globalization.CultureInfo.CurrentUICulture.Name';
|
||||
$.psc.blogcomment.prototype.options.apictrlr = '/api/blogcomments';
|
||||
$.psc.blogcomment.prototype.options.authorId = '@User.GetUserId()';
|
||||
$.psc.blogcomment.prototype.options.authorName = '@User.GetUserName()';
|
||||
$(document).ready(function() {
|
||||
$('#cmtBtn').click(function() {
|
||||
$.ajax({
|
||||
async: true,
|
||||
cache: false,
|
||||
type: 'POST',
|
||||
method: 'POST',
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify({
|
||||
Content: $('#Comment').val(),
|
||||
ReceiverId: @Model.Id
|
||||
}),
|
||||
error: function(xhr,data) {
|
||||
if (xhr.status=400)
|
||||
{
|
||||
if (xhr.responseJSON)
|
||||
{
|
||||
$('#commentValidation').html(
|
||||
xhr.responseJSON.Content);
|
||||
} else {
|
||||
$('#commentValidation').html(
|
||||
"Une erreur est survenue : "+xhr.status+"<br/>"+
|
||||
"<code><pre>"+xhr.responseText+"</pre></code>"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
success: function (data) {
|
||||
var comment = $('#Comment').val();
|
||||
$('#Comment').val('');
|
||||
$('#commentValidation').empty();
|
||||
var nnode = '<div data-type="blogcomment" data-id="'+data.id+'" data-allow-edit="True" data-allow-moderate="@ViewData["moderatoFlag"]" data-date="'+data.dateCreated+'" data-username="@User.GetUserName()">'+comment+'</div>';
|
||||
$('#comments').append($(nnode).blogcomment())
|
||||
},
|
||||
url:'/api/blogcomments'
|
||||
});
|
||||
});
|
||||
})
|
||||
</script>
|
||||
<style>
|
||||
.avatar, .commentmeta, .blogcomment p , .subcomments {
|
||||
display: inline-block;
|
||||
}
|
||||
.blogcomment {
|
||||
display: inline-block;
|
||||
margin:.3em;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
|
||||
<div class="post">
|
||||
<div class="float-left">
|
||||
<img class="photo" src="@Model.Photo" >
|
||||
</div>
|
||||
|
||||
<h1 ismarkdown>@Model.Title</h1>
|
||||
|
||||
@Html.DisplayFor(m=>m.Author)
|
||||
<asciidoc>@Html.DisplayFor(m=>m.Content)</asciidoc>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="comments">
|
||||
@if (Model.Comments!=null) {
|
||||
foreach (var comment in Model.Comments.Where(c=>c.ParentId==null)) {
|
||||
@await Component.InvokeAsync("Comment", new { id = comment.Id })
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@if (User.GetUserId()!=null) {
|
||||
<div class="form-horizontal">
|
||||
<div class="input-group" >
|
||||
<input name="Comment" id="Comment" class="form-control" placeholder="..."/>
|
||||
<span class="input-group-btn">
|
||||
<span id="commentValidation"></span>
|
||||
<input type="button" value="Comment" class="btn btn-secondary"
|
||||
data-receiverId="@Model.Id" id="cmtBtn"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
<span asp-validation-for="Content" class="text-danger" ></span>
|
||||
</div>
|
||||
}
|
||||
else {
|
||||
<p><i>Vous devez être identifié pour commenter.</i> </p>
|
||||
}
|
||||
|
||||
@if ((await AuthorizationService.AuthorizeAsync(User, Model, new EditPermission())).Succeeded) {
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-link">Edit</a>
|
||||
}
|
||||
<a asp-action="Index" class="btn btn-link">Back to List</a>
|
||||
|
||||
120
src/Org/Views/Blogspot/Edit.cshtml
Normal file
120
src/Org/Views/Blogspot/Edit.cshtml
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
@model BlogPostEditViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Blog post edition";
|
||||
}
|
||||
|
||||
@section header {
|
||||
|
||||
<link href="~/css/main/dropzone.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
.box__dragndrop,
|
||||
.box__uploading,
|
||||
.box__success,
|
||||
.box__error {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.box.has-advanced-upload {
|
||||
background-color: white;
|
||||
outline: 2px dashed black;
|
||||
outline-offset: -10px;
|
||||
}
|
||||
.box.has-advanced-upload .box__dragndrop {
|
||||
display: inline;
|
||||
}
|
||||
.box.is-dragover {
|
||||
background-color: grey;
|
||||
}
|
||||
.ql-snow.ql-toolbar {
|
||||
border: outset grey 2px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script src="~/js/dropzone.js"></script>
|
||||
|
||||
|
||||
@{ await Html.RenderPartialAsync("_FSScriptsPartial"); }
|
||||
|
||||
}
|
||||
|
||||
<h2 >Blog post</h2>
|
||||
<label><input type="checkbox" id="vcbtn" />Editer le code source Markdown</label>
|
||||
|
||||
<div asp-validation-summary="All" class="text-danger"></div>
|
||||
|
||||
|
||||
<div id="Titletoolbar" class="hidden ql-snow ql-toolbar">
|
||||
<button class="ql-format-button ql-italic"></button>
|
||||
<button class="ql-format-button ql-underline"></button>
|
||||
<button class="ql-format-button ql-strike"></button>
|
||||
</div>
|
||||
|
||||
<img class="blogphoto" alt="" src="@Model.Photo" title="Photo associée au post">
|
||||
<h2 title="Titre du post" class="blogtitle" id="titleview" >@Model.Title</h2>
|
||||
|
||||
|
||||
<div title="Contenu du post" id="contentview"><asciidoc>@Model.Content</asciidoc></div>
|
||||
|
||||
<hr>
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
@Html.HiddenFor(m=>m.Id)
|
||||
|
||||
<div class="form-group mdcoding">
|
||||
<label asp-for="Title" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Title" class="form-control" data-from="titleview"/>
|
||||
<span asp-validation-for="Title" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Photo" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Photo" class="form-control" />
|
||||
<span asp-validation-for="Photo" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group mdcoding">
|
||||
<label asp-for="Content" class="col-md-2 control-label" ></label>
|
||||
<div class="col-md-10">
|
||||
<textarea asp-for="Content" class="form-control" id="Content" data-from="contentview">
|
||||
</textarea>
|
||||
<span asp-validation-for="Content" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ACL" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
@await Component.InvokeAsync("CirclesControl", Model)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Publish" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input type="checkbox" asp-for="Publish" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@await Component.InvokeAsync("Directory","")
|
||||
<div >
|
||||
@{ await Html.RenderPartialAsync("_PostFilesPartial"); }
|
||||
</div>
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
91
src/Org/Views/Blogspot/Index.cshtml
Normal file
91
src/Org/Views/Blogspot/Index.cshtml
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
@model IEnumerable<IBlogPost>
|
||||
@{
|
||||
ViewData["Title"] = "Blogs, l'index";
|
||||
}
|
||||
@section header {
|
||||
<style>
|
||||
.collapsed {
|
||||
height: 1em;
|
||||
}
|
||||
.sametitlegrip {
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sametitle {
|
||||
overflow: hidden;
|
||||
transition: height 1s;
|
||||
}
|
||||
td {
|
||||
transition: height 1s;
|
||||
}
|
||||
div.row {
|
||||
border-bottom: dashed black 1px;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
@section scripts {
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(".sametitle").addClass("collapsed")
|
||||
.on("mouseover",function(){
|
||||
$(this).removeClass("collapsed")
|
||||
}).on("mouseout",function(){
|
||||
$(this).addClass("collapsed")
|
||||
});
|
||||
}
|
||||
)
|
||||
</script>
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
@if (User.IsSignedIn()) {
|
||||
<p>
|
||||
<a asp-action="Create">Create a new article</a>
|
||||
</p>
|
||||
}
|
||||
|
||||
<div class="blog-index">
|
||||
@{
|
||||
int maxTextLen = 75;
|
||||
foreach (var post in Model) {
|
||||
<div class="post card">
|
||||
|
||||
|
||||
<a asp-action="Details" asp-route-id="@post.Id" class="bloglink" >
|
||||
<div class="float-left"><img class="photo card-photo" src="@post.Photo" ></div>
|
||||
<h3 class="index-post-title">@post.Title</h3>
|
||||
</a>
|
||||
<div>
|
||||
<a asp-action="Details" asp-route-id="@post.Id">
|
||||
<asciidoc summary="@maxTextLen">@post.Content</asciidoc></a>
|
||||
<span style="font-size:x-small;">@Html.DisplayFor(m => post.Author)</span>
|
||||
<span style="font-size:xx-small;">
|
||||
posté le @post.DateCreated.ToString("dddd d MMM yyyy à H:mm")
|
||||
@if ((post.DateModified - post.DateCreated).Minutes > 0){
|
||||
@:- Modifié le @post.DateModified.ToString("dddd d MMM yyyy à H:mm")
|
||||
})
|
||||
</span>
|
||||
</div>
|
||||
<div class="actiongroup">
|
||||
@if ((await AuthorizationService.AuthorizeAsync(User, post, new ReadPermission())).Succeeded)
|
||||
{
|
||||
<a asp-action="Details" asp-route-id="@post.Id" class="btn btn-light">Details</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a asp-action="Details" asp-route-id="@post.Id" class="btn btn-light">Details</a>
|
||||
}
|
||||
@if ((await AuthorizationService.AuthorizeAsync(User, post, new EditPermission())).Succeeded)
|
||||
{
|
||||
<a asp-action="Edit" asp-route-id="@post.Id" class="btn btn-primary">Edit</a>
|
||||
|
||||
<a asp-action="Delete" asp-route-id="@post.Id" class="btn btn-danger">Delete</a>
|
||||
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
@if(Model.Count()==0){<p>Néant</p>}
|
||||
46
src/Org/Views/Blogspot/Title.cshtml
Normal file
46
src/Org/Views/Blogspot/Title.cshtml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
@model IEnumerable<BlogPost>
|
||||
|
||||
<h2 markdown="@ViewData["Title"]"></h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create" asp-route-title="@ViewData["Title"]">Poster au même titre</a>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td><a asp-action="Details" asp-route-id="@item.Id" class="bloglink">
|
||||
<img src="@item.Photo" class="blogphoto"></a>
|
||||
</td>
|
||||
<td>
|
||||
<asciidoc>@((item.Content?.Length > 256) ? item.Content.Substring(0, 256) + " ..." : item.Content)</asciidoc>
|
||||
<span style="font-size:x-small;">(@item.Author.UserName </span>,
|
||||
<span style="font-size:xx-small;">
|
||||
posté le @item.DateCreated.ToString("dddd d MMM yyyy à H:mm")
|
||||
@if ((item.DateModified - item.DateCreated).Minutes > 0){
|
||||
@:- Modifié le @item.DateModified.ToString("dddd d MMM yyyy à H:mm")
|
||||
})
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<ul class="actiongroup">
|
||||
@if ((await AuthorizationService.AuthorizeAsync(User, item, new ReadPermission())).Succeeded) {
|
||||
<li>
|
||||
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-light">Details</a>
|
||||
</li>
|
||||
}
|
||||
@if ((await AuthorizationService.AuthorizeAsync(User, item, new EditPermission())).Succeeded) {
|
||||
<li><a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-primary">Edit</a>
|
||||
</li>
|
||||
<li><a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
|
||||
|
||||
76
src/Org/Views/Blogspot/userposts.cshtml
Normal file
76
src/Org/Views/Blogspot/userposts.cshtml
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
@model IEnumerable<BlogPost>
|
||||
@{
|
||||
ViewData["Title"] = "User posts";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
Author
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Content)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Photo)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.UserModified)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@item.Author?.UserName
|
||||
</td>
|
||||
<td>
|
||||
<div md-content="@item.Content"/>
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateModified)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Photo)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.UserModified)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Title)
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<ul class="actiongroup">
|
||||
<li>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a>
|
||||
</li><li>
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a>
|
||||
</li><li>
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
190
src/Org/Views/BrusherProfile/Delete.cshtml
Normal file
190
src/Org/Views/BrusherProfile/Delete.cshtml
Normal file
|
|
@ -0,0 +1,190 @@
|
|||
@model Yavsc.Models.Haircut.BrusherProfile
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>BrusherProfile</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.CarePrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.CarePrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.HalfBalayagePrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HalfBalayagePrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.HalfBrushingPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HalfBrushingPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.HalfColorPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HalfColorPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.HalfDefrisPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HalfDefrisPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.HalfMechPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HalfMechPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.HalfMultiColorPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HalfMultiColorPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.HalfPermanentPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HalfPermanentPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.KidCutPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.KidCutPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LongBalayagePrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LongBalayagePrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LongBrushingPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LongBrushingPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LongColorPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LongColorPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LongDefrisPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LongDefrisPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LongMechPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LongMechPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LongMultiColorPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LongMultiColorPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LongPermanentPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LongPermanentPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ManCutPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ManCutPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ShampooPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ShampooPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ShortBalayagePrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ShortBalayagePrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ShortBrushingPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ShortBrushingPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ShortColorPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ShortColorPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ShortDefrisPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ShortDefrisPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ShortMechPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ShortMechPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ShortMultiColorPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ShortMultiColorPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ShortPermanentPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ShortPermanentPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.WomenHalfCutPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.WomenHalfCutPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.WomenLongCutPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.WomenLongCutPrice)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.WomenShortCutPrice)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.WomenShortCutPrice)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Annuler</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
323
src/Org/Views/BrusherProfile/Edit.cshtml
Normal file
323
src/Org/Views/BrusherProfile/Edit.cshtml
Normal file
|
|
@ -0,0 +1,323 @@
|
|||
@model Yavsc.Models.Haircut.BrusherProfile
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edition du profile coiffeu(se|r)";
|
||||
}
|
||||
|
||||
@section header {
|
||||
<link rel="stylesheet" href="~/lib/jquery-timepicker/jquery.timepicker.css"></style>
|
||||
}
|
||||
@section scripts {
|
||||
<script src="~/lib/jquery-timepicker/jquery.timepicker.min.js"></script>
|
||||
<script src="~/lib/jonthornton-Datepair/datepair.min.js"></script>
|
||||
<script src="~/lib/jonthornton-Datepair/jquery.datepair.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('.timepicker').timepicker();
|
||||
$('#datepair').datepair();
|
||||
})
|
||||
</script>
|
||||
}
|
||||
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<hr />
|
||||
@Html.ValidationSummary()
|
||||
|
||||
<fieldset><legend>Disponibilité</legend>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="ActionDistance" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ActionDistance" class="form-control" />
|
||||
<span asp-validation-for="ActionDistance" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset><legend>Grille tarifaire</legend>
|
||||
<h2>Divers</h2>
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="CarePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="CarePrice" class="form-control" />
|
||||
<span asp-validation-for="CarePrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShampooPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShampooPrice" class="form-control" />
|
||||
<span asp-validation-for="ShampooPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Techniques</h2>
|
||||
<h3>Couleurs</h3>
|
||||
|
||||
<h4>Simple</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfColorPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfColorPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongColorPrice" class="form-control" />
|
||||
<span asp-validation-for="LongColorPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortColorPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortColorPrice" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>Multi-couleur</h4>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfMultiColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfMultiColorPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfMultiColorPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="LongMultiColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongMultiColorPrice" class="form-control" />
|
||||
<span asp-validation-for="LongMultiColorPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortMultiColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortMultiColorPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortMultiColorPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Balayage</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="HalfBalayagePrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="LongBalayagePrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="ShortBalayagePrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Coiffage</h2>
|
||||
<h3>Brushing</h3>
|
||||
<h4>Pour la femme</h4>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfBrushingPrice" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="LongBrushingPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortBrushingPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<h4>Pour l'homme</h4>
|
||||
<div class="form-group">
|
||||
<label asp-for="ManBrushPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ManBrushPrice" class="form-control" />
|
||||
<span asp-validation-for="ManBrushPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Mise en plis</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfFoldingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfFoldingPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfFoldingPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongFoldingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongFoldingPrice" class="form-control" />
|
||||
<span asp-validation-for="LongFoldingPrice" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortFoldingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortFoldingPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortFoldingPrice" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Défrisage</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfDefrisPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="LongDefrisPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortDefrisPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h3>Mèches</h3>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfMechPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfMechPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfMechPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongMechPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongMechPrice" class="form-control" />
|
||||
<span asp-validation-for="LongMechPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortMechPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortMechPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortMechPrice" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h3>Permanentes</h3>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfPermanentPrice" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="LongPermanentPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortPermanentPrice" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Coupes</h2>
|
||||
<h3>Femme</h3>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenHalfCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenHalfCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenHalfCutPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenLongCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenLongCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenLongCutPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenShortCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenShortCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenShortCutPrice" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<h3>Homme et enfant</h3>
|
||||
<div class="form-group">
|
||||
<label asp-for="KidCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="KidCutPrice" class="form-control" />
|
||||
<span asp-validation-for="KidCutPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ManCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ManCutPrice" class="form-control" />
|
||||
<span asp-validation-for="ManCutPrice" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Le forfait</h2>
|
||||
<div class="form-group">
|
||||
<label asp-for="FlatFeeDiscount" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="FlatFeeDiscount" class="form-control" />
|
||||
<span asp-validation-for="FlatFeeDiscount" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Annuler</a>
|
||||
</div>
|
||||
|
||||
25
src/Org/Views/BrusherProfile/Index.cshtml
Normal file
25
src/Org/Views/BrusherProfile/Index.cshtml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
@model Yavsc.Models.Haircut.BrusherProfile
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Profile coiffeur";
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
|
||||
<div>
|
||||
<hr />
|
||||
@if (Model!=null) {
|
||||
|
||||
@Html.DisplayFor(model => model)
|
||||
|
||||
<p>
|
||||
<a asp-action="Edit" >Edit</a>
|
||||
<a asp-action="Delete" asp-route-id="@Model.UserId">Delete</a>
|
||||
</p>
|
||||
}
|
||||
else {
|
||||
<p>
|
||||
Aucun profile renseigné"]
|
||||
<a asp-action="Create" class="btn btn-success">Renseigner ce paramêtrage"]</a>
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
54
src/Org/Views/Bug/Create.cshtml
Normal file
54
src/Org/Views/Bug/Create.cshtml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
@model Yavsc.Models.IT.Fixing.Bug
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Bug</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Title" class="col-md-2 control-label">Title</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Title" class="form-control" />
|
||||
<span asp-validation-for="Title" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Description" class="col-md-2 control-label">Description</label>
|
||||
<div class="col-md-10">
|
||||
<textarea asp-for="Description" class="form-control" >
|
||||
</textarea>
|
||||
<span asp-validation-for="Description" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="FeatureId" class="col-md-2 control-label">Feature</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="FeatureId" asp-items="@ViewBag.Features" ></select>
|
||||
<span asp-validation-for="FeatureId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Status" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="Status" class="form-control" asp-items="@ViewBag.Statuses"></select>
|
||||
<span asp-validation-for="Status" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
40
src/Org/Views/Bug/Delete.cshtml
Normal file
40
src/Org/Views/Bug/Delete.cshtml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
@model Yavsc.Models.IT.Fixing.Bug
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>Bug</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.FeatureId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.FeatureId)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Title)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Status)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Status)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
54
src/Org/Views/Bug/DeleteAllLike.cshtml
Normal file
54
src/Org/Views/Bug/DeleteAllLike.cshtml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
@model IEnumerable<Yavsc.Models.IT.Fixing.Bug>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "DeleteAllLike";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayNameFor(model => model.Id)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</td>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.FeatureId)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Status)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(model => item.Id)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(model => item.Title)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.FeatureId)
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)item.Status]
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<form asp-action="DeleteAllLikeConfirmed" asp-route-id="@item.Id" method="POST">
|
||||
<input class="btm btm-primary" type="submit" value="Delete"></input>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
41
src/Org/Views/Bug/Details.cshtml
Normal file
41
src/Org/Views/Bug/Details.cshtml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
@model Yavsc.Models.IT.Fixing.Bug
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h3>Bug</h3>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
Feature Id
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.FeatureId)
|
||||
</dd>
|
||||
<dt>
|
||||
Title
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Title)
|
||||
</dd>
|
||||
<dt>
|
||||
Status
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Status)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h3>Description</h3>
|
||||
<code><pre>@Html.DisplayFor(model => model.Description)</pre></code>
|
||||
|
||||
</div>
|
||||
<p>
|
||||
[<a asp-action="DeleteAllLike" asp-route-id="@Model.Id">Delete all like this one</a> |
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>]
|
||||
</p>
|
||||
58
src/Org/Views/Bug/Edit.cshtml
Normal file
58
src/Org/Views/Bug/Edit.cshtml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
@model Yavsc.Models.IT.Fixing.Bug
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Édition d'un bug";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Bug</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="All" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="FeatureId" class="col-md-2 control-label">Feature</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="FeatureId" class="form-control" asp-items="@ViewBag.Features" >
|
||||
</select>
|
||||
<span asp-validation-for="FeatureId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Title" class="col-md-2 control-label">Title</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Title" class="form-control" />
|
||||
<span asp-validation-for="Title" class="text-danger" ></span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Status" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="Status" class="form-control" asp-items="@ViewBag.Statuses"></select>
|
||||
<span asp-validation-for="Status" class="text-danger" ></span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Description" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<textarea asp-for="Description" class="form-control"></textarea>
|
||||
<span asp-validation-for="Description" class="text-danger" ></span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
52
src/Org/Views/Bug/Index.cshtml
Normal file
52
src/Org/Views/Bug/Index.cshtml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
@model IEnumerable<Yavsc.Models.IT.Fixing.Bug>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayNameFor(model => model.Id)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</td>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.FeatureId)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Status)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(model => item.Id)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(model => item.Title)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.FeatureId)
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)item.Status]
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
34
src/Org/Views/Circle/Create.cshtml
Normal file
34
src/Org/Views/Circle/Create.cshtml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
@model Circle
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Circle</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<span asp-validation-for="OwnerId" class="text-danger" ></span>
|
||||
<input asp-for="OwnerId" type="hidden" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
34
src/Org/Views/Circle/Delete.cshtml
Normal file
34
src/Org/Views/Circle/Delete.cshtml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
@model Circle
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>Circle</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.OwnerId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.OwnerId)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
30
src/Org/Views/Circle/Details.cshtml
Normal file
30
src/Org/Views/Circle/Details.cshtml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
@model Circle
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>Circle</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.OwnerId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.OwnerId)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
40
src/Org/Views/Circle/Edit.cshtml
Normal file
40
src/Org/Views/Circle/Edit.cshtml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
@model Circle
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Circle</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="OwnerId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="OwnerId" class="form-control" />
|
||||
<span asp-validation-for="OwnerId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
32
src/Org/Views/Circle/Index.cshtml
Normal file
32
src/Org/Views/Circle/Index.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model IEnumerable<Circle>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Name)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
34
src/Org/Views/CircleMembers/Create.cshtml
Normal file
34
src/Org/Views/CircleMembers/Create.cshtml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
@model CircleMember
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>CircleMember</h4>
|
||||
<hr />
|
||||
|
||||
@Html.ValidationSummary()
|
||||
|
||||
<select asp-for="CircleId" asp-items="@ViewBag.CircleId" >
|
||||
</select>
|
||||
|
||||
<select asp-for="MemberId" asp-items="@ViewBag.MemberId" >
|
||||
</select>
|
||||
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
32
src/Org/Views/CircleMembers/Delete.cshtml
Normal file
32
src/Org/Views/CircleMembers/Delete.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model CircleMember
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Supprimer cette appartenance au cercle?</h3>
|
||||
<div>
|
||||
<hr />
|
||||
<dl>
|
||||
<dt>
|
||||
Cercle
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(m=>m.Circle)
|
||||
</dd>
|
||||
<dt>
|
||||
Membre
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(m=>m.Member)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
17
src/Org/Views/CircleMembers/Details.cshtml
Normal file
17
src/Org/Views/CircleMembers/Details.cshtml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
@model CircleMember
|
||||
|
||||
@{
|
||||
ViewData["Title"] = $"{Model.Member.UserName}, du cercle {Model.Circle.Name}" ;
|
||||
}
|
||||
|
||||
<h2></h2>
|
||||
|
||||
<div>
|
||||
<h4>Un membre du cercle @Model.Circle.Name</h4>
|
||||
<hr />
|
||||
@Html.DisplayFor(m=>Model.Member)
|
||||
</div>
|
||||
<p>
|
||||
@Html.ActionLink("Delete", "Delete", new { id = Model.CircleId }) |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
27
src/Org/Views/CircleMembers/Edit.cshtml
Normal file
27
src/Org/Views/CircleMembers/Edit.cshtml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
@model CircleMember
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Circle Member</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="MemberId" />
|
||||
<input type="hidden" asp-for="CircleId" />
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
37
src/Org/Views/CircleMembers/Index.cshtml
Normal file
37
src/Org/Views/CircleMembers/Index.cshtml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
@model IEnumerable<CircleMember>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Ajouter un utilisateur à un cercle"]</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Cercle</th>
|
||||
<th>Utilisateur</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
|
||||
var itemKey = new { Id = item.CircleId } ;
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(m=>item.Circle)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(m=>item.Member)
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@Html.ActionLink("Delete", "Delete", itemKey)
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
83
src/Org/Views/Client/Create.cshtml
Normal file
83
src/Org/Views/Client/Create.cshtml
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
@model Client
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Create"];
|
||||
}
|
||||
|
||||
<h2>@SR["Create"]</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Client</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="ClientId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ClientId" class="form-control" />
|
||||
<span asp-validation-for="ClientId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
<input asp-for="Enabled" />
|
||||
<label asp-for="Enabled"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ClientName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ClientName" class="form-control" />
|
||||
<span asp-validation-for="ClientName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="FrontChannelLogoutUri" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="FrontChannelLogoutUri" class="form-control"></span>
|
||||
<span asp-validation-for="FrontChannelLogoutUri" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="RedirectUris" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="RedirectUris" class="form-control" />
|
||||
<span asp-validation-for="RedirectUris" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="AbsoluteRefreshTokenLifetime" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="AbsoluteRefreshTokenLifetime" class="form-control" ></span>
|
||||
<span asp-validation-for="AbsoluteRefreshTokenLifetime" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ClientSecrets" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ClientSecrets" class="form-control" />
|
||||
<span asp-validation-for="ClientSecrets" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="AccessTokenType" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
@Html.DropDownList("AccessTokenType")
|
||||
<span asp-validation-for="AccessTokenType" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</div>
|
||||
|
||||
70
src/Org/Views/Client/Delete.cshtml
Normal file
70
src/Org/Views/Client/Delete.cshtml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
@model Client
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Delete"];
|
||||
}
|
||||
|
||||
<h2>@SR["Delete"]</h2>
|
||||
|
||||
<h3>@SR["AreYourSureYouWantToDeleteThis"]</h3>
|
||||
<div>
|
||||
<h4>Client</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ClientId)
|
||||
</dt>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ClientId)
|
||||
</dt>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Enabled)
|
||||
</dt>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Enabled)
|
||||
</dt>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ClientName)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ClientName)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.FrontChannelLogoutUri)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.FrontChannelLogoutUri)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.RedirectUris)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.RedirectUris)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.AbsoluteRefreshTokenLifetime)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.AbsoluteRefreshTokenLifetime)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ClientSecrets)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ClientSecrets)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.AccessTokenType)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.AccessTokenType)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
68
src/Org/Views/Client/Details.cshtml
Normal file
68
src/Org/Views/Client/Details.cshtml
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
@model Client
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Details"];
|
||||
}
|
||||
|
||||
<h2>@SR["Details"]</h2>
|
||||
|
||||
<div>
|
||||
<h4>Client</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ClientId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ClientId)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Enabled)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Enabled)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ClientName)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ClientName)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.FrontChannelLogoutUri)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.FrontChannelLogoutUri)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.RedirectUris)
|
||||
</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
@foreach (var uri in Model.RedirectUris)
|
||||
{ <li>@uri.RedirectUri</li> }
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.AbsoluteRefreshTokenLifetime)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.AbsoluteRefreshTokenLifetime)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ClientSecrets)
|
||||
</dt>
|
||||
<dd>Count : @Model.ClientSecrets.Count</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.AccessTokenType)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.AccessTokenType)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a> |
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</p>
|
||||
83
src/Org/Views/Client/Edit.cshtml
Normal file
83
src/Org/Views/Client/Edit.cshtml
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
@model Client
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>@SR["Edit"]</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Client</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="ClientId" />
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
<input asp-for="Enabled" />
|
||||
<label asp-for="Enabled"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ClientName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ClientName" class="form-control" />
|
||||
<span asp-validation-for="ClientName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="FrontChannelLogoutUri" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="FrontChannelLogoutUri" class="form-control" />
|
||||
<span asp-validation-for="FrontChannelLogoutUri" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="RedirectUris" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="RedirectUris" class="form-control" />
|
||||
<span asp-validation-for="RedirectUris" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="IdentityTokenLifetime" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="IdentityTokenLifetime" class="form-control" />
|
||||
<span asp-validation-for="IdentityTokenLifetime" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="AbsoluteRefreshTokenLifetime" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="AbsoluteRefreshTokenLifetime" class="form-control" />
|
||||
<span asp-validation-for="AbsoluteRefreshTokenLifetime" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ClientSecrets" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ClientSecrets" class="form-control" />
|
||||
<span asp-validation-for="ClientSecrets" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="AccessTokenType" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
@Html.DropDownList("Type")
|
||||
<span asp-validation-for="AccessTokenType" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</div>
|
||||
|
||||
82
src/Org/Views/Client/Index.cshtml
Normal file
82
src/Org/Views/Client/Index.cshtml
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
@using IdentityServer8.Models
|
||||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.Client>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Index"];
|
||||
}
|
||||
|
||||
<h2>@SR["Index"]</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">@SR["Create New"]</a>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ClientId)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Enabled)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ClientName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.FrontChannelLogoutUri)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.RedirectUris)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.AbsoluteRefreshTokenLifetime)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.AllowedGrantTypes)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.AccessTokenType)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ClientId)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Enabled)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ClientName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.FrontChannelLogoutUri)
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
@foreach (var uri in item.RedirectUris)
|
||||
{ <li>@uri.RedirectUri</li> }
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.AbsoluteRefreshTokenLifetime)
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
@foreach (var t in item.AllowedGrantTypes)
|
||||
{ <li>@t.GrantType</li> }
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
@Enum.GetName(typeof(AccessTokenType), item.AccessTokenType)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.ClientId">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.ClientId">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.ClientId">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
42
src/Org/Views/CoWorking/Create.cshtml
Normal file
42
src/Org/Views/CoWorking/Create.cshtml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
@model CoWorking
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>CoWorking</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="PerformerId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="PerformerId" class ="form-control" asp-items=@ViewBag.PerformerId></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WorkingForId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="WorkingForId" class ="form-control" asp-items=@ViewBag.WorkingForId></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
}
|
||||
22
src/Org/Views/CoWorking/Delete.cshtml
Normal file
22
src/Org/Views/CoWorking/Delete.cshtml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
@model CoWorking
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>CoWorking</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
18
src/Org/Views/CoWorking/Details.cshtml
Normal file
18
src/Org/Views/CoWorking/Details.cshtml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
@model CoWorking
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>CoWorking</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
45
src/Org/Views/CoWorking/Edit.cshtml
Normal file
45
src/Org/Views/CoWorking/Edit.cshtml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
@model CoWorking
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>CoWorking</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="PerformerId" class="control-label col-md-2">PerformerId</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="PerformerId" class="form-control" ></select>
|
||||
<span asp-validation-for="PerformerId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WorkingForId" class="control-label col-md-2">WorkingForId</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="WorkingForId" class="form-control" ></select>
|
||||
<span asp-validation-for="WorkingForId" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
}
|
||||
26
src/Org/Views/CoWorking/Index.cshtml
Normal file
26
src/Org/Views/CoWorking/Index.cshtml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
@model IEnumerable<CoWorking>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
40
src/Org/Views/Colors/Create.cshtml
Normal file
40
src/Org/Views/Colors/Create.cshtml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
@model Color
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Color</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">
|
||||
Indication de couleur
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
@await Html.PartialAsync("ColorEditor",Model)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
30
src/Org/Views/Colors/Delete.cshtml
Normal file
30
src/Org/Views/Colors/Delete.cshtml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
@model Yavsc.Models.Drawing.Color
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>Color</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model)
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
26
src/Org/Views/Colors/Details.cshtml
Normal file
26
src/Org/Views/Colors/Details.cshtml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
@model Yavsc.Models.Drawing.Color
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>Color</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model)
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
@Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
44
src/Org/Views/Colors/Edit.cshtml
Normal file
44
src/Org/Views/Colors/Edit.cshtml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@model Yavsc.Models.Drawing.Color
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Color</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Red" />
|
||||
<input type="hidden" asp-for="Green" />
|
||||
<input type="hidden" asp-for="Blue" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">
|
||||
Indication de couleur
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
@await Html.PartialAsync("ColorEditor",Model)
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
33
src/Org/Views/Colors/Index.cshtml
Normal file
33
src/Org/Views/Colors/Index.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model IEnumerable<Color>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
Les couleurs"]
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(l => item)
|
||||
@Html.DisplayFor(l => item.Name)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
|
||||
@Html.ActionLink("Details", "Details", new {id = item.Id }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { id = item.Id })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
198
src/Org/Views/Command/BookHaircutStar.cshtml
Normal file
198
src/Org/Views/Command/BookHaircutStar.cshtml
Normal file
|
|
@ -0,0 +1,198 @@
|
|||
@model RdvQuery
|
||||
|
||||
@{ ViewData["Title"] = "Proposition de rendez-vous ["+ViewBag.Activity.Code+"]"; }
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=@ViewBag.GoogleSettings.BrowserApiKey"></script>
|
||||
<script type="text/javascript" src="~/lib/moment/moment-with-locales.min.js"></script>
|
||||
<script type="text/javascript" src="~/lib/eonasdan-bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<link rel="stylesheet" href="~/lib/eonasdan-bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
|
||||
@section header {
|
||||
<style>
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
}
|
||||
#Location_combo li {
|
||||
cursor: pointer;
|
||||
}
|
||||
#Location_combo li:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
@section scripts{
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
var config = {
|
||||
mapId: 'map',
|
||||
addrId: 'Location_Address',
|
||||
longId: 'Location_Longitude',
|
||||
latId: 'Location_Latitude',
|
||||
addrValidationId: 'valloc',
|
||||
formValidId: 'valsum',
|
||||
locComboId: 'loccomb'
|
||||
};
|
||||
|
||||
$.validator.setDefaults({
|
||||
messages: {
|
||||
remote: "Ce lieu n'est pas identifié par les services de géo-localisation Google",
|
||||
required: "Veuillez renseigner ce champ"
|
||||
}
|
||||
});
|
||||
var gmap = new google.maps.Map(document.getElementById(config.mapId), {
|
||||
zoom: 16,
|
||||
center: { lat: 48.862854, lng: 2.2056466 }
|
||||
});
|
||||
var marker;
|
||||
function chooseLoc(sender, loc) {
|
||||
if (sender === 'user') $('#' + config.addrId).val(loc.formatted_address);
|
||||
var pos = loc.geometry.location;
|
||||
var lat = new Number(pos.lat);
|
||||
var lng = new Number(pos.lng);
|
||||
$('#' + config.latId).val(lat.toLocaleString('en'));
|
||||
$('#' + config.longId).val(lng.toLocaleString('en'));
|
||||
gmap.setCenter(pos);
|
||||
if (marker) {
|
||||
marker.setMap(null);
|
||||
}
|
||||
marker = new google.maps.Marker({
|
||||
map: gmap,
|
||||
draggable: true,
|
||||
animation: google.maps.Animation.DROP,
|
||||
position: pos
|
||||
});
|
||||
google.maps.event.addListener(marker, 'dragend', function () {
|
||||
// TODO reverse geo code
|
||||
var pos = marker.getPosition();
|
||||
$('#' + config.latId).val(pos.lat);
|
||||
$('#' + config.longId).val(pos.lng);
|
||||
});
|
||||
$('#' + config.addrId).valid();
|
||||
$('#' + config.addrValidationId).empty();
|
||||
$('#' + config.formValidId).empty();
|
||||
return true;
|
||||
}
|
||||
|
||||
$('#EventDate').datepicker({ language: 'fr' });
|
||||
|
||||
$('#' + config.addrId).rules("add",
|
||||
{
|
||||
remote: {
|
||||
url: 'https://maps.googleapis.com/maps/api/geocode/json',
|
||||
type: 'get',
|
||||
data: {
|
||||
sensor: false,
|
||||
address: function () { return $('#' + config.addrId).val() }
|
||||
},
|
||||
dataType: 'json',
|
||||
dataFilter: function (datastr, type) {
|
||||
$('#' + config.locComboId).html("");
|
||||
var data = JSON.parse(datastr);
|
||||
data.results.forEach(function (element) {
|
||||
if (element.formatted_address !== $('#' + config.addrId).val()) {
|
||||
$('<li>' + element.formatted_address + '</li>')
|
||||
.data("geoloc", element)
|
||||
.click(function () { chooseLoc('user', $(this).data("geoloc")) })
|
||||
.appendTo($('#' + config.locComboId));
|
||||
}
|
||||
else { }
|
||||
});
|
||||
if ((data.status === 'OK') && (data.results.length == 1)) {
|
||||
chooseLoc('google', data.results[0]);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
error: function (xhr, textStatus, errorThrown) {
|
||||
console.log('ajax loading error ... ' + textStatus + ' ... ' + errorThrown);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<form asp-action="Create" id="FrmComCre" role="form">
|
||||
<div class="form-horizontal">
|
||||
<h4>Fill in your book query</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="All" class="text-danger" id="valsum"></div>
|
||||
<div class="form-group" has-feedback>
|
||||
<fieldset>
|
||||
<legend>Votre évennement</legend>
|
||||
<label for="EventDate" class="col-md-2 control-label">
|
||||
Event date"]
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class='col-sm-6'>
|
||||
<div class='input-group date' id='datetimepicker2'>
|
||||
<input class="form-control" name="EventDate" />
|
||||
<span class="input-group-addon">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('#datetimepicker2').datetimepicker({
|
||||
locale: 'fr',
|
||||
format: "YYYY/MM/DD hh:mm"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span asp-validation-for="EventDate" class="text-danger" ></span>
|
||||
<label for="Location_Address" class="col-md-2 control-label">Location</label>
|
||||
<div class="col-md-10">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class='col-sm-6'>
|
||||
<div>
|
||||
<input asp-for="Location.Address" type="text" name="Location.Address" id="Location_Address"
|
||||
class="form-control" data-val-required="SpecifyPlace" data-val-remote= "GoogleDidntGeoLocalized">
|
||||
<span asp-validation-for="Location.Address" class="text-danger" id="valloc"></span>
|
||||
<ul id="loccomb">
|
||||
</ul>
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label for="Reason" class="col-md-2 control-label">
|
||||
Ci-après, Vous pouvez ajouter des détails au sujet de vos souhaits
|
||||
concernant cette prestation
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class='col-sm-6'>
|
||||
<div id='reason1'>
|
||||
<textarea rows="15" asp-for="Reason" type="text" name="Reason" id="Reason" maxlength="4096" class="form-control"></textarea>
|
||||
<span asp-validation-for="Reason" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value=" Create "]" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@Html.HiddenFor(model=>model.ClientId)
|
||||
@Html.HiddenFor(model=>model.PerformerId)
|
||||
@Html.HiddenFor(model=>model.ActivityCode)
|
||||
@Html.HiddenFor(model=>model.Location.Latitude)
|
||||
@Html.HiddenFor(model=>model.Location.Longitude)
|
||||
</form>
|
||||
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
47
src/Org/Views/Command/CommandConfirmation.cshtml
Normal file
47
src/Org/Views/Command/CommandConfirmation.cshtml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
@model RdvQuery
|
||||
@using Yavsc.Models.Google.Messaging
|
||||
@{
|
||||
ViewData["Title"] = "Command confirmation"+" "+ViewBag.Activity.Name;
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<div class="form-horizontal">
|
||||
<h4>Your book query</h4>
|
||||
<hr />
|
||||
<label for="EventDate">Event date</label>: @Html.DisplayFor(m => m.EventDate)
|
||||
<br/>
|
||||
|
||||
<label for="Location">Location</label>: @Html.DisplayFor(m => m.Location)
|
||||
<br/>
|
||||
|
||||
@if (ViewBag.GooglePayload !=null)
|
||||
{
|
||||
@if (ViewBag.GooglePayload.success>0) {
|
||||
<h4>GCM Notifications sent</h4>
|
||||
}
|
||||
else {
|
||||
if (ViewBag.GooglePayload.failure>0)
|
||||
{
|
||||
<h4>GCM Notification sending failed</h4>
|
||||
<pre><code>@Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.GooglePayload)</code></pre>
|
||||
}
|
||||
}
|
||||
}
|
||||
@if (ViewBag.EmailSent!=null)
|
||||
{
|
||||
if (ViewBag.EmailSent.Sent) {
|
||||
<h4>@String.Format("EmailSentToPerformer",User.GetUserName())</h4>
|
||||
} else {
|
||||
var sent = ViewBag.EmailSent;
|
||||
|
||||
<h4>Une erreur est survenue à lenvoi de l'e-mail au préstataire ...</h4>
|
||||
<environment names="Development">
|
||||
<text>Mail:</text> @sent.EMail;
|
||||
<text>MsgId:</text> @sent.MessageId;
|
||||
<text>Sent:</text> @sent.Sent;
|
||||
<text>Error:</text> @sent.ErrorMessage;
|
||||
</environment>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
114
src/Org/Views/Command/Create.cshtml
Normal file
114
src/Org/Views/Command/Create.cshtml
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
@model RdvQuery
|
||||
@section header {
|
||||
<style>
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="~/lib/moment/moment-with-locales.min.js"></script>
|
||||
<script type="text/javascript" src="~/lib/eonasdan-bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<link rel="stylesheet" href="~/lib/eonasdan-bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
|
||||
|
||||
}
|
||||
@{ ViewData["Title"] = $"Proposition de rendez-vous à {Model.PerformerProfile.Performer.UserName} [{ViewBag.Activity.Name}]"; }
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<form asp-action="Create" method="post">
|
||||
<div class="form-horizontal">
|
||||
<h4>Saisissez votre demande de rendez-vous</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="All" class="text-danger"></div>
|
||||
<div class="form-group" has-feedback>
|
||||
<fieldset>
|
||||
<legend>La date de votre évennement</legend>
|
||||
<label for="EventDate" class="col-md-2 control-label">
|
||||
Date de l'évennement
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class='col-sm-6'>
|
||||
<div class='input-group date' id='datetimepicker2'>
|
||||
<input class="form-control" name="EventDate" />
|
||||
<span class="input-group-addon">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span asp-validation-for="EventDate" class="text-danger">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<fieldset>
|
||||
<label asp-for="Location.Address" class="col-md-2 control-label">Address</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Location.Address" class="form-control" type="text" data-val-required="Spécifier un lieu" />
|
||||
|
||||
<span id="AddressError" asp-validation-for="Location.Address" class="text-danger"></span>
|
||||
<ul id="LocationCombo" >
|
||||
</ul>
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<fieldset>
|
||||
<label asp-for="Reason" class="col-md-2 control-label">
|
||||
Donnez ici une raison à cette demande
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class='col-sm-6'>
|
||||
<div id='reason1'>
|
||||
<textarea rows="15" asp-for="Reason" type="text" name="Reason" id="Reason" maxlength="4096" class="form-control"></textarea>
|
||||
<span asp-validation-for="Reason" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" class="btn btn-primary" value="Créer" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@Html.HiddenFor(model=>model.ClientId)
|
||||
@Html.HiddenFor(model=>model.PerformerId)
|
||||
@Html.HiddenFor(model=>model.ActivityCode)
|
||||
@Html.HiddenFor(model=>model.Location.Latitude)
|
||||
@Html.Hidden("Location.Longitude")
|
||||
</form>
|
||||
@section scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
@{ await Html.RenderPartialAsync("_MapScriptsPartial"); }
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#Location_Address").googlegeocode({
|
||||
culture: '@System.Globalization.CultureInfo.CurrentCulture.Name',
|
||||
mapsApiKey: '@Config.GoogleSettings.BrowserApiKey',
|
||||
mapId: 'map',
|
||||
longId: 'Location_Longitude',
|
||||
latId: 'Location_Latitude',
|
||||
addrValidationId: 'AddressError',
|
||||
formValidId: 'ValidationSummary',
|
||||
locComboId: 'LocationCombo'});
|
||||
|
||||
$('#datetimepicker2').datetimepicker({
|
||||
locale: 'fr',
|
||||
format: "YYYY/MM/DD HH:mm"
|
||||
});
|
||||
})
|
||||
</script>
|
||||
}
|
||||
28
src/Org/Views/Command/Delete.cshtml
Normal file
28
src/Org/Views/Command/Delete.cshtml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@model RdvQuery
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>Command</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ValidationDate)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ValidationDate)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
17
src/Org/Views/Command/Details.cshtml
Normal file
17
src/Org/Views/Command/Details.cshtml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
@model RdvQuery
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
|
||||
<div>
|
||||
<h4>Command</h4>
|
||||
<hr />
|
||||
@Html.DisplayFor(m=>m)
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
33
src/Org/Views/Command/Edit.cshtml
Normal file
33
src/Org/Views/Command/Edit.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model RdvQuery
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Command</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="ValidationDate" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ValidationDate" class="form-control" />
|
||||
<span asp-validation-for="ValidationDate" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
59
src/Org/Views/Command/Index.cshtml
Normal file
59
src/Org/Views/Command/Index.cshtml
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
@model IEnumerable<RdvQuery>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
DateCreated"]
|
||||
</th>
|
||||
<th>
|
||||
EventDate"]
|
||||
</th>
|
||||
<th>
|
||||
Location"]
|
||||
</th>
|
||||
<th>
|
||||
Client"]
|
||||
</th>
|
||||
<th>
|
||||
Performer"]
|
||||
</th>
|
||||
<th>
|
||||
ValidationDate"]
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateCreated)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.EventDate)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Location.Address)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Client.UserName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.PerformerProfile.Performer.UserName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ValidationDate)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
44
src/Org/Views/CommandForms/Create.cshtml
Normal file
44
src/Org/Views/CommandForms/Create.cshtml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@model CommandForm
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>CommandForm</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ActivityCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ActivityCode" asp-items="@ViewBag.ActivityCode" class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ActionName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ActionName" asp-items="@ViewBag.ActionName" class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Title" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Title" class="form-control" />
|
||||
<span asp-validation-for="Title" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
28
src/Org/Views/CommandForms/Delete.cshtml
Normal file
28
src/Org/Views/CommandForms/Delete.cshtml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@model CommandForm
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>CommandForm</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Title)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
30
src/Org/Views/CommandForms/Details.cshtml
Normal file
30
src/Org/Views/CommandForms/Details.cshtml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
@model CommandForm
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>CommandForm</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Title)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ActionName)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ActionName)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
47
src/Org/Views/CommandForms/Edit.cshtml
Normal file
47
src/Org/Views/CommandForms/Edit.cshtml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
@model CommandForm
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>CommandForm</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="ActivityCode" class="control-label col-md-2">ActivityCode</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ActivityCode" asp-items="@ViewBag.ActivityCode" class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="ActivityCode" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ActionName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ActionName" asp-items="@ViewBag.ActionName" class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Title" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Title" class="form-control" />
|
||||
<span asp-validation-for="Title" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
44
src/Org/Views/CommandForms/Index.cshtml
Normal file
44
src/Org/Views/CommandForms/Index.cshtml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@model IEnumerable<CommandForm>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Context)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ActionName)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr class="@(item.Context.Hidden?"disabled":null)">
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Title)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Context)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ActionName)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
74
src/Org/Views/Comments/Create.cshtml
Normal file
74
src/Org/Views/Comments/Create.cshtml
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
@model Yavsc.Models.Blog.Comment
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Comment</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Content" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Content" class="form-control" />
|
||||
<span asp-validation-for="Content" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DateCreated" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DateCreated" class="form-control" />
|
||||
<span asp-validation-for="DateCreated" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DateModified" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DateModified" class="form-control" />
|
||||
<span asp-validation-for="DateModified" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ReceiverId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ReceiverId" class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="UserCreated" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="UserCreated" class="form-control" />
|
||||
<span asp-validation-for="UserCreated" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="UserModified" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="UserModified" class="form-control" />
|
||||
<span asp-validation-for="UserModified" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
<input asp-for="Visible" />
|
||||
<label asp-for="Visible"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
58
src/Org/Views/Comments/Delete.cshtml
Normal file
58
src/Org/Views/Comments/Delete.cshtml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
@model Yavsc.Models.Blog.Comment
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>Comment</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Content)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Content)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateModified)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UserCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UserCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UserModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UserModified)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Visible)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Visible)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
54
src/Org/Views/Comments/Details.cshtml
Normal file
54
src/Org/Views/Comments/Details.cshtml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
@model Yavsc.Models.Blog.Comment
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>Comment</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Content)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Content)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateModified)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UserCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UserCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UserModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UserModified)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Visible)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Visible)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
76
src/Org/Views/Comments/Edit.cshtml
Normal file
76
src/Org/Views/Comments/Edit.cshtml
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
@model Yavsc.Models.Blog.Comment
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Comment</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Content" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Content" class="form-control" />
|
||||
<span asp-validation-for="Content" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DateCreated" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DateCreated" class="form-control" />
|
||||
<span asp-validation-for="DateCreated" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DateModified" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DateModified" class="form-control" />
|
||||
<span asp-validation-for="DateModified" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ReceiverId" class="control-label col-md-2">ReceiverId</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ReceiverId" class="form-control" ></select>
|
||||
<span asp-validation-for="ReceiverId" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="UserCreated" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="UserCreated" class="form-control" />
|
||||
<span asp-validation-for="UserCreated" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="UserModified" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="UserModified" class="form-control" />
|
||||
<span asp-validation-for="UserModified" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
<input asp-for="Visible" />
|
||||
<label asp-for="Visible"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
62
src/Org/Views/Comments/Index.cshtml
Normal file
62
src/Org/Views/Comments/Index.cshtml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
@model IEnumerable<Yavsc.Models.Blog.Comment>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Content)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DateCreated)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.UserCreated)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.UserModified)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Visible)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Content)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateCreated)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateModified)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.UserCreated)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.UserModified)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Visible)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
7
src/Org/Views/Device/Success.cshtml
Normal file
7
src/Org/Views/Device/Success.cshtml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
<div class="page-device-success">
|
||||
<div class="lead">
|
||||
<h1>Success</h1>
|
||||
<p>You have successfully authorized the device</p>
|
||||
</div>
|
||||
</div>
|
||||
23
src/Org/Views/Device/UserCodeCapture.cshtml
Normal file
23
src/Org/Views/Device/UserCodeCapture.cshtml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
@model string
|
||||
|
||||
<div class="page-device-code">
|
||||
<div class="lead">
|
||||
<h1>User Code</h1>
|
||||
<p>Please enter the code displayed on your device.</p>
|
||||
</div>
|
||||
|
||||
<partial name="_ValidationSummary" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<form asp-action="UserCodeCapture">
|
||||
<div class="form-group">
|
||||
<label for="userCode">User Code:</label>
|
||||
<input class="form-control" for="userCode" name="userCode" autofocus />
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" name="button">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
108
src/Org/Views/Device/UserCodeConfirmation.cshtml
Normal file
108
src/Org/Views/Device/UserCodeConfirmation.cshtml
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
@model DeviceAuthorizationViewModel
|
||||
|
||||
<div class="page-device-confirmation">
|
||||
<div class="lead">
|
||||
@if (Model.ClientLogoUrl != null)
|
||||
{
|
||||
<div class="client-logo"><img src="@Model.ClientLogoUrl"></div>
|
||||
}
|
||||
<h1>
|
||||
@Model.ClientName
|
||||
<small class="text-muted">is requesting your permission</small>
|
||||
</h1>
|
||||
@if (Model.ConfirmUserCode)
|
||||
{
|
||||
<p>Please confirm that the authorization request quotes the code: <strong>@Model.UserCode</strong>.</p>
|
||||
}
|
||||
<p>Uncheck the permissions you do not wish to grant.</p>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<partial name="_ValidationSummary" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form asp-action="Callback">
|
||||
<input asp-for="UserCode" type="hidden" value="@Model.UserCode" />
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
@if (Model.IdentityScopes.Any())
|
||||
{
|
||||
<div class="form-group">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="glyphicon glyphicon-user"></span>
|
||||
Personal Information
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
@foreach (var scope in Model.IdentityScopes)
|
||||
{
|
||||
<partial name="_ScopeListItem" model="@scope" />
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (Model.ApiScopes.Any())
|
||||
{
|
||||
<div class="form-group">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="glyphicon glyphicon-tasks"></span>
|
||||
Application Access
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
@foreach (var scope in Model.ApiScopes)
|
||||
{
|
||||
<partial name="_ScopeListItem" model="scope" />
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="glyphicon glyphicon-tasks"></span>
|
||||
Description
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<input class="form-control" placeholder="Description or name of device" asp-for="Description" autofocus>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (Model.AllowRememberConsent)
|
||||
{
|
||||
<div class="form-group">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" asp-for="RememberConsent">
|
||||
<label class="form-check-label" asp-for="RememberConsent">
|
||||
<strong>Remember My Decision</strong>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<button name="button" value="yes" class="btn btn-primary" autofocus>Yes, Allow</button>
|
||||
<button name="button" value="no" class="btn btn-secondary">No, Do Not Allow</button>
|
||||
</div>
|
||||
<div class="col-sm-4 col-lg-auto">
|
||||
@if (Model.ClientUrl != null)
|
||||
{
|
||||
<a class="btn btn-outline-info" href="@Model.ClientUrl">
|
||||
<span class="glyphicon glyphicon-info-sign"></span>
|
||||
<strong>@Model.ClientName</strong>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
64
src/Org/Views/Diagnostics/Index.cshtml
Normal file
64
src/Org/Views/Diagnostics/Index.cshtml
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
@model DiagnosticsViewModel
|
||||
|
||||
<div class="diagnostics-page">
|
||||
<div class="lead">
|
||||
<h1>Authentication Cookie</h1>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Claims</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<dl>
|
||||
@foreach (var claim in Model.AuthenticateResult.Principal.Claims)
|
||||
{
|
||||
<dt>@claim.Type</dt>
|
||||
<dd>@claim.Value</dd>
|
||||
}
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Properties</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<dl>
|
||||
@foreach (var prop in Model.AuthenticateResult.Properties.Items)
|
||||
{
|
||||
<dt>@prop.Key</dt>
|
||||
<dd>@prop.Value</dd>
|
||||
}
|
||||
@if (Model.Clients.Any())
|
||||
{
|
||||
<dt>Clients</dt>
|
||||
<dd>
|
||||
@{
|
||||
var clients = Model.Clients.ToArray();
|
||||
for(var i = 0; i < clients.Length; i++)
|
||||
{
|
||||
<text>@clients[i]</text>
|
||||
if (i < clients.Length - 1)
|
||||
{
|
||||
<text>, </text>
|
||||
}
|
||||
}
|
||||
}
|
||||
</dd>
|
||||
}
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
32
src/Org/Views/DjSettings/Create.cshtml
Normal file
32
src/Org/Views/DjSettings/Create.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model Yavsc.Models.Musical.Profiles.DjSettings
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>DjSettings</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="SoundCloudId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="SoundCloudId" class="form-control" />
|
||||
<span asp-validation-for="SoundCloudId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
28
src/Org/Views/DjSettings/Delete.cshtml
Normal file
28
src/Org/Views/DjSettings/Delete.cshtml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@model Yavsc.Models.Musical.Profiles.DjSettings
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>DjSettings</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.SoundCloudId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.SoundCloudId)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
24
src/Org/Views/DjSettings/Details.cshtml
Normal file
24
src/Org/Views/DjSettings/Details.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Yavsc.Models.Musical.Profiles.DjSettings
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>DjSettings</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.SoundCloudId)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.SoundCloudId)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.UserId">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
33
src/Org/Views/DjSettings/Edit.cshtml
Normal file
33
src/Org/Views/DjSettings/Edit.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model Yavsc.Models.Musical.Profiles.DjSettings
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>DjSettings</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
<div class="form-group">
|
||||
<label asp-for="SoundCloudId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="SoundCloudId" class="form-control" />
|
||||
<span asp-validation-for="SoundCloudId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
32
src/Org/Views/DjSettings/Index.cshtml
Normal file
32
src/Org/Views/DjSettings/Index.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model IEnumerable<Yavsc.Models.Musical.Profiles.DjSettings>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.SoundCloudId)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.SoundCloudId)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.UserId">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.UserId">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.UserId">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
43
src/Org/Views/Do/Create.cshtml
Normal file
43
src/Org/Views/Do/Create.cshtml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
@model UserActivity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>UserActivity</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
<div class="form-group">
|
||||
<label asp-for="DoesCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="DoesCode" asp-items=@ViewBag.DoesCode class ="form-control"></select>
|
||||
|
||||
<span asp-validation-for="DoesCode" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Weight" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Weight" class ="form-control" />
|
||||
<span asp-validation-for="Weight" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
52
src/Org/Views/Do/CreateFor.cshtml
Normal file
52
src/Org/Views/Do/CreateFor.cshtml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
@model UserActivity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>UserActivity</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
|
||||
|
||||
<!-- <div class="form-group">
|
||||
<label asp-for="UserId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="UserId" asp-items=@ViewBag.UserId class ="form-control"></select>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="UserId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="UserId" asp-items=@ViewBag.UserId class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DoesCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="DoesCode" asp-items=@ViewBag.DoesCode class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Weight" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Weight" class ="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
24
src/Org/Views/Do/Delete.cshtml
Normal file
24
src/Org/Views/Do/Delete.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model UserActivity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>UserActivity</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
</dl>
|
||||
@Html.DisplayFor(m=>m)
|
||||
<form asp-action="Delete">
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
<input type="hidden" asp-for="DoesCode" />
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-success" />
|
||||
<a asp-action="Index" class="btn btn-link">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue