6b0d6c36af
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
127 lines
5.6 KiB
PHP
127 lines
5.6 KiB
PHP
@extends('layout')
|
|
|
|
@section('title')
|
|
<title>Welcome to OpenStackId - OpenStack ID Account Settings</title>
|
|
@stop
|
|
|
|
@section('content')
|
|
|
|
@include('menu',array('is_oauth2_admin' => $is_oauth2_admin, 'is_openstackid_admin' => $is_openstackid_admin))
|
|
|
|
<div class="col-md-9" id="sidebar">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="row">
|
|
<div class="col-md-12 col-xs-10">
|
|
Hello, {!! $username !!}.
|
|
<div>Your OPENID: <a href="{!! str_replace("%23","#",$openid_url) !!}">{!! str_replace("%23","#",$openid_url) !!}</a></div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
{!! Form::open(array('url' => URL::action('UserController@postUserProfileOptions'), 'method' => 'post')) !!}
|
|
<legend><span class="glyphicon glyphicon-info-sign pointable" aria-hidden="true" title="this information will be public on your profile page"></span> OpenStack ID Account Settings:</legend>
|
|
<div class="checkbox">
|
|
<label class="checkbox">
|
|
{!! Form::checkbox('show_full_name', '1', $show_full_name) !!}Show Full Name
|
|
</label>
|
|
</div>
|
|
<div class="checkbox">
|
|
<label class="checkbox">
|
|
{!! Form::checkbox('show_email', '1', $show_email) !!}Show Email
|
|
</label>
|
|
</div>
|
|
<div class="checkbox">
|
|
<label class="checkbox">
|
|
{!! Form::checkbox('show_pic', '1', $show_pic) !!}Show Photo
|
|
</label>
|
|
</div>
|
|
<div class="pull-right">
|
|
{!! Form::submit('Save',array('id'=>'save','class'=>'btn btn-default btn-md active')) !!}
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
@if (count($sites)>0)
|
|
<div class="row">
|
|
<div id="trusted_sites" class="col-md-12">
|
|
<legend><span class="glyphicon glyphicon-info-sign pointable" aria-hidden="true" title="Users can keep track of their trusted sites and manage them"></span> Trusted Sites</legend>
|
|
<div class="table-responsive">
|
|
<table class="table table-hover table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Realm</th>
|
|
<th>Policy</th>
|
|
<th>Trusted Data</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($sites as $site)
|
|
@if($site->getAuthorizationPolicy()=='AllowForever')
|
|
<tr class="success">
|
|
@else
|
|
<tr class="error">
|
|
@endif
|
|
<td width="50%">{!! $site->getRealm() !!}</td>
|
|
<td width="10%">{!! $site->getAuthorizationPolicy()!!}</td>
|
|
<td width="20%">{!! $site->getUITrustedData() !!}</td>
|
|
<td width="10%">{!! HTML::link(URL::action("UserController@deleteTrustedSite",array("id"=>$site->id)),'Delete',array('class'=>'btn btn-default btn-md active btn-delete del-realm','title'=>'Deletes a decision about a particular trusted site,')) !!}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
@if (count($actions)>0)
|
|
<div class="row">
|
|
<div id="actions" class="col-md-12">
|
|
<legend><span class="glyphicon glyphicon-info-sign pointable" aria-hidden="true" title="Users actions"></span> User Actions</legend>
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-hover table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>From Realm</th>
|
|
<th>Action</th>
|
|
<th>From IP</th>
|
|
<th><span class="glyphicon glyphicon-info-sign pointable" aria-hidden="true"title="Time is on UTC"></span> When</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($actions as $action)
|
|
<tr>
|
|
@if(is_null($action->realm))
|
|
<td>Site</td>
|
|
@else
|
|
<td>{!! $action->realm !!}</td>
|
|
@endif
|
|
<td>{!! $action->user_action !!}</td>
|
|
<td>{!! $action->from_ip !!}</td>
|
|
<td>{!! $action->created_at !!}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
|
|
</div>
|
|
@stop
|
|
@section('scripts')
|
|
<script type="application/javascript">
|
|
$(document).ready(function() {
|
|
$('#profile','#main-menu').addClass('active');
|
|
});
|
|
</script>
|
|
@stop |