mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Make sure authorise view is translatable and matches Firefly III
This commit is contained in:
33
resources/views/vendor/passport/authorize.twig
vendored
33
resources/views/vendor/passport/authorize.twig
vendored
@@ -5,7 +5,7 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>{{ config('app.name') }} - Authorization</title>
|
||||
<title>Firefly III v{{ config('firefly.version') }} - Authorization</title>
|
||||
|
||||
<!-- Styles -->
|
||||
<link href="/css/app.css" rel="stylesheet">
|
||||
@@ -43,33 +43,34 @@
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Authorization Request
|
||||
{{ trans('firefly.authorization_request', {version: config('firefly.version')}) }}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<!-- Introduction -->
|
||||
<p><strong>{{ $client->name }}</strong> is requesting permission to access your account.</p>
|
||||
|
||||
<p>
|
||||
{{ trans('firefly.authorization_request_intro', {client: client.name})|raw }}
|
||||
</p>
|
||||
<!-- Scope List -->
|
||||
@if (count($scopes) > 0)
|
||||
{% if scopes|length > 0 %}
|
||||
<div class="scopes">
|
||||
<p><strong>This application will be able to:</strong></p>
|
||||
<p><strong>{{ 'scopes_will_be_able'|_ }}</strong></p>
|
||||
|
||||
<ul>
|
||||
@foreach ($scopes as $scope)
|
||||
<li>{{ $scope->description }}</li>
|
||||
@endforeach
|
||||
{% for scope in scopes %}
|
||||
<li>{{ scope.description }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
{% endif %}
|
||||
|
||||
<div class="buttons">
|
||||
<!-- Authorize Button -->
|
||||
<form method="post" action="/oauth/authorize">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<input type="hidden" name="state" value="{{ $request->state }}">
|
||||
<input type="hidden" name="client_id" value="{{ $client->id }}">
|
||||
<button type="submit" class="btn btn-success btn-approve">Authorize</button>
|
||||
<input type="hidden" name="state" value="{{ request.state }}">
|
||||
<input type="hidden" name="client_id" value="{{ client.id }}">
|
||||
<button type="submit" class="btn btn-success btn-approve">{{ 'button_authorize'|_ }}</button>
|
||||
</form>
|
||||
|
||||
<!-- Cancel Button -->
|
||||
@@ -77,9 +78,9 @@
|
||||
{{ csrf_field() }}
|
||||
{{ method_field('DELETE') }}
|
||||
|
||||
<input type="hidden" name="state" value="{{ $request->state }}">
|
||||
<input type="hidden" name="client_id" value="{{ $client->id }}">
|
||||
<button class="btn btn-danger">Cancel</button>
|
||||
<input type="hidden" name="state" value="{{ request.state }}">
|
||||
<input type="hidden" name="client_id" value="{{ client.id }}">
|
||||
<button class="btn btn-danger">{{ 'cancel'|_ }}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user