##// END OF EJS Templates
license: remove stale license text
license: remove stale license text

File last commit:

r83:437edeed
r130:f222e0a1
Show More
user-auth-tokens-view.html
83 lines | 3.7 KiB | text/html | HtmlLexer
components: user and alert channels components
r81 <ng-include src="'templates/loader.html'" ng-if="$ctrl.loading.tokens"></ng-include>
project: initial commit
r0
components: user and alert channels components
r81 <div ng-show="!$ctrl.loading.tokens">
project: initial commit
r0
<div class="panel panel-default">
components: whole settings panel componentized
r83 <div class="panel-heading" ng-include="'templates/settings_breadcrumbs.html'"></div>
project: initial commit
r0
<div class="panel-body">
<div class="alert alert-success">You can use those tokens to authenticate yourself when performing various API calls</div>
<hr/>
components: user and alert channels components
r81 <form method="post" class="form-inline" name="$ctrl.TokenForm" ng-submit="$ctrl.addToken()" novalidate>
<data-form-errors errors="$ctrl.TokenForm.ae_validation.description"></data-form-errors>
<data-form-errors errors="$ctrl.TokenForm.ae_validation.expires"></data-form-errors>
project: initial commit
r0 <div class="form-group">
<label>
Description
</label>
components: user and alert channels components
r81 <input class="form-control" name="description" placeholder="Token description" type="text" ng-model="$ctrl.form.description">
project: initial commit
r0 </div>
<div class="form-group">
<label>
Expires
</label>
components: user and alert channels components
r81 <select class="form-control" ng-model="$ctrl.form.expires" ng-options="i.key as i.label for i in $ctrl.expireOptions | objectToOrderedArray:'minutes'">
project: initial commit
r0 <option value="">Never</option>
</select>
</div>
<div class="form-group">
<label class="control-label col-sm-4 col-lg-3">
</label>
<input class="form-control btn btn-primary" name="submit" type="submit" value="Create Token">
</div>
</form>
</div>
</div>
<div class="panel panel-default">
components: user and alert channels components
r81 <table st-table="displayedCollection" st-safe-src="$ctrl.tokens" class="table table-striped">
project: initial commit
r0 <caption>Your current tokens</caption>
<thead>
<tr>
<th st-sort="description"><a>Description</a></th>
<th class="created"><a>Created</a></th>
<th class="expires"><a>Expires</a></th>
<th class="options"></th>
</tr>
<tr>
<th><input st-search="description" placeholder="search for description" class="form-control" type="search" st-delay="1"/></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="token in displayedCollection">
<td><p>{{token.description}}</p>
<pre ng-init="token.limit = 8" ng-mouseover="token.limit = 99" ng-mouseleave="token.limit = 8">{{token.token| limitTo:token.limit}}...</pre>
</td>
<td><span data-uib-tooltip="{{token.creation_date}}">{{token.creation_date | isoToRelativeTime}}</span></td>
<td><span ng-if="token.expires" data-uib-tooltip="{{token.expires}}">{{token.expires | isoToRelativeTime}}</span>
<span ng-if="!token.expires">Never</span></td>
<td>
<span class="dropdown" data-uib-dropdown on-toggle="toggled(open)">
<a class="btn btn-danger" data-uib-dropdown-toggle><span class="fa fa-trash-o"></span></a>
<ul class="dropdown-menu">
<li><a>No</a></li>
components: user and alert channels components
r81 <li><a ng-click="$ctrl.removeToken(token)">Yes</a></li>
project: initial commit
r0 </ul>
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>