Skip to content

Commit

Permalink
tweak blade view
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 24, 2016
1 parent c596026 commit ef22858
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions resources/views/authorize.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

<title>{{ config('app.name') }} - Authorization</title>

<!-- Fonts -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600' rel='stylesheet' type='text/css'>

<!-- Styles -->
<link href="/css/app.css" rel="stylesheet">

Expand All @@ -18,10 +15,6 @@
margin-top: 30px;
}
.passport-authorize h4 {
margin-top: 0;
}
.passport-authorize .scopes {
margin-top: 20px;
}
Expand Down Expand Up @@ -49,24 +42,25 @@
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-heading">
Authorization Request
</div>
<div class="panel-body">
<!-- Introduction -->
<h4>
Authorize <strong>{{ $client->name }}</strong> to use your account?
</h4>
<p><strong>{{ $client->name }}</strong> is requesting permission to access your account.</p>

<!-- Scope List -->
<div class="scopes">
@if (count($scopes) > 0)
<p><strong>This application will be able to:</strong></p>

<ul>
@foreach ($scopes as $scope)
<li>{{ $scope->description }}</li>
@endforeach
</ul>
@endif
</div>
@if (count($scopes) > 0)
<div class="scopes">
<p><strong>This application will be able to:</strong></p>

<ul>
@foreach ($scopes as $scope)
<li>{{ $scope->description }}</li>
@endforeach
</ul>
</div>
@endif

<div class="buttons">
<!-- Authorize Button -->
Expand All @@ -78,14 +72,14 @@
<button type="submit" class="btn btn-success btn-approve">Authorize</button>
</form>

<!-- Deny Button -->
<!-- Cancel Button -->
<form method="post" action="/oauth/authorize">
{{ 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-default">Cancel</button>
<button class="btn btn-danger">Cancel</button>
</form>
</div>
</div>
Expand Down

0 comments on commit ef22858

Please sign in to comment.