refactor: refactored administration strings
This commit also removes support for French and Spanish, and adds support for Brazillian Portuguese. Additionally, the accidental leave protection on the form builder has also been fixed.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', config('app.name') . ' | ' . __('messages.settings.settings'))
|
||||
@section('title', config('app.name') . ' | ' . __('Settings'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
@if (Auth::user()->hasAnyRole('admin'))
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.settings.settings')}}</h4>
|
||||
<h4>{{__('Administration')}} / {{__('Settings')}}</h4>
|
||||
@else
|
||||
<h4>{{__('messages.reusable.no_access')}}</h4>
|
||||
<h4>{{__('Application access denied')}}</h4>
|
||||
@endif
|
||||
|
||||
@stop
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
@if($errors->any())
|
||||
@foreach ($errors->all() as $error)
|
||||
<script>toastr.error('{{$error}}', 'Validation error!')</script>
|
||||
<script>toastr.error('{{$error}}', '{{__('Validation error!')}}')</script>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@@ -43,38 +43,38 @@
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col">
|
||||
|
||||
<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
||||
<i class="fas fa-info-circle"></i> <b>Available security policies</b> (current policy: {{ $security['secPolicy'] }})
|
||||
|
||||
<p><b>Disabled:</b> No security policy will be enforced. This is insecure.</p>
|
||||
|
||||
<div class="col">
|
||||
|
||||
<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
||||
<i class="fas fa-info-circle"></i> {!! __('<b>Available security policies</b> (current policy: :currentPolicySettingValue)', ['currentPolicySettingValue' => $security['secPolicy']]) !!}
|
||||
|
||||
<p>{!! __('<b>Disabled:</b> No security policy will be enforced. This is insecure.') !!}</p>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col">
|
||||
<p><b>Low:</b> Good choice for low-traffic websites, e.g. community with less than 100 members.</p>
|
||||
<p>{!! __("<b>Low:</b> Good choice for low-traffic websites, e.g. community with less than 100 members.") !!}</p>
|
||||
<ul>
|
||||
<li>Minimum 10 characters</li>
|
||||
<li>{{ __('Minimum 10 characters') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col">
|
||||
<p><b>Medium (recommended):</b> Standard for most websites.</p>
|
||||
<p>{!! __('<b>Medium (recommended):</b> Standard for most websites.') !!}</p>
|
||||
<ul>
|
||||
<li>Minimum 12 characters</li>
|
||||
<li>Must contain special characters</li>
|
||||
<li>Must contain upper and lower case characters</li>
|
||||
<li>{{ __('Minimum 12 characters') }}</li>
|
||||
<li>{{ __('Must contain special characters') }}</li>
|
||||
<li>{{ __('Must contain upper and lower case characters') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col">
|
||||
<p><b>(╯°□°)╯︵ ┻━┻:</b> For security aficionados. More of a nuisance than a good policy.</p>
|
||||
<p>{!! __('<b>(╯°□°)╯︵ ┻━┻:</b> For security aficionados. More of a nuisance than a good policy.') !!}</p>
|
||||
<ul>
|
||||
<li>Minimum 20 characters</li>
|
||||
<li>Same as Medium, but: </li>
|
||||
<li>{{ __('Minimum 20 characters') }}</li>
|
||||
<li>{{ __('Same as Medium, but: ') }}</li>
|
||||
<ul>
|
||||
<li>Must contain numerical characters</li>
|
||||
<li>{{ __('Must contain numerical characters') }}</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -85,7 +85,7 @@
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -95,17 +95,17 @@
|
||||
<div class="row">
|
||||
|
||||
<div class="col">
|
||||
|
||||
<div class="alert alert-danger">
|
||||
|
||||
<p><b><i class="fas fa-exclamation-triangle"></i> DANGER: </b> Insecure security policy</p>
|
||||
|
||||
<p>Your current password security policy is set to <b>off</b>. This allows users to choose potentially unsafe passwords. We strongly recommend you update this value to <b>Medium</b>.</p>
|
||||
|
||||
<div class="alert alert-danger">
|
||||
|
||||
<p>{!! __('<b><i class="fas fa-exclamation-triangle"></i> DANGER: </b> Insecure security policy') !!}</p>
|
||||
|
||||
<p>{!! __('Your current password security policy is set to <b>off</b>. This allows users to choose potentially unsafe passwords. We strongly recommend you update this value to <b>Medium</b>.') !!}</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@endif
|
||||
@@ -117,8 +117,8 @@
|
||||
<div class="card">
|
||||
|
||||
<div class="card-header">
|
||||
<h3>{{__('messages.settings.settings_header')}}</h3>
|
||||
<p>{{__('messages.settings.settings_p')}}</p>
|
||||
<h3>{{__('Notification settings')}}</h3>
|
||||
<p>{{__('Change which notifications are sent here.')}}</p>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -137,7 +137,7 @@
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<button type="button" class="btn btn-success" onclick="$('#settings').submit()"><i class="fa fa-save"></i> {{__('messages.vacancy.save')}}</button>
|
||||
<button type="button" class="btn btn-success" onclick="$('#settings').submit()"><i class="fa fa-save"></i> {{__('Save changes')}}</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -145,12 +145,12 @@
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
|
||||
|
||||
<div class="card">
|
||||
|
||||
<div class="card-header">
|
||||
<h3>Security Settings</h3>
|
||||
<p>Here, you can configure security settings for the app, for all users.</p>
|
||||
<h3>{{ __('Security Settings') }}</h3>
|
||||
<p>{{ __('Here, you can configure security settings for the app, for all users.') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -160,44 +160,44 @@
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<label for="policy">Password Security Policy</label>
|
||||
<label for="policy">{{__('Password Security Policy')}}</label>
|
||||
<select class="custom-select form-control" name="secPolicy">
|
||||
|
||||
<option value="nil" disabled>Choose a security policy</option>
|
||||
<option value="off" {{ ($security['secPolicy'] == 'off') ? 'selected' : '' }}>Disabled (default)</option>
|
||||
<option value="low" {{ ($security['secPolicy'] == 'low') ? 'selected' : '' }}>Low</option>
|
||||
<option value="medium" {{ ($security['secPolicy'] == 'medium') ? 'selected' : '' }}>Medium</option>
|
||||
<option value="high" {{ ($security['secPolicy'] == 'high') ? 'selected' : '' }}>High (╯°□°)╯︵ ┻━┻</option>
|
||||
|
||||
<option value="nil" disabled>{{ __('Choose a security policy') }}</option>
|
||||
<option value="off" {{ ($security['secPolicy'] == 'off') ? 'selected' : '' }}>{{ __('Disabled (default)') }}</option>
|
||||
<option value="low" {{ ($security['secPolicy'] == 'low') ? 'selected' : '' }}>{{ __('Low') }}</option>
|
||||
<option value="medium" {{ ($security['secPolicy'] == 'medium') ? 'selected' : '' }}>{{ __('Medium') }}</option>
|
||||
<option value="high" {{ ($security['secPolicy'] == 'high') ? 'selected' : '' }}>{{ __('High (╯°□°)╯︵ ┻━┻') }}</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="graceperiod">Grace period for 2FA requirement (above <code>reviewer</code>)</label>
|
||||
<label for="graceperiod">{!! __('Grace period for 2FA requirement (above <code>reviewer</code>)') !!}</label>
|
||||
<input type="text" class="form-control" id="graceperiod" placeholder="time in days" name="graceperiod" value="{{$security['graceperiod']}}">
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> Users will be locked out after this time period if they fail to enable 2FA. Leave empty to disable.</p>
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ __('Users will be locked out after this time period if they fail to enable 2FA. Leave empty to disable.') }}</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="pwExpiry">Password Expiry Control</label>
|
||||
<label for="pwExpiry">{{ __('Password Expiry Control') }}</label>
|
||||
<input type="text" class="form-control" id="pwExpiry" placeholder="time in days" name="pwExpiry" value="{{ $security['pwExpiry'] }}">
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> Leave this field zeroed to disable. Users will be forced to reset their password after the specified time.</p>
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ __('Leave this field zeroed to disable. Users will be forced to reset their password after the specified time.') }}</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group form-check">
|
||||
<input type="hidden" name="enforce2fa" value="0">
|
||||
<input type="checkbox" name="enforce2fa" value="1" id="enforce2fa" class="form-check-input" {{ $security['enforce2fa'] == true ? 'checked' : '' }}>
|
||||
<label for="enforceAdmin2fa">Force roles above <code>reviewer</code> to use two factor authentication?</label>
|
||||
</div>
|
||||
<label for="enforceAdmin2fa">{{ __('Force roles above <code>reviewer</code> to use two factor authentication?') }}</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-check">
|
||||
<input type="hidden" name="requirePMC" value="0">
|
||||
<input type="checkbox" name="requirePMC" value="1" id="requirePMC" class="form-check-input" {{ $security['requiresPMC'] == true ? 'checked' : '' }}>
|
||||
<label for="requirePMC">Require a valid game license to signup?</label>
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> Choose a game in the section below, if applicable.</p>
|
||||
<label for="requirePMC">{{ __('Require a valid game license to signup?') }}</label>
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ __('Choose a game in the section below, if applicable.') }}</p>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -205,22 +205,22 @@
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<button onclick="$('#security').submit()" type="button" class="btn btn-success"><i class="fas fa-save"></i> Save Changes</button>
|
||||
<button onclick="$('#security').submit()" type="button" class="btn btn-success"><i class="fas fa-save"></i> {{ __('Save Changes') }}</button>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row mt-3">
|
||||
<div class="row mt-3">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
|
||||
|
||||
<div class="card-header">
|
||||
<h4>Game Integration</h4>
|
||||
<p>In this section, you can choose which game your community plays. This gives you the ability to limit signups to users with valid game accounts, keeping pirates out. It also swaps front page images with images for that game, if you haven't customised them. Leave unselected if your community does not revolve around a game.</p>
|
||||
<h4>{{ __('Game Integration') }}</h4>
|
||||
<p>{{ __("In this section, you can choose which game your community plays. This gives you the ability to limit signups to users with valid game accounts, keeping pirates out. It also swaps front page images with images for that game, if you haven't customised them. Leave unselected if your community does not revolve around a game.") }}</p>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -258,15 +258,15 @@
|
||||
<img alt="Gmod Logo" height="150px" width="150px" src="/img/se.png">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<button onclick="$('#gamePrefForm').submit()" type="button" class="btn btn-success"><i class="fas fa-save"></i> Save Changes</button>
|
||||
<button onclick="$('#gamePrefForm').submit()" type="button" class="btn btn-success"><i class="fas fa-save"></i> {{ __('Save Changes') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -274,39 +274,39 @@
|
||||
|
||||
|
||||
<div class="row mt-3">
|
||||
|
||||
|
||||
<div class="col">
|
||||
|
||||
|
||||
<div class="card">
|
||||
|
||||
|
||||
<div class="card-header">
|
||||
|
||||
<h4>Integration with 3rd party services</h4>
|
||||
<p>Configure any of the thirdy party services below to facilitate recruiting staff for specific services.</p>
|
||||
|
||||
<h4>{{ __('Integration with 3rd party services') }}</h4>
|
||||
<p>{{ __('Configure any of the thirdy party services below to facilitate recruiting staff for specific services.') }}</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card-body">
|
||||
<div class="form-group mb-3">
|
||||
<div class="row text-center">
|
||||
<div class="row text-center">
|
||||
<div class="col mt-4">
|
||||
<img src="/img/discord-mark-white.svg" width="270px" alt="Discord Workmark Logo - Black"><br>
|
||||
<button class="btn btn-primary mt-4" type="button"><i class="fab fa-discord"></i> Configure Integration</button>
|
||||
<button class="btn btn-primary mt-4" type="button"><i class="fab fa-discord"></i> {{ __('Configure Integration') }}</button>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<img src="/img/reddit-mark-white.svg" width="250px" alt="Reddit Wordmark Logo - OrangeRed"><br>
|
||||
<button class="btn btn-primary mt-4" type="button"><i class="fab fa-reddit"></i> Configure Integration</button>
|
||||
<button class="btn btn-primary mt-4" type="button"><i class="fab fa-reddit"></i> {{ __('Configure Integration') }}</button>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
|
||||
<p class="text-muted text-bold"><i class="fas fa-exclamation-triangle"></i><b> Disclaimer: </b> {{ config('app.name') }} is not affiliated with and does not endorse the brands displayed above.</p>
|
||||
|
||||
<p class="text-muted text-bold"><i class="fas fa-exclamation-triangle"></i><b> {{ __('Disclaimer:') }} </b> {{ __(':siteNameSettingValue is not affiliated with and does not endorse the brands displayed above.', ['siteNameSettingValue' => config('app.name')]) }}</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user