The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Index.cshtml 4.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @model ConsentViewModel
  2. <div class="container">
  3. <div class="row">
  4. <div class="col-sm-12 text-center">
  5. <div class="page-consent">
  6. <div class="row page-header">
  7. <div class="col-md-6 col-md-offset-3">
  8. @if (Model.ClientLogoUrl != null)
  9. {
  10. <div class="client-logo"><img src="@Model.ClientLogoUrl" style="max-height: 100px; max-width: 100px;"></div>
  11. }
  12. <h1>
  13. @Model.ClientName
  14. <small>is requesting your permission</small>
  15. </h1>
  16. </div>
  17. </div>
  18. <div class="row">
  19. <div class="col-md-4 col-md-offset-4">
  20. @await Html.PartialAsync("_ValidationSummary")
  21. <form asp-action="Index" class="consent-form">
  22. <input type="hidden" asp-for="ReturnUrl" />
  23. <div>Uncheck the permissions you do not wish to grant.</div>
  24. @if (Model.IdentityScopes.Any())
  25. {
  26. <div class="panel panel-default consent-buttons">
  27. <div class="panel-heading">
  28. <span class="glyphicon glyphicon-user"></span>
  29. Personal Information
  30. </div>
  31. <ul class="list-group">
  32. @foreach (var scope in Model.IdentityScopes)
  33. {
  34. @await Html.PartialAsync("_ScopeListItem", scope)
  35. }
  36. </ul>
  37. </div>
  38. }
  39. @if (Model.ResourceScopes.Any())
  40. {
  41. <div class="panel panel-default">
  42. <div class="panel-heading">
  43. <span class="glyphicon glyphicon-tasks"></span>
  44. Application Access
  45. </div>
  46. <ul class="list-group">
  47. @foreach (var scope in Model.ResourceScopes)
  48. {
  49. @await Html.PartialAsync("_ScopeListItem", scope)
  50. }
  51. </ul>
  52. </div>
  53. }
  54. @if (Model.AllowRememberConsent)
  55. {
  56. <div class="consent-remember abc-checkbox">
  57. <input class="consent-scopecheck" asp-for="RememberConsent" />
  58. <label asp-for="RememberConsent"><strong>Remember My Decision</strong></label>
  59. </div>
  60. }
  61. <div class="consent-buttons">
  62. <button name="button" value="yes" class="btn btn-primary" autofocus>Yes, Allow</button>
  63. <button name="button" value="no" class="btn">No, Do Not Allow</button>
  64. @if (Model.ClientUrl != null)
  65. {
  66. <a class="pull-right btn btn-default" target="_blank" href="@Model.ClientUrl">
  67. <span class="glyphicon glyphicon-info-sign"></span>
  68. <strong>@Model.ClientName</strong>
  69. </a>
  70. }
  71. </div>
  72. </form>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>