Merge pull request #163 from coreos-inc/oauthdesc
Add scope descriptions to the generate token page
This commit is contained in:
commit
a793bc1529
2 changed files with 25 additions and 8 deletions
10
static/css/pages/manage-application.css
Normal file
10
static/css/pages/manage-application.css
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
.manage-application .scope-description {
|
||||||
|
padding-left: 22px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.manage-application .user-name {
|
||||||
|
vertical-align: middle;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
|
@ -97,19 +97,26 @@
|
||||||
|
|
||||||
<!-- Generate Token tab -->
|
<!-- Generate Token tab -->
|
||||||
<div id="gen-token" class="tab-pane">
|
<div id="gen-token" class="tab-pane">
|
||||||
<div style="margin-bottom: 20px">
|
<div class="co-alert co-alert-info">
|
||||||
|
<div style="margin-bottom: 10px">
|
||||||
Click the button below to generate a new <a href="http://tools.ietf.org/html/rfc6749#section-1.4" target="_new">OAuth 2 Access Token</a>.
|
Click the button below to generate a new <a href="http://tools.ietf.org/html/rfc6749#section-1.4" target="_new">OAuth 2 Access Token</a>.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-bottom: 20px">
|
<div>
|
||||||
<strong>Note:</strong> The generated token will act on behalf of user
|
The generated token will act on behalf of user
|
||||||
<span class="avatar" data="user.avatar" size="16" style="margin-left: 6px; margin-right: 4px;"></span>
|
<span class="avatar" data="user.avatar" size="16" style="margin-left: 6px; margin-right: 4px;"></span>
|
||||||
{{ user.username }}
|
<span class="user-name">{{ user.username }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr ng-repeat="(scopeName, scopeInfo) in OAuthService.SCOPES">
|
<tr ng-repeat="(scopeName, scopeInfo) in OAuthService.SCOPES">
|
||||||
<td><label onclick="event.stopPropagation()"><input type="checkbox" value="scopeInfo[0]" ng-model="genScopes[scopeName]">{{ scopeInfo[3] }}</label></td>
|
<td>
|
||||||
|
<label onclick="event.stopPropagation()">
|
||||||
|
<input type="checkbox" value="scopeInfo[0]" ng-model="genScopes[scopeName]">{{ scopeInfo[3] }}
|
||||||
|
</label>
|
||||||
|
<div class="scope-description">{{ scopeInfo[4] }}</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
Reference in a new issue