|
21 | 21 | }
|
22 | 22 | else
|
23 | 23 | {
|
24 |
| - foreach (var grant in Model.View.Grants) |
| 24 | + foreach (var grant in Model.View.Grants) |
25 | 25 | {
|
26 | 26 | <div class="card">
|
27 |
| - <div class="card-header bg-light text-white"> |
| 27 | + <div class="card-header bg-primary text-white"> |
28 | 28 | <div class="row">
|
29 | 29 | <div class="col-sm-8 card-title">
|
30 | 30 | @if (grant.ClientLogoUrl != null)
|
|
34 | 34 | <strong>@grant.ClientName</strong>
|
35 | 35 | </div>
|
36 | 36 |
|
37 |
| - <div class="col-sm-2"> |
| 37 | + <div class="col-sm-4 d-flex justify-content-end"> |
38 | 38 | <form asp-page="/Grants/Index">
|
39 | 39 | <input type="hidden" name="clientId" value="@grant.ClientId">
|
40 |
| - <button class="btn btn-danger">Revoke Access</button> |
| 40 | + <button class="btn btn-secondary">Revoke Access</button> |
41 | 41 | </form>
|
42 | 42 | </div>
|
43 | 43 | </div>
|
44 | 44 | </div>
|
45 |
| - |
46 |
| - <ul class="list-group list-group-flush"> |
47 |
| - @if (grant.Description != null) |
48 |
| - { |
49 |
| - <li class="list-group-item"> |
50 |
| - <label>Description:</label> @grant.Description |
51 |
| - </li> |
52 |
| - } |
53 |
| - <li class="list-group-item"> |
54 |
| - <label>Created:</label> @grant.Created.ToString("yyyy-MM-dd") |
55 |
| - </li> |
56 |
| - @if (grant.Expires.HasValue) |
57 |
| - { |
58 |
| - <li class="list-group-item"> |
59 |
| - <label>Expires:</label> @grant.Expires.Value.ToString("yyyy-MM-dd") |
60 |
| - </li> |
61 |
| - } |
62 |
| - @if (grant.IdentityGrantNames.Any()) |
63 |
| - { |
64 |
| - <li class="list-group-item"> |
65 |
| - <label>Identity Grants</label> |
66 |
| - <ul> |
67 |
| - @foreach (var name in grant.IdentityGrantNames) |
68 |
| - { |
69 |
| - <li>@name</li> |
70 |
| - } |
71 |
| - </ul> |
72 |
| - </li> |
73 |
| - } |
74 |
| - @if (grant.ApiGrantNames.Any()) |
75 |
| - { |
76 |
| - <li class="list-group-item"> |
77 |
| - <label>API Grants</label> |
78 |
| - <ul> |
79 |
| - @foreach (var name in grant.ApiGrantNames) |
80 |
| - { |
81 |
| - <li>@name</li> |
82 |
| - } |
83 |
| - </ul> |
84 |
| - </li> |
85 |
| - } |
86 |
| - </ul> |
| 45 | + |
| 46 | + <div class="card-body"> |
| 47 | + <dl> |
| 48 | + @if (grant.Description != null) |
| 49 | + { |
| 50 | + <dt>Description</dt> |
| 51 | + <dd>@grant.Description</dd> |
| 52 | + } |
| 53 | + |
| 54 | + <dt>Created</dt> |
| 55 | + <dd>@grant.Created.ToString("yyyy-MM-dd")</dd> |
| 56 | + |
| 57 | + <dt>Expires</dt> |
| 58 | + <dd>@grant.Expires.Value.ToString("yyyy-MM-dd")</dd> |
| 59 | + |
| 60 | + @if (grant.IdentityGrantNames.Any()) |
| 61 | + { |
| 62 | + <dt>Identity Grants</dt> |
| 63 | + <dd> |
| 64 | + <ul> |
| 65 | + @foreach (var name in grant.IdentityGrantNames) |
| 66 | + { |
| 67 | + <li>@name</li> |
| 68 | + } |
| 69 | + </ul> |
| 70 | + </dd> |
| 71 | + } |
| 72 | + |
| 73 | + @if (grant.ApiGrantNames.Any()) |
| 74 | + { |
| 75 | + <dt>API Grants</dt> |
| 76 | + <dd> |
| 77 | + <ul> |
| 78 | + @foreach (var name in grant.ApiGrantNames) |
| 79 | + { |
| 80 | + <li>@name</li> |
| 81 | + } |
| 82 | + </ul> |
| 83 | + </dd> |
| 84 | + } |
| 85 | + </dl> |
| 86 | + </div> |
87 | 87 | </div>
|
88 | 88 | }
|
89 | 89 | }
|
|
0 commit comments