reorg
This commit is contained in:
parent
d000f77098
commit
40e8e08690
3487 changed files with 39 additions and 21 deletions
29
src/Yavsc.Org/Views/Administration/Enroll.cshtml
Normal file
29
src/Yavsc.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/Yavsc.Org/Views/Administration/Fire.cshtml
Normal file
33
src/Yavsc.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/Yavsc.Org/Views/Administration/Haircut.cshtml
Normal file
5
src/Yavsc.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/Yavsc.Org/Views/Administration/Index.cshtml
Normal file
70
src/Yavsc.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/Yavsc.Org/Views/Administration/Role.cshtml
Normal file
33
src/Yavsc.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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue