Skip to content

Commit ae41362

Browse files
UI: update to bootstrap 4 and small improvements (#88)
* ui: update to bootstrap 4 and small improvements * styleci
1 parent 12db78c commit ae41362

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

src/resources/lang/en/seat.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
'new_token' => 'New Token',
2727
'key_comment' => 'Key Comment',
2828
'allowed_ip_address' => 'Allowed IP Address',
29-
'ip_help' => 'This is the source IP address that will be allowed to use the generated token.',
29+
'ip_help' => 'This is the source IP address that will be allowed to use the generated token. Using 0.0.0.0 grants access to any IP.',
3030
'ip_danger' => 'Using 0.0.0.0 will allow ANYONE who has this token to use the SeAT API. This is dangerous. Be careful!',
3131
'generate' => 'Generate',
3232
'token' => 'Token|Tokens',
@@ -43,5 +43,4 @@
4343
'request_path' => 'Request Path',
4444
'source_ip' => 'Source IP',
4545
'api_docs' => 'API Documenation',
46-
4746
];

src/resources/views/list.blade.php

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@
66
@section('left')
77

88
<div class="card">
9-
<div class="card-header">
9+
<div class="card-header d-flex align-items-center">
1010
<h3 class="card-title">
1111
{{ trans('api::seat.new_token') }}
1212
</h3>
13-
<div class="card-tools">
14-
<span class="float-right">
15-
<a href="{{ route('l5-swagger.default.api') }}" target="_blank" class="btn btn-success btn-xs">
16-
<i class="fas fa-book"></i>
17-
{{ trans('api::seat.api_docs') }}
18-
</a>
19-
</span>
20-
</div>
13+
<a href="{{ route('l5-swagger.default.api') }}" target="_blank" class="btn btn-success ml-auto">
14+
<i class="fas fa-book"></i>
15+
{{ trans('api::seat.api_docs') }}
16+
</a>
2117
</div>
2218
<div class="card-body">
2319

@@ -36,10 +32,13 @@
3632
<label for="text">{{ trans('api::seat.allowed_ip_address') }}</label>
3733
<input type="text" name="allowed_src" class="form-control" id="allowed_src" value="{{ old('allowed_src') }}"
3834
placeholder="IP Address">
39-
<span class="help-block">
35+
<small class="form-text text-muted">
4036
{{ trans('api::seat.ip_help') }}
41-
</span>
42-
<div class="card bg-danger p-1">
37+
</small>
38+
39+
<div class="alert alert-danger mt-2">
40+
<h4 class="alert-heading"><i class="fas fa-exclamation"></i> Danger</h4>
41+
4342
{{ trans('api::seat.ip_danger') }}
4443
</div>
4544
</div>
@@ -82,24 +81,24 @@
8281
@foreach($tokens as $token)
8382

8483
<tr>
85-
<td>
84+
<td class="align-middle">
8685
<span data-toggle="tooltip"
8786
title="" data-original-title="{{ $token->created_at }}">
8887
{{ human_diff($token->created_at) }}
8988
</span>
9089
</td>
91-
<td>{{ $token->comment }}</td>
92-
<td>{{ $token->token }}</td>
93-
<td>{{ $token->allowed_src }}</td>
94-
<td>
90+
<td class="align-middle">{{ $token->comment }}</td>
91+
<td class="align-middle">{{ $token->token }}</td>
92+
<td class="align-middle">{{ $token->allowed_src }}</td>
93+
<td class="align-middle">
9594
<div class="btn-group">
9695
<a href="{{ route('seatcore::api-admin.token.delete', [$token->id]) }}" type="button"
97-
class="btn btn-danger btn-xs confirmlink col-xs-6">
96+
class="btn btn-danger confirmlink col-xs-6">
9897
<i class="fas fa-trash-alt"></i>
9998
{{ trans('api::seat.delete') }}
10099
</a>
101100
<a href="{{ route('seatcore::api-admin.token.logs', [$token->id]) }}" type="button"
102-
class="btn btn-primary btn-xs col-xs-6">
101+
class="btn btn-primary col-xs-6">
103102
<i class="fas fa-clipboard-list"></i>
104103
{{ trans('api::seat.logs') }}
105104
</a>

0 commit comments

Comments
 (0)