Format all blade templates to 2 spaces #530 (#531)

This commit is contained in:
Nabeel S
2020-02-01 13:05:56 -05:00
committed by GitHub
parent 06b47d97e0
commit 59d09c0cec
254 changed files with 7109 additions and 6992 deletions
@@ -2,13 +2,13 @@
@section('title', __('profile.editprofile'))
@section('content')
<div class="row">
<div class="row">
<div class="col-md-12">
<h2 class="description">@lang('profile.edityourprofile')</h2>
@include('flash::message')
{{ Form::model($user, ['route' => ['frontend.profile.update', $user->id], 'files' => true, 'method' => 'patch']) }}
@include("profile.fields")
{{ Form::close() }}
<h2 class="description">@lang('profile.edityourprofile')</h2>
@include('flash::message')
{{ Form::model($user, ['route' => ['frontend.profile.update', $user->id], 'files' => true, 'method' => 'patch']) }}
@include("profile.fields")
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@@ -1,129 +1,129 @@
<div class="row">
<div class="col-md-12">
<table class="table">
<tr>
<td>@lang('common.name')</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('name') ? ' has-danger' : '' }}">
{{ Form::text('name', null, ['class' => 'form-control']) }}
</div>
@if ($errors->has('name'))
<p class="text-danger">{{ $errors->first('name') }}</p>
@endif
</td>
</tr>
<div class="col-md-12">
<table class="table">
<tr>
<td>@lang('common.name')</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('name') ? ' has-danger' : '' }}">
{{ Form::text('name', null, ['class' => 'form-control']) }}
</div>
@if ($errors->has('name'))
<p class="text-danger">{{ $errors->first('name') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('common.email')</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('email') ? ' has-danger' : '' }}">
{{ Form::text('email', null, ['class' => 'form-control']) }}
</div>
@if ($errors->has('email'))
<p class="text-danger">{{ $errors->first('email') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('common.email')</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('email') ? ' has-danger' : '' }}">
{{ Form::text('email', null, ['class' => 'form-control']) }}
</div>
@if ($errors->has('email'))
<p class="text-danger">{{ $errors->first('email') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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']) }}
</div>
@if ($errors->has('airline_id'))
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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']) }}
</div>
@if ($errors->has('airline_id'))
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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']) }}
</div>
@if ($errors->has('home_airport_id'))
<p class="text-danger">{{ $errors->first('home_airport_id') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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']) }}
</div>
@if ($errors->has('home_airport_id'))
<p class="text-danger">{{ $errors->first('home_airport_id') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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' ]) }}
</div>
@if ($errors->has('country'))
<p class="text-danger">{{ $errors->first('country') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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' ]) }}
</div>
@if ($errors->has('country'))
<p class="text-danger">{{ $errors->first('country') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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' ]) }}
</div>
@if ($errors->has('timezone'))
<p class="text-danger">{{ $errors->first('timezone') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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' ]) }}
</div>
@if ($errors->has('timezone'))
<p class="text-danger">{{ $errors->first('timezone') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('profile.changepassword')</td>
<td>
<p>@lang('profile.newpassword'):</p>
<div class="input-group form-group-no-border{{ $errors->has('password') ? ' has-danger' : '' }}">
{{ Form::password('password', ['class' => 'form-control']) }}
</div>
@if ($errors->has('password'))
<p class="text-danger">{{ $errors->first('password') }}</p>
@endif
<tr>
<td>@lang('profile.changepassword')</td>
<td>
<p>@lang('profile.newpassword'):</p>
<div class="input-group form-group-no-border{{ $errors->has('password') ? ' has-danger' : '' }}">
{{ Form::password('password', ['class' => 'form-control']) }}
</div>
@if ($errors->has('password'))
<p class="text-danger">{{ $errors->first('password') }}</p>
@endif
<p>@lang('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>
@if ($errors->has('password_confirmation'))
<p class="text-danger">{{ $errors->first('password_confirmation') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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>@lang('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>
@if ($errors->has('password_confirmation'))
<p class="text-danger">{{ $errors->first('password_confirmation') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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', [
'width' => config('phpvms.avatar.width'),
'height' => config('phpvms.avatar.height')])
</p>
@if ($errors->has('avatar'))
<p class="text-danger">{{ $errors->first('avatar') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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>
</td>
</tr>
</p>
@if ($errors->has('avatar'))
<p class="text-danger">{{ $errors->first('avatar') }}</p>
@endif
</td>
</tr>
<tr>
<td>@lang('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>
</td>
</tr>
</table>
</table>
<div style="width: 100%; text-align: right; padding-top: 20px;">
{{ Form::submit(__('profile.updateprofile'), ['class' => 'btn btn-primary']) }}
</div>
<div style="width: 100%; text-align: right; padding-top: 20px;">
{{ Form::submit(__('profile.updateprofile'), ['class' => 'btn btn-primary']) }}
</div>
</div>
</div>
@@ -2,125 +2,125 @@
@section('title', __('common.profile'))
@section('content')
<div class="row profile-page content-center text-color-dark-beige">
<div class="row profile-page content-center text-color-dark-beige">
<div class="col-md-4" style="text-align:center;">
<div class="photo-container">
@if ($user->avatar == null)
<img src="{{ $user->gravatar(512) }}" style="width: 123px;">
@else
<img src="{{ $user->avatar->url }}" style="width: 123px;">
@endif
</div>
<div><br /></div>
<div class="social-description">
<h2>{{ $user->name }}</h2>
<p>{{ $user->ident }}</p>
</div>
<p class="description" style="color: #9A9A9A;">
{{ $user->airline->name }}
</p>
<h6><span class="flag-icon flag-icon-{{ $user->country }}"></span></h6>
<div class="social-description">
<h2>{{ $user->rank->name }}</h2>
<p>Rank</p>
</div>
@if($user->home_airport)
<div class="social-description">
<h2>{{ $user->home_airport->icao }}</h2>
<p>@lang('airports.home')</p>
</div>
<div class="photo-container">
@if ($user->avatar == null)
<img src="{{ $user->gravatar(512) }}" style="width: 123px;">
@else
<img src="{{ $user->avatar->url }}" style="width: 123px;">
@endif
</div>
<div><br/></div>
<div class="social-description">
<h2>{{ $user->name }}</h2>
<p>{{ $user->ident }}</p>
</div>
<p class="description" style="color: #9A9A9A;">
{{ $user->airline->name }}
</p>
<h6><span class="flag-icon flag-icon-{{ $user->country }}"></span></h6>
<div class="social-description">
<h2>{{ $user->rank->name }}</h2>
<p>Rank</p>
</div>
@if($user->home_airport)
<div class="social-description">
<h2>{{ $user->home_airport->icao }}</h2>
<p>@lang('airports.home')</p>
</div>
@endif
</div>
<div class="col-md-8 content-center">
<div class="content">
<div class="row">
<div class="col-lg-6">
<div class="card text-center">
<div class="card-body">
<h2 class="card-title">{{ $user->flights}}</h2>
<p class="card-text">Flights</p>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card text-center">
<div class="card-body">
<div class="social-description">
<h2>{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false) }}</h2>
<p>@lang('flights.flighthours')</p>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="col-lg-6">
<div class="card text-center">
<div class="card-body">
<h2 class="card-title">{{ $user->flights}}</h2>
<p class="card-text">Flights</p>
</div>
</div>
<div class="row">
@if($user->current_airport)
<div class="col-lg-6">
<div class="card text-center">
<div class="card-body">
<div class="social-description">
<h2>{{ $user->current_airport->icao }}</h2>
<p>@lang('airports.current')</p>
</div>
</div>
</div>
</div>
@endif
</div>
@if(setting('pilots.allow_transfer_hours') === true)
<div class="col-lg-6">
<div class="card text-center">
<div class="card-body">
<div class="social-description">
<h2>{{ \App\Facades\Utils::minutesToHours($user->transfer_time) }}h</h2>
<p>@lang('profile.transferhours')</p>
</div>
</div>
</div>
</div>
@endif
<div class="col-lg-6">
<div class="card text-center">
<div class="card-body">
<div class="social-description">
<h2>{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false) }}</h2>
<p>@lang('flights.flighthours')</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
@if($user->current_airport)
<div class="col-lg-6">
<div class="card text-center">
<div class="card-body">
<div class="social-description">
<h2>{{ $user->current_airport->icao }}</h2>
<p>@lang('airports.current')</p>
</div>
</div>
</div>
</div>
@endif
{{--
show the details/edit fields only for the currently logged in user
--}}
@if(Auth::check() && $user->id === Auth::user()->id)
@if(setting('pilots.allow_transfer_hours') === true)
<div class="col-lg-6">
<div class="card text-center">
<div class="card-body">
<div class="social-description">
<h2>{{ \App\Facades\Utils::minutesToHours($user->transfer_time) }}h</h2>
<p>@lang('profile.transferhours')</p>
</div>
</div>
</div>
</div>
@endif
</div>
</div>
</div>
</div>
{{--
show the details/edit fields only for the currently logged in user
--}}
@if(Auth::check() && $user->id === Auth::user()->id)
<div class="clearfix" style="height: 50px;"></div>
<div class="row">
<div class="col-sm-12">
<div class="text-right">
<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;
<a href="{{ route('frontend.profile.edit', [$user->id]) }}"
class="btn btn-primary">@lang('common.edit')</a>
</div>
<h3 class="description">@lang('profile.yourprofile')</h3>
<table class="table table-full-width">
<tr>
<td>@lang('common.email')</td>
<td>{{ $user->email }}</td>
</tr>
<tr>
<td>@lang('profile.apikey')&nbsp;&nbsp;<span class="description">(@lang('profile.dontshare'))</span></td>
<td>{{ $user->api_key }}</td>
</tr>
<tr>
<td>@lang('common.timezone')</td>
<td>{{ $user->timezone }}</td>
</tr>
<tr>
<td>@lang('profile.opt-in')</td>
<td>{{ $user->opt_in ? __('common.yes') : __('common.no') }}</td>
</tr>
</table>
<div class="col-sm-12">
<div class="text-right">
<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;
<a href="{{ route('frontend.profile.edit', [$user->id]) }}"
class="btn btn-primary">@lang('common.edit')</a>
</div>
<h3 class="description">@lang('profile.yourprofile')</h3>
<table class="table table-full-width">
<tr>
<td>@lang('common.email')</td>
<td>{{ $user->email }}</td>
</tr>
<tr>
<td>@lang('profile.apikey')&nbsp;&nbsp;<span class="description">(@lang('profile.dontshare'))</span></td>
<td>{{ $user->api_key }}</td>
</tr>
<tr>
<td>@lang('common.timezone')</td>
<td>{{ $user->timezone }}</td>
</tr>
<tr>
<td>@lang('profile.opt-in')</td>
<td>{{ $user->opt_in ? __('common.yes') : __('common.no') }}</td>
</tr>
</table>
</div>
</div>
@endif
@endif
@endsection