scopes and contracts

This commit is contained in:
2019-07-07 05:10:53 -05:00
parent 01d3e44d95
commit 22a62ab082

View File

@@ -10,6 +10,7 @@
$structureMarkets = false;
$corpAssets = false;
$universeStructures = false;
$corpContracts = false;
?>
<div class="container">
<h2>Select Scopes for ESI</h2>
@@ -102,6 +103,15 @@
<?php $universeStructures = true; ?>
@endif
@endforeach
@foreach($scopes as $scope)
@if($scope->scope == 'esi-contracts.read_corporation_contracts.v1')
<div class="form-group col-md-6">
{{ Form::label('scopes[]', 'Corporate Contracts') }}
{{ Form::checkbox('scopes[]', 'esi-contracts.read_corporation_contracts.v1') }}
</div>
<?php $corpContracts = true; ?>
@endif
@endforeach
@if($publicData == false)
<div class="form-group col-md-6">
@@ -157,6 +167,12 @@
{{ Form::checkbox('scopes[]', 'esi-universe.read_structures.v1') }}
</div>
@endif
@if($corpContracts == false)
<div class="form-group col-md-6">
{{ Form::label('scopes[]', 'Corporate Contracts') }}
{{ Form::checkbox('scopes[]', 'esi-contracts.read_corporation_contracts.v1') }}
</div>
@endif
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}