mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
2f8306cba8
|
@ -32,14 +32,27 @@
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($clients->count() > 0)
|
@if ($clients->count() > 0)
|
||||||
<table class="table table-striped snipe-table">
|
<table data-cookie-id-table="OAuthClientsTable"
|
||||||
|
data-pagination="true"
|
||||||
|
data-id-table="OAuthClientsTable"
|
||||||
|
data-side-pagination="client"
|
||||||
|
data-sort-order="desc"
|
||||||
|
data-sort-name="created_at"
|
||||||
|
id="OAuthClientsTable"
|
||||||
|
class="table table-striped snipe-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ trans('general.id') }}</th>
|
<th>{{ trans('general.id') }}</th>
|
||||||
<th>{{ trans('general.name') }}</th>
|
<th data-sortable="true">{{ trans('general.name') }}</th>
|
||||||
<th>{{ trans('admin/settings/general.oauth_redirect_url') }}</th>
|
<th data-sortable="true">{{ trans('admin/settings/general.oauth_redirect_url') }}</th>
|
||||||
<th>{{ trans('admin/settings/general.oauth_secret') }}</th>
|
<th data-sortable="true">{{ trans('admin/settings/general.oauth_secret') }}</th>
|
||||||
<th><span class="sr-only">{{ trans('general.actions') }}</span></th>
|
<th data-sortable="true">{{ trans('general.created_at') }}</th>
|
||||||
|
<th data-sortable="true">{{ trans('general.updated_at') }}</th>
|
||||||
|
<th>
|
||||||
|
<span class="sr-only">
|
||||||
|
{{ trans('general.actions') }}
|
||||||
|
</span>
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -57,7 +70,7 @@
|
||||||
|
|
||||||
<!-- Redirect -->
|
<!-- Redirect -->
|
||||||
<td>
|
<td>
|
||||||
{{ $client->redirect }}
|
<code>{{ $client->redirect }}</code>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!-- Secret -->
|
<!-- Secret -->
|
||||||
|
@ -65,13 +78,26 @@
|
||||||
<code>{{ $client->secret }}</code>
|
<code>{{ $client->secret }}</code>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $client->created_at ? Helper::getFormattedDateObject($client->created_at, 'datetime', false) : '' }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
@if ($client->created_at != $client->updated_at)
|
||||||
|
{{ $client->updated_at ? Helper::getFormattedDateObject($client->updated_at, 'datetime', false) : '' }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
|
||||||
<!-- Edit / Delete Button -->
|
<!-- Edit / Delete Button -->
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
|
|
||||||
<a class="action-link btn btn-sm btn-warning"
|
<a class="action-link btn btn-sm btn-warning"
|
||||||
wire:click="editClient('{{ $client->id }}')"
|
wire:click="editClient('{{ $client->id }}')"
|
||||||
onclick="$('#modal-edit-client').modal('show');">
|
onclick="$('#modal-edit-client').modal('show');">
|
||||||
<i class="fas fa-pencil-alt" aria-hidden="true"></i><span class="sr-only">{{ trans('general.update') }}</span>
|
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">
|
||||||
|
{{ trans('general.update') }}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="action-link btn btn-danger btn-sm" wire:click="deleteClient('{{ $client->id }}')">
|
<a class="action-link btn btn-danger btn-sm" wire:click="deleteClient('{{ $client->id }}')">
|
||||||
|
@ -96,19 +122,34 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="box box-default">
|
<div class="box box-default">
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<h2>
|
<h2 class="box-title">
|
||||||
{{ trans('admin/settings/general.oauth_authorized_apps') }}
|
{{ trans('admin/settings/general.oauth_authorized_apps') }}
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<!-- Authorized Tokens -->
|
<!-- Authorized Tokens -->
|
||||||
<table class="table table-striped snipe-table">
|
<table data-cookie-id-table="AuthorizedAppsTable"
|
||||||
|
data-pagination="true"
|
||||||
|
data-id-table="AuthorizedAppsTable"
|
||||||
|
data-toolbar="#AuthorizedAppsToolbar"
|
||||||
|
data-side-pagination="client"
|
||||||
|
data-sort-order="desc"
|
||||||
|
data-sort-name="created_at"
|
||||||
|
id="AuthorizedAppsTable"
|
||||||
|
class="table table-striped snipe-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ trans('general.name') }}</th>
|
<th data-sortable="true">{{ trans('general.name') }}</th>
|
||||||
<th>{{ trans('admin/settings/general.oauth_scopes') }}</th>
|
<th data-sortable="true"> {{ trans('account/general.personal_access_token') }}</th>
|
||||||
<th></th>
|
<th data-sortable="true">{{ trans('admin/settings/general.oauth_scopes') }}</th>
|
||||||
|
<th data-sortable="true">{{ trans('general.created_at') }}</th>
|
||||||
|
<th data-sortable="true">{{ trans('general.expires') }}</th>
|
||||||
|
<th>
|
||||||
|
<span class="sr-only">
|
||||||
|
{{ trans('general.actions') }}
|
||||||
|
</span>
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -120,6 +161,10 @@
|
||||||
{{ $token->client->name }}
|
{{ $token->client->name }}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $token->name }}
|
||||||
|
</td>
|
||||||
|
|
||||||
<!-- Scopes -->
|
<!-- Scopes -->
|
||||||
<td>
|
<td>
|
||||||
@if(!$token->scopes)
|
@if(!$token->scopes)
|
||||||
|
@ -129,6 +174,13 @@
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $token->created_at ? Helper::getFormattedDateObject($token->created_at, 'datetime', false) : '' }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $token->expires_at ? Helper::getFormattedDateObject($token->expires_at, 'datetime', false) : '' }}
|
||||||
|
</td>
|
||||||
<!-- Revoke Button -->
|
<!-- Revoke Button -->
|
||||||
<td>
|
<td>
|
||||||
<a class="btn btn-sm btn-danger pull-right"
|
<a class="btn btn-sm btn-danger pull-right"
|
||||||
|
@ -354,4 +406,8 @@
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@section('moar_scripts')
|
||||||
|
@include ('partials.bootstrap-table')
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue