97 remaining
parent
c81f974ade
commit
64febe48b0
@ -1,30 +0,0 @@
|
|||||||
@{
|
|
||||||
ViewData["Title"] = "Authorization Server";
|
|
||||||
var identity = ViewData.Ticket != null ? ViewData.Ticket.Identity : null;
|
|
||||||
var scopes = (Request.QueryString.Get("scope") ?? "").Split(' ');
|
|
||||||
}
|
|
||||||
|
|
||||||
<h2>@ViewData["Title"].</h2>
|
|
||||||
|
|
||||||
<form method="POST">
|
|
||||||
<p>Hello, <%=identity.Name%></p>
|
|
||||||
|
|
||||||
<%if (ViewData["Message"]!=null) { %>
|
|
||||||
<p><%=Html.Encode(ViewData["Message"])%></p>
|
|
||||||
<% } %>
|
|
||||||
<p>A third party application want to do the following on your behalf:</p>
|
|
||||||
<ul>
|
|
||||||
<% foreach (var scope in scopes)
|
|
||||||
{ %>
|
|
||||||
<li><%=scope%></li>
|
|
||||||
<% } %>
|
|
||||||
</ul>
|
|
||||||
<p>
|
|
||||||
<a href="<%=ViewData["redirect_uri"]%>">Retour</a>
|
|
||||||
<%=Html.Hidden("redirect_uri",ViewData["redirect_uri"])%>
|
|
||||||
<input type="submit" name="submit.Grant" value="Grant" />
|
|
||||||
<input type="submit" name="submit.Login" value="Sign in as different user" />
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</div>
|
|
@ -1,23 +1,9 @@
|
|||||||
@model Instrumentation
|
@model Instrumentation
|
||||||
@{
|
|
||||||
ViewBag.YetAvailableInstruments = _context.Instrument.Where(i=> !_context.MusicianSettings.Any(s=>s.UserId==id && s.Instrumentation.Any(j=>j.Id == i.Id)))
|
|
||||||
.Select(k=>new SelectListItem { Text = k.Name });
|
|
||||||
|
|
||||||
}
|
<h2>@Model.Intrument.Name</h2>
|
||||||
<ul>
|
|
||||||
@foreach (var instrument in Model)
|
|
||||||
{
|
|
||||||
<li>@instrument.Name
|
|
||||||
<a asp-action="RemoveInstrument" asp-controller="Instrumentation" asp-action-id="Model.UserId" asp-action-name="@instrument.Name" />
|
|
||||||
|
|
||||||
</li>
|
<a asp-action="RemoveInstrument" asp-controller="Instrumentation" asp-action-id="Model.UserId" asp-action-name="@Model.Intrument.Name" >
|
||||||
|
|
||||||
|
<form asp-action="AddInstrument" asp-controller="Instrumentation" asp-action-id="Model.UserId" >
|
||||||
}
|
<select name="Name" value="" placeholder="Séléctionnez votre instrument" ></select>
|
||||||
</ul>
|
</form>
|
||||||
|
|
||||||
<form asp-action="AddInstrument" asp-controller="Instrumentation" asp-action-id="Model.UserId" >
|
|
||||||
|
|
||||||
<select name="Name" value="" placeholder="Séléctionnez votre instrument" asp-items=@ViewBag.YetAvailableInstruments>
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
|
Loading…
Reference in New Issue