Add link to download ACARS config from profile (#539)
* Add link to download ACARS config from profile * Formatting
This commit is contained in:
@@ -94,6 +94,11 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="text-right">
|
||||
@if ($acars)
|
||||
<a href="{{ route('frontend.profile.acars') }}" class="btn btn-primary"
|
||||
onclick="alert('Save to \'My Documents/phpVMS\'')">ACARS Config</a>
|
||||
|
||||
@endif
|
||||
<a href="{{ route('frontend.profile.regen_apikey') }}" class="btn btn-warning"
|
||||
onclick="return confirm({{ __('Are you sure? This will reset your API key.') }})">@lang('profile.newapikey')</a>
|
||||
|
||||
|
||||
4
resources/views/system/acars/config.blade.php
Normal file
4
resources/views/system/acars/config.blade.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<AcarsConfiguration xmlns="http://schemas.phpvms.net/acars/config">
|
||||
<AirlineUrl>{{ config('app.url') }}</AirlineUrl>
|
||||
<ApiKey>{{ $user->api_key }}</ApiKey>
|
||||
</AcarsConfiguration>
|
||||
Reference in New Issue
Block a user