2017-05-06 00:43:11 +02:00
|
|
|
<div class="modal fade" id="edit-user-api-info-{{ userId }}" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
<h4 class="modal-title">Edit User API Settings</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>
|
|
|
|
<span>API Active</span>:
|
|
|
|
|
2017-05-06 18:45:58 +02:00
|
|
|
<code class='status-display' ng-bind="apiActive"></code>
|
2017-05-06 00:43:11 +02:00
|
|
|
|
2017-05-06 18:45:58 +02:00
|
|
|
<a ng-click="toggleAPIStatus()" class='btn btn-xs btn-success'>toggle</a>
|
2017-05-06 00:43:11 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<span>API Key: </span><code class='status-display' ng-bind="apiKey">{{api_key}}</code>
|
|
|
|
<a ng-click="parentGenerateNewAPIKey($event)" class='btn btn-xs btn-danger'>reset</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<span>API Quota (req/min, -1 for unlimited):</span> <input type='number' class='form-control api-quota' ng-model="apiQuota">
|
|
|
|
<a ng-click="updateAPIQuota()" class='btn btn-xs btn-warning'>change</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div> <!-- /.modal-content -->
|
|
|
|
</div> <!-- /.modal-dialog -->
|
|
|
|
</div> <!-- /.modal -->
|