Permalink
Browse files

Iterate over API keys in Dashboard

  • Loading branch information...
insom committed Mar 22, 2016
1 parent dd8de11 commit 2493f40abbad63c1267ecd1f0fcbe2d653e0d303
Showing with 4 additions and 2 deletions.
  1. +4 −2 resources/views/dashboard/user/index.blade.php
@@ -37,10 +37,12 @@
<hr>
<div class="form-group">
<label>{{ trans('forms.user.api-token') }}</label>
@foreach ($current_user->apiKeys as $api_key)
<div class="input-group">
<input type="text" class="form-control" name="api_key" disabled value="{{ $current_user->api_key }}">
<a href="/dashboard/user/{{ $current_user->id }}/api/regen" class="input-group-addon btn btn-danger">{{ trans('cachet.api.regenerate') }}</a>
<input type="text" class="form-control" name="api_key" disabled value="{{ $api_key->api_key }}">
<a href="/dashboard/user/{{ $current_user->id }}/api/revoke/{{ $api_key->id }}" class="input-group-addon btn btn-danger">{{ trans('cachet.api.revoke') }}</a>
</div>
@endforeach
<span class="help-block">{{ trans('forms.user.api-token-help') }}</span>
</div>
<hr>

0 comments on commit 2493f40

Please sign in to comment.