Add link to download ACARS config from profile (#539)

* Add link to download ACARS config from profile

* Formatting
This commit is contained in:
Nabeel S
2020-02-07 13:29:43 -05:00
committed by GitHub
parent 94cfbd4748
commit dd9fbdb6f1
4 changed files with 50 additions and 6 deletions

View File

@@ -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>
&nbsp;
@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>
&nbsp;

View File

@@ -0,0 +1,4 @@
<AcarsConfiguration xmlns="http://schemas.phpvms.net/acars/config">
<AirlineUrl>{{ config('app.url') }}</AirlineUrl>
<ApiKey>{{ $user->api_key }}</ApiKey>
</AcarsConfiguration>