Move profile into separate file
This commit is contained in:
parent
ba1bf4581d
commit
1258b87671
19
resources/lang/en/profile.php
Normal file
19
resources/lang/en/profile.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
return [
|
||||
'avatarresize' => 'This avatar will be resized to :width x :height pixels',
|
||||
'flighthours' => 'Flight Hours',
|
||||
'newapikey' => 'New API Key',
|
||||
'yourprofile' => 'Your Profile',
|
||||
'apikey' => 'API Key',
|
||||
'dontshare' => 'don\'t share this!',
|
||||
'changepassword' => 'Change Password',
|
||||
'newpassword' => 'New Password',
|
||||
'avatar' => 'Avatar',
|
||||
'updateprofile' => 'Update Profile',
|
||||
'editprofile' => 'Edit Profile',
|
||||
'edityourprofile' => 'Edit Your Profile',
|
||||
];
|
19
resources/lang/it/profile.php
Normal file
19
resources/lang/it/profile.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
return [
|
||||
'avatarresize' => 'Questo avatar sarà ridimensionato a :width x :height pixels',
|
||||
'flighthours' => 'Ore di Volo',
|
||||
'newapikey' => 'Nuova Chiave API',
|
||||
'yourprofile' => 'Il Tuo Profilo',
|
||||
'apikey' => 'Chiave API',
|
||||
'dontshare' => 'non condividerla!',
|
||||
'changepassword' => 'Cambia Password',
|
||||
'newpassword' => 'Nuova Password',
|
||||
'avatar' => 'Avatar',
|
||||
'updateprofile' => 'Aggiorna Profilo',
|
||||
'editprofile' => 'Modifica Profilo',
|
||||
'edityourprofile' => 'Modifica Il Tuo Profilo',
|
||||
];
|
@ -1,10 +1,10 @@
|
||||
@extends('app')
|
||||
@section('title', trans('frontend.profile.editprofile'))
|
||||
@section('title', __('profile.editprofile'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 class="description">@lang('frontend.profile.edityourprofile')</h2>
|
||||
<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")
|
||||
|
@ -74,9 +74,9 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>@lang('frontend.profile.changepassword')</td>
|
||||
<td>@lang('profile.changepassword')</td>
|
||||
<td>
|
||||
<p>@lang('frontend.profile.newpassword'):</p>
|
||||
<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>
|
||||
@ -93,12 +93,12 @@
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<td>@lang('frontend.profile.avatar')</td>
|
||||
<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('frontend.profile.avatarresize', ['width' => config('phpvms.avatar.width'), 'height' => config('phpvms.avatar.height')])</p>
|
||||
<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
|
||||
@ -107,7 +107,7 @@
|
||||
</table>
|
||||
|
||||
<div style="width: 100%; text-align: right; padding-top: 20px;">
|
||||
{{ Form::submit(trans('frontend.profile.updateprofile'), ['class' => 'btn btn-primary']) }}
|
||||
{{ Form::submit(__('profile.updateprofile'), ['class' => 'btn btn-primary']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
<div class="social-description">
|
||||
<h2>{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false) }}</h2>
|
||||
<p>@lang('frontend.profile.flighthours')</p>
|
||||
<p>@lang('profile.flighthours')</p>
|
||||
</div>
|
||||
|
||||
@if($user->home_airport)
|
||||
@ -58,20 +58,20 @@
|
||||
<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('frontend.profile.newapikey')</a>
|
||||
onclick="return confirm({{ __('Are you sure? This will reset your API key.') }})">@lang('profile.newapikey')</a>
|
||||
|
||||
<a href="{{ route('frontend.profile.edit', ['id' => $user->id]) }}"
|
||||
class="btn btn-primary">@lang('common.edit')</a>
|
||||
</div>
|
||||
|
||||
<h3 class="description">@lang('frontend.profile.yourprofile')</h3>
|
||||
<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('frontend.profile.apikey') <span class="description">(@lang('frontend.profile.dontshare'))</span></td>
|
||||
<td>@lang('profile.apikey') <span class="description">(@lang('profile.dontshare'))</span></td>
|
||||
<td>{{ $user->api_key }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user