mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +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 http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<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 -->
|
<!-- Styles -->
|
||||||
<link href="/css/app.css" rel="stylesheet">
|
<link href="/css/app.css" rel="stylesheet">
|
||||||
@@ -43,33 +43,34 @@
|
|||||||
<div class="col-md-6 col-md-offset-3">
|
<div class="col-md-6 col-md-offset-3">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
Authorization Request
|
{{ trans('firefly.authorization_request', {version: config('firefly.version')}) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<!-- Introduction -->
|
<!-- 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 -->
|
<!-- Scope List -->
|
||||||
@if (count($scopes) > 0)
|
{% if scopes|length > 0 %}
|
||||||
<div class="scopes">
|
<div class="scopes">
|
||||||
<p><strong>This application will be able to:</strong></p>
|
<p><strong>{{ 'scopes_will_be_able'|_ }}</strong></p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@foreach ($scopes as $scope)
|
{% for scope in scopes %}
|
||||||
<li>{{ $scope->description }}</li>
|
<li>{{ scope.description }}</li>
|
||||||
@endforeach
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
{% endif %}
|
||||||
|
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<!-- Authorize Button -->
|
<!-- Authorize Button -->
|
||||||
<form method="post" action="/oauth/authorize">
|
<form method="post" action="/oauth/authorize">
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
|
|
||||||
<input type="hidden" name="state" value="{{ $request->state }}">
|
<input type="hidden" name="state" value="{{ request.state }}">
|
||||||
<input type="hidden" name="client_id" value="{{ $client->id }}">
|
<input type="hidden" name="client_id" value="{{ client.id }}">
|
||||||
<button type="submit" class="btn btn-success btn-approve">Authorize</button>
|
<button type="submit" class="btn btn-success btn-approve">{{ 'button_authorize'|_ }}</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- Cancel Button -->
|
<!-- Cancel Button -->
|
||||||
@@ -77,9 +78,9 @@
|
|||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
{{ method_field('DELETE') }}
|
{{ method_field('DELETE') }}
|
||||||
|
|
||||||
<input type="hidden" name="state" value="{{ $request->state }}">
|
<input type="hidden" name="state" value="{{ request.state }}">
|
||||||
<input type="hidden" name="client_id" value="{{ $client->id }}">
|
<input type="hidden" name="client_id" value="{{ client.id }}">
|
||||||
<button class="btn btn-danger">Cancel</button>
|
<button class="btn btn-danger">{{ 'cancel'|_ }}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user