refactor: refactored strings on user profile views
This commit is contained in:
parent
3f3f10e508
commit
678ac68c57
@ -1,10 +1,10 @@
|
|||||||
@extends('adminlte::page')
|
@extends('adminlte::page')
|
||||||
|
|
||||||
@section('title', config('app.name') . ' | ' . __('messages.profile.title', ['name' => $profile->user->name]))
|
@section('title', config('app.name') . ' | ' . __(":userNameValue's profile", ['userNameValue' => $profile->user->name]))
|
||||||
|
|
||||||
@section('content_header')
|
@section('content_header')
|
||||||
|
|
||||||
<h4>{{__('messages.profile.users')}} / {{__('messages.profile.profile')}} / {{ $profile->user->name }}</h4>
|
<h4>{{__('Users')}} / {{__('Profile')}} / {{ $profile->user->name }}</h4>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
|
|
||||||
<span><i class="fa fa-ban"></i> <b>{{__('messages.profile.account_banned')}} {{ ($suspensionInfo['isPermanent']) ? __('permanently.') : __('until :date.', ['date' => $suspensionInfo['bannedUntil']]) }}</b></span>
|
<span><i class="fa fa-ban"></i> <b>{{__('This account has been suspended :suspensionTypeValue', ['suspensionTypeValue' => ($suspensionInfo['isPermanent']) ? __('permanently.') : __('until :date.', ['date' => $suspensionInfo['bannedUntil']])]) }}</b></span>
|
||||||
|
|
||||||
<p>{{__('messages.profile.account_banned_exp')}}</p>
|
<p>{{__('This user has been suspended by the admins. Admins suspend accounts for a variety of reasons, including spam.')}}</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<i class="fas fa-chevron-right"></i> <b>{{$suspensionInfo['reason']}}</b>
|
<i class="fas fa-chevron-right"></i> <b>{{$suspensionInfo['reason']}}</b>
|
||||||
@ -36,16 +36,16 @@
|
|||||||
|
|
||||||
@if (Auth::user()->hasRole('admin'))
|
@if (Auth::user()->hasRole('admin'))
|
||||||
|
|
||||||
<x-modal id="banAccountModal" modal-label="banAccount" modal-title="{{__('messages.reusable.confirm')}}" include-close-button="true">
|
<x-modal id="banAccountModal" modal-label="banAccount" modal-title="{{__('Please confirm')}}" include-close-button="true">
|
||||||
|
|
||||||
<p>{{__('messages.profile.ban_confirm')}}</p>
|
<p>{{__("Please confirm that you want to suspend this account. You'll need to add a reason and expiration date to confirm this.")}}</p>
|
||||||
|
|
||||||
<form id="banAccountForm" name="banAccount" method="POST" action="{{route('banUser', ['user' => $profile->user->id])}}">
|
<form id="banAccountForm" name="banAccount" method="POST" action="{{route('banUser', ['user' => $profile->user->id])}}">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
@if($demoActive)
|
@if($demoActive)
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> This feature is disabled</p>
|
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<label for="reason">{{__('Public note')}}</label>
|
<label for="reason">{{__('Public note')}}</label>
|
||||||
<input type="text" name="reason" id="reason" class="form-control" placeholder="{{__('messages.profile.p_duration_exp')}}">
|
<input type="text" name="reason" id="reason" class="form-control" placeholder="{{__('e.g. Spamming')}}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@ -66,7 +66,7 @@
|
|||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<input type="hidden" name="suspensionType" value="off">
|
<input type="hidden" name="suspensionType" value="off">
|
||||||
|
|
||||||
<label for="suspensionType">Suspension type</label><br>
|
<label for="suspensionType">{{ __('Suspension type') }}</label><br>
|
||||||
<input type="checkbox" id="suspensionType" name="suspensionType" checked data-toggle="toggle" data-on="Temporary" data-off="Permanent" data-onstyle="success" data-offstyle="danger" data-width="130" data-height="40">
|
<input type="checkbox" id="suspensionType" name="suspensionType" checked data-toggle="toggle" data-on="Temporary" data-off="Permanent" data-onstyle="success" data-offstyle="danger" data-width="130" data-height="40">
|
||||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ __('Temporary suspensions will be automatically lifted. The suspension note is visible to all users. Suspended users will not be able to login or register.') }}</p>
|
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ __('Temporary suspensions will be automatically lifted. The suspension note is visible to all users. Suspended users will not be able to login or register.') }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -81,20 +81,20 @@
|
|||||||
</x-modal>
|
</x-modal>
|
||||||
|
|
||||||
@if (!Auth::user()->is($profile->user) && $profile->user->isStaffMember())
|
@if (!Auth::user()->is($profile->user) && $profile->user->isStaffMember())
|
||||||
<x-modal id="terminateUser" modal-label="terminateUser" modal-title="{{__('messages.reusable.confirm')}}" include-close-button="true">
|
<x-modal id="terminateUser" modal-label="terminateUser" modal-title="{{__('Please Confirm')}}" include-close-button="true">
|
||||||
|
|
||||||
@if($demoActive)
|
@if($demoActive)
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> This feature is disabled</p>
|
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<p><i class="fa fa-exclamation-triangle"></i> <b>{{__('messages.profile.terminate_notice')}}</b></p>
|
<p><i class="fa fa-exclamation-triangle"></i> <b>{{__('You are about to terminate a recruited staff member')}}</b></p>
|
||||||
<p>
|
<p>
|
||||||
{{__('messages.profile.terminate_notice_warning')}}
|
{{__('Terminating a staff member will remove their privileges on the application management site and connected integrations configured for the vacancy they applied for.')}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>{{__('messages.profile.terminate_notice_consequence')}}</b>
|
<b>{{__('THIS PROCESS IS IRREVERSIBLE AND IMMEDIATE')}}</b>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
@ -103,7 +103,7 @@
|
|||||||
<form method="POST" action="{{route('terminateStaffMember', ['user' => $profile->user->id])}}" id="terminateUserForm">
|
<form method="POST" action="{{route('terminateStaffMember', ['user' => $profile->user->id])}}" id="terminateUserForm">
|
||||||
@csrf
|
@csrf
|
||||||
@method('PATCH')
|
@method('PATCH')
|
||||||
<button type="submit" class="btn btn-warning" {{ ($demoActive) ? 'disabled' : '' }}><i class="fas fa-exclamation-circle"></i> {{__('messages.reusable.confirm')}}</button>
|
<button type="submit" class="btn btn-warning" {{ ($demoActive) ? 'disabled' : '' }}><i class="fas fa-exclamation-circle"></i> {{__('Confirm')}}</button>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@ -116,34 +116,34 @@
|
|||||||
|
|
||||||
@if($demoActive)
|
@if($demoActive)
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> This feature is disabled</p>
|
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<p><i class="fa fa-exclamation-triangle"></i><b> {{__('messages.profile.delete_acc_warn')}}</b></p>
|
<p><i class="fa fa-exclamation-triangle"></i><b> {{__('WARNING: This is a potentially destructive action!')}}</b></p>
|
||||||
|
|
||||||
<p>{{__('messages.profile.delete_acc_consequence')}}</p>
|
<p>{{__("Deleting a user's account is an irreversible process. Historic and current applications, votes, and profile content, as well as any personally identifiable information will be immediately erased.")}}</p>
|
||||||
|
|
||||||
<form id="deleteAccountForm" method="POST" action={{route('deleteUser', ['user' => $profile->user->id])}}>
|
<form id="deleteAccountForm" method="POST" action={{route('deleteUser', ['user' => $profile->user->id])}}>
|
||||||
|
|
||||||
@csrf
|
@csrf
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
|
|
||||||
<label for="promptConfirm">{{__('messages.profile.type_to_confirm')}} "DELETE ACCOUNT"</label>
|
<label for="promptConfirm">{{__('Type to confirm: ')}} "DELETE ACCOUNT"</label>
|
||||||
<input type="text" name="confirmPrompt" class="form-control" placeholder="{{__('messages.profile.type_placeholder')}}">
|
<input type="text" name="confirmPrompt" class="form-control" placeholder="{{__('Please type the above text')}}">
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<x-slot name="modalFooter">
|
<x-slot name="modalFooter">
|
||||||
|
|
||||||
<button type="button" class="btn btn-danger" {{ ($demoActive) ? 'disabled' : '' }} onclick="document.getElementById('deleteAccountForm').submit()"><i class="fa fa-trash"></i> {{strtoupper(__('messages.reusable.confirm'))}}</button>
|
<button type="button" class="btn btn-danger" {{ ($demoActive) ? 'disabled' : '' }} onclick="document.getElementById('deleteAccountForm').submit()"><i class="fa fa-trash"></i> {{strtoupper(__('Confirm'))}}</button>
|
||||||
|
|
||||||
</x-slot>
|
</x-slot>
|
||||||
</x-modal>
|
</x-modal>
|
||||||
|
|
||||||
<x-modal id="ipInfo" modal-label="ipInfo" modal-title="{{__('IP Address Information')}}" include-close-button="true">
|
<x-modal id="ipInfo" modal-label="ipInfo" modal-title="{{__('IP Address Information')}}" include-close-button="true">
|
||||||
|
|
||||||
<h4 class="text-center">{{__('messages.profile.search_result')}}</h3>
|
<h4 class="text-center">{{__('Search results')}}</h4>
|
||||||
|
|
||||||
@if (!isset($ipInfo->message))
|
@if (!isset($ipInfo->message))
|
||||||
|
|
||||||
@ -152,59 +152,59 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.origin_cc')}}</th>
|
<th>{{__('Origin country')}}</th>
|
||||||
<td>{{$ipInfo->country_name ?? 'N/A'}}</td>
|
<td>{{$ipInfo->country_name ?? 'N/A'}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.state_prov')}}</th>
|
<th>{{__('State/Province')}}</th>
|
||||||
<td>{{$ipInfo->state_prov ?? 'None'}}</td>
|
<td>{{$ipInfo->state_prov ?? 'None'}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.district')}}</th>
|
<th>{{__('District (if any)')}}</th>
|
||||||
<td>{{$ipInfo->district ?? 'N/A'}}</td>
|
<td>{{$ipInfo->district ?? 'N/A'}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.city')}}</th>
|
<th>{{__('City')}}</th>
|
||||||
<td>{{$ipInfo->city ?? 'N/A'}}</td>
|
<td>{{$ipInfo->city ?? 'N/A'}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.zipcode')}}</th>
|
<th>{{__('Postal code')}}</th>
|
||||||
<td>{{$ipInfo->zipcode ?? 'N/A'}}</td>
|
<td>{{$ipInfo->zipcode ?? 'N/A'}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.coords')}}</th>
|
<th>{{__('Geographical coordinates')}}</th>
|
||||||
<td>{{$ipInfo->latitude ?? 0}}, {{$ipInfo->longitude ?? 0}}</td>
|
<td>{{$ipInfo->latitude ?? 0}}, {{$ipInfo->longitude ?? 0}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.european')}}</th>
|
<th>{{__('European?')}}</th>
|
||||||
<td>{{($ipInfo->is_eu) ? __('messages.reusable.yes') : __('messages.reusable.no')}}</td>
|
<td>{{($ipInfo->is_eu) ? __('Yes') : __('No')}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.isp')}}</th>
|
<th>{{__('ISP')}}</th>
|
||||||
<td>{{$ipInfo->isp ?? 'N/A'}}</td>
|
<td>{{$ipInfo->isp ?? 'N/A'}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.org')}}</th>
|
<th>{{__('Organization')}}</th>
|
||||||
<td>{{$ipInfo->organization ?? 'N/A'}}</td>
|
<td>{{$ipInfo->organization ?? 'N/A'}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.ctype')}}</th>
|
<th>{{__('Connection type (e.g. datacenter, home)')}}</th>
|
||||||
<td>{{$ipInfo->connection_type ?? 'N/A'}}</td>
|
<td>{{$ipInfo->connection_type ?? 'N/A'}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{__('messages.profile.timezone')}}</th>
|
<th>{{__('Timezone')}}</th>
|
||||||
<td>{{$ipInfo->time_zone->name ?? 'N/A'}}</td>
|
<td>{{$ipInfo->time_zone->name ?? __('N/A')}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -214,7 +214,7 @@
|
|||||||
@else
|
@else
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
|
|
||||||
<i class="fas fa-exclamation-circle"></i> <b>{{__('messages.profile.noresults')}}</b>
|
<i class="fas fa-exclamation-circle"></i> <b>{{__("This query didn't return any results.")}}</b>
|
||||||
<p>
|
<p>
|
||||||
{{$ipInfo->message}}
|
{{$ipInfo->message}}
|
||||||
</p>
|
</p>
|
||||||
@ -229,7 +229,7 @@
|
|||||||
|
|
||||||
@if($demoActive)
|
@if($demoActive)
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> This feature is disabled</p>
|
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@ -237,13 +237,13 @@
|
|||||||
@csrf
|
@csrf
|
||||||
@method('PATCH')
|
@method('PATCH')
|
||||||
|
|
||||||
<label for="email">{{__('messages.contactlabel_email')}}</label>
|
<label for="email">{{__('Email')}}</label>
|
||||||
<input {{ ($demoActive) ? 'disabled' : '' }} id="email" type="text" name="email" class="form-control" required value="{{ $profile->user->email }}" />
|
<input {{ ($demoActive) ? 'disabled' : '' }} id="email" type="text" name="email" class="form-control" required value="{{ $profile->user->email }}" />
|
||||||
|
|
||||||
<label for="name">{{__('messages.contactlabel_name')}}</label>
|
<label for="name">{{__('Name')}}</label>
|
||||||
<input {{ ($demoActive) ? 'disabled' : '' }} id="name" type="text" name="name" class="form-control" required value="{{ $profile->user->name }}" />
|
<input {{ ($demoActive) ? 'disabled' : '' }} id="name" type="text" name="name" class="form-control" required value="{{ $profile->user->name }}" />
|
||||||
|
|
||||||
<label for="uuid">Mojang UUID</label>
|
<label for="uuid">{{ __('Mojang UUID (deprecated)') }}</label>
|
||||||
<input {{ ($demoActive) ? 'disabled' : '' }} id="uuid" type="text" name="uuid" class="form-control" required value="{{ $profile->user->uuid ?? "disabled" }}" />
|
<input {{ ($demoActive) ? 'disabled' : '' }} id="uuid" type="text" name="uuid" class="form-control" required value="{{ $profile->user->uuid ?? "disabled" }}" />
|
||||||
<p class="text-muted text-sm">
|
<p class="text-muted text-sm">
|
||||||
<i class="fas fa-exclamation-triangle"></i> {{__('messages.profile.edituser_consequence')}}
|
<i class="fas fa-exclamation-triangle"></i> {{__('messages.profile.edituser_consequence')}}
|
||||||
@ -251,7 +251,7 @@
|
|||||||
|
|
||||||
<div class="form-group mt-3">
|
<div class="form-group mt-3">
|
||||||
|
|
||||||
<label>{{__('messages.reusable.roles')}}</label>
|
<label>{{__('Roles')}}</label>
|
||||||
<table class="table table-borderless">
|
<table class="table table-borderless">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
@ -274,7 +274,7 @@
|
|||||||
|
|
||||||
<x-slot name="modalFooter">
|
<x-slot name="modalFooter">
|
||||||
|
|
||||||
<button type="button" {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-warning" onclick="$('#updateUserForm').submit()"><i class="fa fa-exclamation-cicle"></i> {{__('messages.vacancy.save')}}</button>
|
<button type="button" {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-warning" onclick="$('#updateUserForm').submit()"><i class="fa fa-exclamation-cicle"></i> {{__('Save changes')}}</button>
|
||||||
|
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
@ -290,9 +290,9 @@
|
|||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
@if($profile->avatarPreference == 'gravatar')
|
@if($profile->avatarPreference == 'gravatar')
|
||||||
<img class="profile-user-img img-fluid img-circle" src="https://gravatar.com/avatar/{{md5($profile->user->email)}}" alt="User profile picture">
|
<img class="profile-user-img img-fluid img-circle" src="https://gravatar.com/avatar/{{md5($profile->user->email)}}" alt="{{ __('User profile picture') }}">
|
||||||
@else
|
@else
|
||||||
<img class="profile-user-img img-fluid img-circle" src="https://crafatar.com/avatars/{{$profile->user->uuid}}" alt="User profile picture">
|
<img class="profile-user-img img-fluid img-circle" src="https://crafatar.com/avatars/{{$profile->user->uuid}}" alt="{{ __('User profile picture') }}">
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -315,15 +315,15 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<p class="text-muted">{{$profile->profileShortBio}}</p>
|
<p class="text-muted">{{$profile->profileShortBio}}</p>
|
||||||
<p class="text-muted">{{__('messages.reusable.member_since', ['date' => $since])}}</p>
|
<p class="text-muted">{{__('Member since :date', ['date' => $since])}}</p>
|
||||||
@if (Auth::user()->hasRole('admin'))
|
@if (Auth::user()->hasRole('admin'))
|
||||||
<button type="button" class="btn btn-sm btn-info" onclick="$('#ipInfo').modal('show')">{{__('messages.reusable.lookup', ['ipAddress' => ($shouldCollect) ? $profile->user->originalIP : '0.0.0.0'])}}</button>
|
<button type="button" class="btn btn-sm btn-info" onclick="$('#ipInfo').modal('show')">{{__('Lookup :ipAddress', ['ipAddress' => ($shouldCollect) ? $profile->user->originalIP : '0.0.0.0'])}}</button>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($profile->user->is(Auth::user()))
|
@if ($profile->user->is(Auth::user()))
|
||||||
<button type="button" class="btn btn-sm btn-warning" onclick="window.location.href='{{route('showProfileSettings')}}'"><i class="fas fa-pencil-alt"></i></button>
|
<button type="button" class="btn btn-sm btn-warning" onclick="window.location.href='{{route('showProfileSettings')}}'"><i class="fas fa-pencil-alt"></i></button>
|
||||||
@elseif (Auth::user()->hasRole('admin') && $profile->user->isStaffMember())
|
@elseif (Auth::user()->hasRole('admin') && $profile->user->isStaffMember())
|
||||||
<button type="button" class="btn btn-sm btn-danger" onclick="$('#terminateUser').modal('show')">{{__('messages.profile.terminate_txt')}}</button>
|
<button type="button" class="btn btn-sm btn-danger" onclick="$('#terminateUser').modal('show')">{{__('Terminate Staff Member')}}</button>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -350,7 +350,7 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
<a class="collapsed d-block" data-toggle="collapse" href="#collapse-collapsed" aria-expanded="true" aria-controls="collapse-collapsed" id="heading-collapsed">
|
<a class="collapsed d-block" data-toggle="collapse" href="#collapse-collapsed" aria-expanded="true" aria-controls="collapse-collapsed" id="heading-collapsed">
|
||||||
<i class="fa fa-chevron-down pull-right"></i>
|
<i class="fa fa-chevron-down pull-right"></i>
|
||||||
{{__('messages.profile.acc_management')}}
|
{{__('Account management (admin)')}}
|
||||||
</a>
|
</a>
|
||||||
</h5>
|
</h5>
|
||||||
<div id="collapse-collapsed" class="collapse" aria-labelledby="heading-collapsed">
|
<div id="collapse-collapsed" class="collapse" aria-labelledby="heading-collapsed">
|
||||||
@ -369,9 +369,9 @@
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
@endif
|
@endif
|
||||||
<button class="btn btn-danger mb-2" onclick="$('#deleteAccount').modal('show')"><i class="fas fa-trash-alt"></i> {{__('messages.profile.delete_acc')}}</button><br>
|
<button class="btn btn-danger mb-2" onclick="$('#deleteAccount').modal('show')"><i class="fas fa-trash-alt"></i> {{__('Delete Account')}}</button><br>
|
||||||
|
|
||||||
<button class="btn btn-warning mb-2" onclick="$('#editUser').modal('show')"><i class="fas fa-pencil-alt"></i> {{__('messages.profile.edit_acc')}}</button><br>
|
<button class="btn btn-warning mb-2" onclick="$('#editUser').modal('show')"><i class="fas fa-pencil-alt"></i> {{__('Edit Account')}}</button><br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -393,7 +393,7 @@
|
|||||||
<div class="card-body text-center">
|
<div class="card-body text-center">
|
||||||
|
|
||||||
<a href="https://github.com/{{$github}}" class="pr-2 pl-2"><i class="fab fa-github fa-2x"></i></a>
|
<a href="https://github.com/{{$github}}" class="pr-2 pl-2"><i class="fab fa-github fa-2x"></i></a>
|
||||||
<a href="#" onclick="toastr.info('{{__('messages.profile.discord_tag', ['discordTag' => $discord])}}')" class="pr-2 pl-2"><i class="fab fa-discord fa-2x"></i></a>
|
<a href="#" onclick="toastr.info('{{__("User's Discord Tag: :discordTag", ['discordTag' => $discord])}}')" class="pr-2 pl-2"><i class="fab fa-discord fa-2x"></i></a>
|
||||||
<a href="https://twitter.com/{{$twitter}}" class="pr-2 pl-2"><i class="fab fa-twitter fa-2x"></i></a>
|
<a href="https://twitter.com/{{$twitter}}" class="pr-2 pl-2"><i class="fab fa-twitter fa-2x"></i></a>
|
||||||
<a href="https://instagram.com/{{$insta}}" class="pr-2 pl-2"><i class="fab fa-instagram fa-2x"></i></a>
|
<a href="https://instagram.com/{{$insta}}" class="pr-2 pl-2"><i class="fab fa-instagram fa-2x"></i></a>
|
||||||
|
|
||||||
@ -413,7 +413,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h4>{{__('messages.reusable.abt')}}</h4>
|
<h4>{{__('About')}}</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
@extends('adminlte::page')
|
@extends('adminlte::page')
|
||||||
|
|
||||||
@section('title', config('app.name') . ' | ' . __('messages.profile.account_settings'))
|
@section('title', config('app.name') . ' | ' . __('Account Settings'))
|
||||||
|
|
||||||
@section('content_header')
|
@section('content_header')
|
||||||
|
|
||||||
<h4>{{__('messages.reusable.profile')}} / {{__('messages.reusable.acc')}} / {{__('messages.reusable.settings')}}</h4>
|
<h4>{{__('My Profile')}} / {{__('Account')}} / {{__('Settings')}}</h4>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@ -36,19 +36,24 @@
|
|||||||
<li>{{ __('Name, Email and MC Username') }}</li>
|
<li>{{ __('Name, Email and MC Username') }}</li>
|
||||||
<li>{{ __('Your previous applications') }}</li>
|
<li>{{ __('Your previous applications') }}</li>
|
||||||
<li>{{ __('Your profile data and preferences') }}</li>
|
<li>{{ __('Your profile data and preferences') }}</li>
|
||||||
<li>{{ __('If you were a staff member:') }}</li>
|
<li>{{ __('Any other information stored in your user profile') }}</li>
|
||||||
<ul>
|
@role('reviewer')
|
||||||
<li>{{ __('Your comments') }}</li>
|
<li>{{ __('Since you are a staff member, the following is also removed:') }}</li>
|
||||||
<li>{{ __('Any votes') }}</li>
|
<ul>
|
||||||
<li>{{ __('Your roles') }}</li>
|
<li>{{ __('Your comments') }}</li>
|
||||||
</ul>
|
<li>{{ __('Any votes') }}</li>
|
||||||
|
<li>{{ __('Your roles') }}</li>
|
||||||
|
<li>{{ __('Your files on any team') }}</li>
|
||||||
|
</ul>
|
||||||
|
@endrole
|
||||||
</ul>
|
</ul>
|
||||||
<p>{{ __('What is not deleted:') }}</p>
|
<p>{{ __('What is not deleted:') }}</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>{{ __('Server logs of your visits, including IP addresses') }}</li>
|
<li>{{ __('Server logs of your visits, including IP addresses') }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>{{ __("Note: After you verify your identity, you'll receive an email with more information asking you to confirm this request.") }}</p>
|
<p>{{ __("Note: After you verify your identity, you'll receive an email with more information asking you to confirm or cancel this request.") }}</p>
|
||||||
|
<p>{{ __('Your account will be locked during this process.') }}</p>
|
||||||
|
|
||||||
<form id="deleteAccountForm" method="POST" action="{{ route('userDelete') }}">
|
<form id="deleteAccountForm" method="POST" action="{{ route('userDelete') }}">
|
||||||
|
|
||||||
@ -85,7 +90,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<x-modal id="twoFactorAuthModal" modal-label="2faLabel" modal-title="{{__('messages.2fa_txt')}}" include-close-button="true">
|
<x-modal id="twoFactorAuthModal" modal-label="2faLabel" modal-title="{{__('Two-Factor Authentication')}}" include-close-button="true">
|
||||||
|
|
||||||
@if($demoActive)
|
@if($demoActive)
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
@ -93,14 +98,14 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<h3><i class="fas fa-user-shield"></i> {{__('messages.profile.2fa_welcome')}}</h3>
|
<h3><i class="fas fa-user-shield"></i> {{__("We're glad you decided to increase your account's security!")}}</h3>
|
||||||
|
|
||||||
<p><b>{{__('messages.profile.supported_apps')}}</b></p>
|
<p><b>{{__('Supported apps you can install:')}}</b></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en"><i class="fab fa-google-play"></i> Google Authenticator</a></li>
|
<li><a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en"><i class="fab fa-google-play"></i> Google Authenticator</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>{{__('messages.profile.scan_code', ['scannable', 'QR'])}}</p>
|
<p>{{__('Scan the QR code with your preferred app, and then copy the code here.')}}</p>
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -118,7 +123,7 @@
|
|||||||
<form method="POST" action="{{ route('enable2FA') }}" id="enable2Fa">
|
<form method="POST" action="{{ route('enable2FA') }}" id="enable2Fa">
|
||||||
@csrf
|
@csrf
|
||||||
@method('PATCH')
|
@method('PATCH')
|
||||||
<label for="otp">{{__('messages.profile.otp')}}</label>
|
<label for="otp">{{__('One-time code')}}</label>
|
||||||
<input type="text" id="otp" name="otp" class="form-control" />
|
<input type="text" id="otp" name="otp" class="form-control" />
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
@ -131,7 +136,7 @@
|
|||||||
|
|
||||||
<x-slot name="modalFooter">
|
<x-slot name="modalFooter">
|
||||||
|
|
||||||
<button {{ ($demoActive) ? 'disabled' : '' }} type="button" class="btn btn-success" onclick="$('#enable2Fa').submit()"><i class="fas fa-key"></i> {{__('messages.profile.2fa_enable')}}</button>
|
<button {{ ($demoActive) ? 'disabled' : '' }} type="button" class="btn btn-success" onclick="$('#enable2Fa').submit()"><i class="fas fa-key"></i> {{__('Enable 2FA')}}</button>
|
||||||
|
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
@ -141,21 +146,21 @@
|
|||||||
|
|
||||||
@if (Auth::user()->has2FA())
|
@if (Auth::user()->has2FA())
|
||||||
|
|
||||||
<x-modal id="remove2FA" modal-label="remove2FALabel" modal-title="{{__('messages.profile.2fa_remove_extended')}}" include-close-button="true">
|
<x-modal id="remove2FA" modal-label="remove2FALabel" modal-title="{{__('Remove Two-Factor Authentication')}}" include-close-button="true">
|
||||||
|
|
||||||
<p><i class="fas fa-exclamation-triangle"></i> <b>{{__('messages.application_m.modal_confirm')}}</b> {{__('messages.profile.2fa_remove_consequence')}}</p>
|
<p><i class="fas fa-exclamation-triangle"></i> <b>{{__('Are you sure?')}}</b> {{__('Removing two-factor authentication will reduce the security of your account.')}}</p>
|
||||||
|
|
||||||
<form action="{{ route('disable2FA') }}" method="POST" id="disable2FA">
|
<form action="{{ route('disable2FA') }}" method="POST" id="disable2FA">
|
||||||
@csrf
|
@csrf
|
||||||
@method('PATCH')
|
@method('PATCH')
|
||||||
<label for="currentPassword">{{__('messages.profile.2fa_password_confirm')}}</label>
|
<label for="currentPassword">{{__('Confirm your password to continue')}}</label>
|
||||||
<input id="currentPassword" type="password" name="currentPassword" class="form-control" required />
|
<input id="currentPassword" type="password" name="currentPassword" class="form-control" required />
|
||||||
<p class="text-sm text-muted">{{__('messages.profile.2fa_password_confirm_exp')}}</p>
|
<p class="text-sm text-muted">{{__('To prevent unauthorized changes, a password is always required for sensitive operations.')}}</p>
|
||||||
|
|
||||||
<div class="form-group mt-2">
|
<div class="form-group mt-2">
|
||||||
|
|
||||||
<label for="consent">{{__('messages.profile.2fa_disable_consent')}}</label>
|
<label for="consent">{{__('"I understand the possible consequences of disabling two factor authentication"')}}</label>
|
||||||
<span><i>{{__('messages.reusable.confirm_click')}} </i> </span><input type="checkbox" name="consent" id="consent" required />
|
<span><i>{{__('Click to Confirm')}} </i> </span><input type="checkbox" name="consent" id="consent" required />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -163,7 +168,7 @@
|
|||||||
|
|
||||||
<x-slot name="modalFooter">
|
<x-slot name="modalFooter">
|
||||||
|
|
||||||
<button type="button" class="btn btn-danger" onclick="$('#disable2FA').submit()"><i class="fa fa-trash"></i> {{__('messages.profile.2fa_remove')}}</button>
|
<button type="button" class="btn btn-danger" onclick="$('#disable2FA').submit()"><i class="fa fa-trash"></i> {{__('Remove 2FA')}}</button>
|
||||||
|
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
@ -175,24 +180,24 @@
|
|||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 class="modal-title" id="authenticationFormLabel">{{__('messages.reusable.auth_req')}}</h5>
|
<h5 class="modal-title" id="authenticationFormLabel">{{__('Please authenticate')}}</h5>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p class="text-muted">{{__('messages.profile.security_lgotherdev')}}</p>
|
<p class="text-muted">{{__("For your security, you'll need to re-enter your password before logging out other devices. If you believe your account has been compromised, please change your password instead, as that will automatically log out anyone else who might using your account, and prevent them from signing back in.")}}</p>
|
||||||
|
|
||||||
<form method="POST" action="{{route('flushSessions')}}" id="flushSessions">
|
<form method="POST" action="{{route('flushSessions')}}" id="flushSessions">
|
||||||
@csrf
|
@csrf
|
||||||
<label for="reenter">{{__('messages.profile.password_reenter')}}</label>
|
<label for="reenter">{{__('Re-enter your password')}}</label>
|
||||||
<input type="password" name="currentPasswordFlush" id="currentPasswordFlush" class="form-control" autocomplete="current-password">
|
<input type="password" name="currentPasswordFlush" id="currentPasswordFlush" class="form-control" autocomplete="current-password">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-success" onclick="document.getElementById('flushSessions').submit()">{{__('messages.reusable.confirm')}}</button>
|
<button type="button" class="btn btn-success" onclick="document.getElementById('flushSessions').submit()">{{__('Confirm')}}</button>
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{__('messages.modal_close')}}</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{__('Close')}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -206,10 +211,9 @@
|
|||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<h3>{{__('messages.welcome_back')}} {{Auth::user()->name}}</h3>
|
<h3>{{__('Welcome back, :userNameValue!', ['userNameValue' => Auth::user()->name])}}</h3>
|
||||||
|
|
||||||
<p class="text-muted">{{Auth::user()->email}}</p>
|
<p class="text-muted">{{Auth::user()->email}}</p>
|
||||||
<a href="https://namemc.com/profile/{{Auth::user()->uuid}}" target="_blank">{{__('messages.reusable.view')}} @ NameMC</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -225,10 +229,10 @@
|
|||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
<p><i class="fas fa-exclamation-triangle"></i><b> {{ __('Your password has expired') }}</b></p>
|
<p><i class="fas fa-exclamation-triangle"></i><b> {{ __('Your password has expired') }}</b></p>
|
||||||
<p>
|
<p>
|
||||||
{{ __('You\'ve been redirected here because your password has expired. All users must change their password every :numDaysChangePw days. This is put in place to make sure user accounts remain secure.', ['numDaysChangePw' => \App\Facades\Options::getOption('password_expiry')]) }}
|
{{ __("You've been redirected here because your password has expired. All users must change their password every :numDaysChangePw days. This is put in place to make sure user accounts remain secure.", ['numDaysChangePw' => \App\Facades\Options::getOption('password_expiry')]) }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>{{ __('Please change update your password now. You won\'t be able to use the site until you do this.') }}</p>
|
<p>{{ __("Please change update your password now. You won't be able to use the site until you do this.") }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -241,16 +245,16 @@
|
|||||||
<div class="card-header tab-card-header">
|
<div class="card-header tab-card-header">
|
||||||
<ul class="nav nav-tabs card-header-tabs" id="myTab" role="tablist">
|
<ul class="nav nav-tabs card-header-tabs" id="myTab" role="tablist">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="accountSecurityTab" data-toggle="tab" href="#accountSecurity" role="tab" aria-controls="AccountSecurity" aria-selected="true">{{__('messages.profile.acc_security')}}</a>
|
<a class="nav-link" id="accountSecurityTab" data-toggle="tab" href="#accountSecurity" role="tab" aria-controls="AccountSecurity" aria-selected="true">{{__('Account Security')}}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="twofaTab" data-toggle="tab" href="#twofa" role="tab" aria-controls="TwoFa" aria-selected="false">{{__('messages.profile.2fa')}}</a>
|
<a class="nav-link" id="twofaTab" data-toggle="tab" href="#twofa" role="tab" aria-controls="TwoFa" aria-selected="false">{{__('Two Factor Authentication')}}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="sessionsTab" data-toggle="tab" href="#sessions" role="tab" aria-controls="Sessions" aria-selected="false">{{__('messages.profile.sessions')}}</a>
|
<a class="nav-link" id="sessionsTab" data-toggle="tab" href="#sessions" role="tab" aria-controls="Sessions" aria-selected="false">{{__('Active sessions')}}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="contactSettingsTab" data-toggle="tab" href="#contactSettings" role="tab" aria-controls="ContactSettings" aria-selected="false">{{__('messages.profile.contact_settings')}}</a>
|
<a class="nav-link" id="contactSettingsTab" data-toggle="tab" href="#contactSettings" role="tab" aria-controls="ContactSettings" aria-selected="false">{{__('Contact settings')}}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="dangerZoneTab" data-toggle="tab" href="#dangerZone" role="tab" aria-controls="DangerZone" aria-selected="false">{{ __('Danger Zone') }}</a>
|
<a class="nav-link" id="dangerZoneTab" data-toggle="tab" href="#dangerZone" role="tab" aria-controls="DangerZone" aria-selected="false">{{ __('Danger Zone') }}</a>
|
||||||
@ -266,49 +270,49 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<h5 class="card-title">{{__('messages.profile.change_password')}}</h5>
|
<h5 class="card-title">{{__('Change Password')}}</h5>
|
||||||
<p class="card-text">{{__('messages.profile.change_password_exp')}}</p>
|
<p class="card-text">{{__('Change your password here. This will log you out from all existing sessions for your security.')}}</p>
|
||||||
|
|
||||||
<form method="POST" action="{{route('changePassword')}}" id="changePassword">
|
<form method="POST" action="{{route('changePassword')}}" id="changePassword">
|
||||||
|
|
||||||
@csrf
|
@csrf
|
||||||
@method('PATCH')
|
@method('PATCH')
|
||||||
<label for="oldpassword">{{__('messages.profile.old_pass')}}</label>
|
<label for="oldpassword">{{__('Old Password')}}</label>
|
||||||
<input class="form-control" name="oldPassword" type="password" id="oldpassword" autocomplete="current-password">
|
<input class="form-control" name="oldPassword" type="password" id="oldpassword" autocomplete="current-password">
|
||||||
<p class="text-sm text-muted">{{__('messages.forgot_pw', ['link' => '<a href="/auth/password/reset">' . __('messages.reusable.here') . '</a>'])}}</p>
|
<p class="text-sm text-muted">{!! __('Forgot password? Reset it <a href="/auth/password/reset">here</a>!') !!}</p>
|
||||||
|
|
||||||
<div class="form-group mt-5">
|
<div class="form-group mt-5">
|
||||||
|
|
||||||
<label for="newpassword">{{__('messages.profile.new_pw')}}</label>
|
<label for="newpassword">{{__('New Password')}}</label>
|
||||||
<input type="password" name="newPassword" id="newpassword" class="form-control" autocomplete="new-password">
|
<input type="password" name="newPassword" id="newpassword" class="form-control" autocomplete="new-password">
|
||||||
|
|
||||||
<label for="newpassword_confirmation">{{__('messages.sronly_confirmpassword')}}</label>
|
<label for="newpassword_confirmation">{{__('Confirm Password')}}</label>
|
||||||
<input type="password" name="newPassword_confirmation" id="newpassword_confirmation" autocomplete="new-password" class="form-control">
|
<input type="password" name="newPassword_confirmation" id="newpassword_confirmation" autocomplete="new-password" class="form-control">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<button {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-success" type="button" onclick="document.getElementById('changePassword').submit()">{{__('messages.profile.change_password')}}</button>
|
<button {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-success" type="button" onclick="document.getElementById('changePassword').submit()">{{__('Change Password')}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade p-3" id="twofa" role="tabpanel" aria-labelledby="twofaTab">
|
<div class="tab-pane fade p-3" id="twofa" role="tabpanel" aria-labelledby="twofaTab">
|
||||||
<h5 class="card-title">{{__('messages.profile.2fa')}}</h5>
|
<h5 class="card-title">{{__('Two Factor Authentication')}}</h5>
|
||||||
<br />
|
<br />
|
||||||
@if (Auth::user()->has2FA())
|
@if (Auth::user()->has2FA())
|
||||||
<p>{{__('messages.profile.2fa_enable_success')}}</p>
|
<p>{{__('Hooray! 2FA is setup correctly for your account. A code will be asked each time you login.')}}</p>
|
||||||
<button type="button" class="btn btn-danger" onclick="$('#remove2FA').modal('show')"><i class="fa fa-ban"></i>{{__('messages.profile.2fa_remove')}}</button>
|
<button type="button" class="btn btn-danger" onclick="$('#remove2FA').modal('show')"><i class="fa fa-ban"></i>{{__('Remove 2FA')}}</button>
|
||||||
@else
|
@else
|
||||||
<p class="card-text"><b>{{__('messages.profile.2fa_avail')}}</b>{{__('messages.profile.2fa_avail_exp')}}</p>
|
<p class="card-text"><b>{{__('Two-factor auth is available for your account.')}}</b>{{__("Enabling this security option greatly increases your account's security in case your password ever gets stolen.")}}</p>
|
||||||
<button type="button" class="btn btn-primary" onclick="$('#twoFactorAuthModal').modal('show')">{{__('messages.profile.2fa_enable')}}</button>
|
<button type="button" class="btn btn-primary" onclick="$('#twoFactorAuthModal').modal('show')">{{__('Enable 2FA')}}</button>
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade p-3" id="sessions" role="tabpanel" aria-labelledby="sessionsTab">
|
<div class="tab-pane fade p-3" id="sessions" role="tabpanel" aria-labelledby="sessionsTab">
|
||||||
<h5 class="card-title">{{__('messages.profile.session_manager')}}</h5>
|
<h5 class="card-title">{{__('Session Manager')}}</h5>
|
||||||
<p class="card-text">{{__('messages.profile.terminate_others')}}</p>
|
<p class="card-text">{{__('Terminating other sessions is a mustif your account has been compromised.')}}</p>
|
||||||
<p>{{__('messages.profile.current_session', ['ipAddress' => (!$shouldCollect) ? '0.0.0.0 (censored)' : $ip])}}</p>
|
<p>{{__('Your current session: logged in from :ipAddress', ['ipAddress' => (!$shouldCollect) ? __('0.0.0.0 (censored)') : $ip])}}</p>
|
||||||
<button type="button" class="btn btn-warning" onclick="$('#authenticationForm').modal('show')">{{__('messages.profile.flush_session')}}</button>
|
<button type="button" class="btn btn-warning" onclick="$('#authenticationForm').modal('show')">{{__('Flush sessions')}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade p-3" id="contactSettings" role="tabpanel" aria-labelledby="contactSettingsTab">
|
<div class="tab-pane fade p-3" id="contactSettings" role="tabpanel" aria-labelledby="contactSettingsTab">
|
||||||
@if($demoActive)
|
@if($demoActive)
|
||||||
@ -316,8 +320,8 @@
|
|||||||
<p class="font-weight-bold"><i class="fa fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
<p class="font-weight-bold"><i class="fa fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<h5 class="card-title">{{__('messages.profile.contact_settings')}}</h5>
|
<h5 class="card-title">{{__('Contact settings')}}</h5>
|
||||||
<p class="card-text">{{__('messages.profile.personal_data_change')}}</p>
|
<p class="card-text">{{__('Need to change personal data? You can do so here.')}}</p>
|
||||||
|
|
||||||
<form method="POST" action="{{route('changeEmail')}}" id="changeEmail">
|
<form method="POST" action="{{route('changeEmail')}}" id="changeEmail">
|
||||||
|
|
||||||
@ -325,11 +329,11 @@
|
|||||||
@method('PATCH')
|
@method('PATCH')
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
<label for="oldEmail">{{__('messages.profile.current_email')}}</label>
|
<label for="oldEmail">{{__('Current Email Address')}}</label>
|
||||||
<input type="text" class="form-control" id="oldEmail" disabled value="{{Auth::user()->email}}">
|
<input type="text" class="form-control" id="oldEmail" disabled value="{{Auth::user()->email}}">
|
||||||
|
|
||||||
|
|
||||||
<label for="newEmail">{{__('messages.profile.new_email')}}</label>
|
<label for="newEmail">{{__('New Email Address')}}</label>
|
||||||
<input type="email" name="newEmail" class="form-control mb-3" id="newEmail">
|
<input type="email" name="newEmail" class="form-control mb-3" id="newEmail">
|
||||||
|
|
||||||
|
|
||||||
@ -337,13 +341,13 @@
|
|||||||
|
|
||||||
<div class="form-group mt-5">
|
<div class="form-group mt-5">
|
||||||
|
|
||||||
<label for="currentPassword">{{__('messages.profile.current_password')}}</label>
|
<label for="currentPassword">{{__('Current Password')}}</label>
|
||||||
<input type="password" name="currentPassword" class="form-control" id="currentPassword" autocomplete="current-password">
|
<input type="password" name="currentPassword" class="form-control" id="currentPassword" autocomplete="current-password">
|
||||||
<p class="text-sm text-muted">{{__('messages.profile.security_nochangepw')}}</p>
|
<p class="text-sm text-muted">{{__('For security reasons, you cannot make important account changes without confirming your password. You will also need to verify your new email address.')}}</p>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<button {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-success" type="button" onclick="document.getElementById('changeEmail').submit()">{{__('messages.profile.change_email')}}</button>
|
<button {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-success" type="button" onclick="document.getElementById('changeEmail').submit()">{{__('Change Email Address')}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -351,7 +355,7 @@
|
|||||||
<h5 class="card-title">{{ __('Danger Zone') }}</h5>
|
<h5 class="card-title">{{ __('Danger Zone') }}</h5>
|
||||||
<p class="card-text text-bold"><i class="fas fa-radiation"></i> {{ __('Careful! Actions in these tab might result in irreversible loss of data.') }}</p>
|
<p class="card-text text-bold"><i class="fas fa-radiation"></i> {{ __('Careful! Actions in these tab might result in irreversible loss of data.') }}</p>
|
||||||
|
|
||||||
<button onclick="$('#deleteAccountModal').modal('show')" rel="buttonTxtTooltip" data-toggle="tooltip" data-placement="top" title="This action will delete your account permanently." class="btn btn-danger" type="button"><i class="fas fa-user-slash"></i> Close Account</button>
|
<button onclick="$('#deleteAccountModal').modal('show')" rel="buttonTxtTooltip" data-toggle="tooltip" data-placement="top" title="{{ __('This action will delete your account permanently.') }}" class="btn btn-danger" type="button"><i class="fas fa-user-slash"></i> {{ __('Close Account') }}</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user