* Discord notifications for events #433 * Style fixes * Check for blank webhook urls and disable * Cleanup items after review * Changes and fixes * Style fixes * Don't load env for testing * Fix status text * Refactor saving fields/fares so events get the latest data * Cleanup * Style fixes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="col-md-12">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td>@lang('common.name')</td>
|
||||
<td>{{ __('common.name') }}</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('name') ? ' has-danger' : '' }}">
|
||||
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||
@@ -14,7 +14,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>@lang('common.email')</td>
|
||||
<td>{{ __('common.email') }}</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('email') ? ' has-danger' : '' }}">
|
||||
{{ Form::text('email', null, ['class' => 'form-control']) }}
|
||||
@@ -26,7 +26,22 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>@lang('common.airline')</td>
|
||||
<td>Discord ID <span class="small">
|
||||
<a href="https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-" target="_blank">
|
||||
How to find your ID</a></span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('discord_id') ? ' has-danger' : '' }}">
|
||||
{{ Form::text('discord_id', null, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@if ($errors->has('discord_id'))
|
||||
<p class="text-danger">{{ $errors->first('discord_id') }}</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('common.airline') }}</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('airline') ? ' has-danger' : '' }}">
|
||||
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
|
||||
@@ -38,7 +53,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>@lang('airports.home')</td>
|
||||
<td>{{ __('airports.home') }}</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('home_airport_id') ? ' has-danger' : '' }}">
|
||||
{{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) }}
|
||||
@@ -50,7 +65,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>@lang('common.country')</td>
|
||||
<td>{{ __('common.country') }}</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('country') ? ' has-danger' : '' }}">
|
||||
{{ Form::select('country', $countries, null, ['class' => 'form-control select2' ]) }}
|
||||
@@ -62,7 +77,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>@lang('common.timezone')</td>
|
||||
<td>{{ __('common.timezone') }}</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('timezone') ? ' has-danger' : '' }}">
|
||||
{{ Form::select('timezone', $timezones, null, ['class' => 'form-control select2' ]) }}
|
||||
@@ -74,9 +89,9 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>@lang('profile.changepassword')</td>
|
||||
<td>{{ __('profile.changepassword') }}</td>
|
||||
<td>
|
||||
<p>@lang('profile.newpassword'):</p>
|
||||
<p>{{ __('profile.newpassword') }}:</p>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('password') ? ' has-danger' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@@ -84,7 +99,7 @@
|
||||
<p class="text-danger">{{ $errors->first('password') }}</p>
|
||||
@endif
|
||||
|
||||
<p>@lang('passwords.confirm'):</p>
|
||||
<p>{{ __('passwords.confirm') }}:</p>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('password_confirmation') ? ' has-danger' : '' }}">
|
||||
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@@ -94,14 +109,14 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('profile.avatar')</td>
|
||||
<td>{{ __('profile.avatar') }}</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('avatar') ? ' has-danger' : '' }}">
|
||||
{{ Form::file('avatar', null) }}
|
||||
</div>
|
||||
<p class="small">@lang('profile.avatarresize', [
|
||||
<p class="small">{{ __('profile.avatarresize', [
|
||||
'width' => config('phpvms.avatar.width'),
|
||||
'height' => config('phpvms.avatar.height')])
|
||||
'height' => config('phpvms.avatar.height')]) }}
|
||||
</p>
|
||||
@if ($errors->has('avatar'))
|
||||
<p class="text-danger">{{ $errors->first('avatar') }}</p>
|
||||
@@ -130,13 +145,13 @@
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td>@lang('profile.opt-in')</td>
|
||||
<td>{{ __('profile.opt-in') }}</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border">
|
||||
{{ Form::hidden('opt_in', 0, false) }}
|
||||
{{ Form::checkbox('opt_in', 1, null) }}
|
||||
</div>
|
||||
<p class="small">@lang('profile.opt-in-descrip')
|
||||
<p class="small">{{ __('profile.opt-in-descrip') }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -153,6 +153,10 @@
|
||||
<td>@lang('profile.apikey') <span class="description">(@lang('profile.dontshare'))</span></td>
|
||||
<td><span id="apiKey_show" style="display: none">{{ $user->api_key }} <i class="fas fa-eye-slash" onclick="apiKeyHide()"></i></span><span id="apiKey_hide">@lang('profile.apikey-show') <i class="fas fa-eye" onclick="apiKeyShow()"></i></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Discord ID</td>
|
||||
<td>{{ $user->discord_id ?? '-' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('common.timezone')</td>
|
||||
<td>{{ $user->timezone }}</td>
|
||||
@@ -174,7 +178,7 @@
|
||||
@if(!$field->private)
|
||||
<tr>
|
||||
<td>{{ $field->name }}</td>
|
||||
<td>{{ $field->value }}</td>
|
||||
<td>{{ $field->value ?? '-'}}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user