openstackid/resources/views/oauth2/consent.blade.php
Sebastian Marcet 6b0d6c36af IDP Upgrade from Laravel 4.X to 5.X
In order to migrate IDP from LV 4.x to
latest LV version, following task were performed:

* Updated namespace to be complain with PSR-4
* General Refactoring: moved all DB access code
  from services to repositories.
* Migration to LV 5.X: these migration guides
  were applied
  - https://laravel.com/docs/5.3/upgrade#upgrade-5.0
  - https://laravel.com/docs/5.3/upgrade#upgrade-5.1.0
  - https://laravel.com/docs/5.3/upgrade#upgrade-5.2.0
* Improved caching: added repositories decorators
  in order to add REDIS cache to queries, entities

Change-Id: I8edf9f5fce6585129701c88bb88332f242307534
2016-11-17 18:37:40 -03:00

43 lines
2.4 KiB
PHP

@extends('layout')
@section('title')
<title>Welcome to OpenStackId - Request for Permission </title>
@stop
@section('header_right')
@if(Auth::check())
<div class="row">
<div class="col-md-6 col-md-offset-8">
Welcome, <a href="{!! URL::action("UserController@getProfile") !!}">{!!Auth::user()->identifier!!}</a>
</div>
</div>
@endif
@stop
@section('content')
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="row">
<div class="col-md-12 col-xs-12">
<h2> <a target='_blank' href="{!!$website!!}">{!!$app_name!!}</a>&nbsp;<span style="font-size: 10pt;" class="glyphicon glyphicon-info-sign pointable info" aria-hidden="true" data-content="Developer Email: <a href='mailto:{!!$dev_info_email!!}'>{!!$dev_info_email!!}</a>.<br> Clicking 'Accept' will redirect you to: <a href='{!!$website!!}' target='_blank'>{!!$website!!}</a>" title="Developer Info"></span></h2>
</div>
</div>
<legend>This app would like to:</legend>
<ul class="list-unstyled">
@foreach ($requested_scopes as $scope)
<li> {!!$scope->short_description!!}&nbsp;<span class="glyphicon glyphicon-info-sign pointable info" aria-hidden="true" data-content="{!! $scope->description !!}" title="Scope Info"></span></li>
@endforeach
</ul>
{!! Form::open(array('url' => URL::action("UserController@postConsent") ,'id'=>'authorization_form', 'method' => 'post', "autocomplete" => "off")) !!}
<input type="hidden" name='trust' id='trust' value=""/>
<button class="btn btn-default btn-md btn-consent-action" id="cancel-authorization" type="button">Cancel</button>
<button class="btn btn-primary btn-md btn-consent-action" id="approve-authorization" type="button">Accept</button>
{!! Form::close() !!}
<p class="privacy-policy">** <b>{!!$app_name!!}</b> Application and <b>OpenStack</b> will use this information in accordance with their respective <a target='_blank' href="{!!$tos_uri!!}">terms of service</a> and <a target='_blank' href="{!!$policy_uri!!}">privacy policies</a>.</p>
</div>
</div>
</div>
@stop
@section('scripts')
{!! HTML::script('assets/js/oauth2/consent.js') !!}
@append