refactor: refactored strings on user profile views
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', config('app.name') . ' | ' . __('messages.profile.account_settings'))
|
||||
@section('title', config('app.name') . ' | ' . __('Account Settings'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>{{__('messages.reusable.profile')}} / {{__('messages.reusable.acc')}} / {{__('messages.reusable.settings')}}</h4>
|
||||
<h4>{{__('My Profile')}} / {{__('Account')}} / {{__('Settings')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -36,19 +36,24 @@
|
||||
<li>{{ __('Name, Email and MC Username') }}</li>
|
||||
<li>{{ __('Your previous applications') }}</li>
|
||||
<li>{{ __('Your profile data and preferences') }}</li>
|
||||
<li>{{ __('If you were a staff member:') }}</li>
|
||||
<ul>
|
||||
<li>{{ __('Your comments') }}</li>
|
||||
<li>{{ __('Any votes') }}</li>
|
||||
<li>{{ __('Your roles') }}</li>
|
||||
</ul>
|
||||
<li>{{ __('Any other information stored in your user profile') }}</li>
|
||||
@role('reviewer')
|
||||
<li>{{ __('Since you are a staff member, the following is also removed:') }}</li>
|
||||
<ul>
|
||||
<li>{{ __('Your comments') }}</li>
|
||||
<li>{{ __('Any votes') }}</li>
|
||||
<li>{{ __('Your roles') }}</li>
|
||||
<li>{{ __('Your files on any team') }}</li>
|
||||
</ul>
|
||||
@endrole
|
||||
</ul>
|
||||
<p>{{ __('What is not deleted:') }}</p>
|
||||
<ul>
|
||||
<li>{{ __('Server logs of your visits, including IP addresses') }}</li>
|
||||
</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') }}">
|
||||
|
||||
@@ -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)
|
||||
<div class="alert alert-danger">
|
||||
@@ -93,14 +98,14 @@
|
||||
</div>
|
||||
@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>
|
||||
<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>
|
||||
|
||||
<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">
|
||||
@@ -118,7 +123,7 @@
|
||||
<form method="POST" action="{{ route('enable2FA') }}" id="enable2Fa">
|
||||
@csrf
|
||||
@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" />
|
||||
|
||||
</form>
|
||||
@@ -131,7 +136,7 @@
|
||||
|
||||
<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>
|
||||
|
||||
@@ -141,21 +146,21 @@
|
||||
|
||||
@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">
|
||||
@csrf
|
||||
@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 />
|
||||
<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">
|
||||
|
||||
<label for="consent">{{__('messages.profile.2fa_disable_consent')}}</label>
|
||||
<span><i>{{__('messages.reusable.confirm_click')}} </i> </span><input type="checkbox" name="consent" id="consent" required />
|
||||
<label for="consent">{{__('"I understand the possible consequences of disabling two factor authentication"')}}</label>
|
||||
<span><i>{{__('Click to Confirm')}} </i> </span><input type="checkbox" name="consent" id="consent" required />
|
||||
|
||||
</div>
|
||||
|
||||
@@ -163,7 +168,7 @@
|
||||
|
||||
<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>
|
||||
|
||||
@@ -175,24 +180,24 @@
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<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">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<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">
|
||||
@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">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<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-secondary" data-dismiss="modal">{{__('messages.modal_close')}}</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">{{__('Close')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -206,10 +211,9 @@
|
||||
|
||||
<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>
|
||||
<a href="https://namemc.com/profile/{{Auth::user()->uuid}}" target="_blank">{{__('messages.reusable.view')}} @ NameMC</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -225,10 +229,10 @@
|
||||
<div class="alert alert-warning">
|
||||
<p><i class="fas fa-exclamation-triangle"></i><b> {{ __('Your password has expired') }}</b></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>{{ __('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>
|
||||
@@ -241,16 +245,16 @@
|
||||
<div class="card-header tab-card-header">
|
||||
<ul class="nav nav-tabs card-header-tabs" id="myTab" role="tablist">
|
||||
<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 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 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 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 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>
|
||||
@@ -266,49 +270,49 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<h5 class="card-title">{{__('messages.profile.change_password')}}</h5>
|
||||
<p class="card-text">{{__('messages.profile.change_password_exp')}}</p>
|
||||
<h5 class="card-title">{{__('Change Password')}}</h5>
|
||||
<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">
|
||||
|
||||
@csrf
|
||||
@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">
|
||||
<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">
|
||||
|
||||
<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">
|
||||
|
||||
<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">
|
||||
|
||||
</div>
|
||||
|
||||
</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 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 />
|
||||
@if (Auth::user()->has2FA())
|
||||
<p>{{__('messages.profile.2fa_enable_success')}}</p>
|
||||
<button type="button" class="btn btn-danger" onclick="$('#remove2FA').modal('show')"><i class="fa fa-ban"></i>{{__('messages.profile.2fa_remove')}}</button>
|
||||
<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>{{__('Remove 2FA')}}</button>
|
||||
@else
|
||||
<p class="card-text"><b>{{__('messages.profile.2fa_avail')}}</b>{{__('messages.profile.2fa_avail_exp')}}</p>
|
||||
<button type="button" class="btn btn-primary" onclick="$('#twoFactorAuthModal').modal('show')">{{__('messages.profile.2fa_enable')}}</button>
|
||||
<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')">{{__('Enable 2FA')}}</button>
|
||||
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade p-3" id="sessions" role="tabpanel" aria-labelledby="sessionsTab">
|
||||
<h5 class="card-title">{{__('messages.profile.session_manager')}}</h5>
|
||||
<p class="card-text">{{__('messages.profile.terminate_others')}}</p>
|
||||
<p>{{__('messages.profile.current_session', ['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>
|
||||
<h5 class="card-title">{{__('Session Manager')}}</h5>
|
||||
<p class="card-text">{{__('Terminating other sessions is a mustif your account has been compromised.')}}</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')">{{__('Flush sessions')}}</button>
|
||||
</div>
|
||||
<div class="tab-pane fade p-3" id="contactSettings" role="tabpanel" aria-labelledby="contactSettingsTab">
|
||||
@if($demoActive)
|
||||
@@ -316,8 +320,8 @@
|
||||
<p class="font-weight-bold"><i class="fa fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<h5 class="card-title">{{__('messages.profile.contact_settings')}}</h5>
|
||||
<p class="card-text">{{__('messages.profile.personal_data_change')}}</p>
|
||||
<h5 class="card-title">{{__('Contact settings')}}</h5>
|
||||
<p class="card-text">{{__('Need to change personal data? You can do so here.')}}</p>
|
||||
|
||||
<form method="POST" action="{{route('changeEmail')}}" id="changeEmail">
|
||||
|
||||
@@ -325,11 +329,11 @@
|
||||
@method('PATCH')
|
||||
<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}}">
|
||||
|
||||
|
||||
<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">
|
||||
|
||||
|
||||
@@ -337,13 +341,13 @@
|
||||
|
||||
<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">
|
||||
<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>
|
||||
</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>
|
||||
|
||||
|
||||
@@ -351,7 +355,7 @@
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
|
Reference in New Issue
Block a user