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,10 +1,10 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', config('app.name') . ' | ' . __('messages.devoptions'))
|
||||
@section('title', config('app.name') . ' | ' . __('Development & debug tools'))
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>{{__('messages.adm')}} / {{__('messages.devtools')}}</h4>
|
||||
<h4>{{__('Administration')}} / {{__('Developer Tools')}}</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
@if(!$applications->isEmpty())
|
||||
@foreach($applications as $application)
|
||||
|
||||
<option value="{{$application->id}}">{{__('messages.appid')}} {{$application->id}} ({{$application->user->name}})</option>
|
||||
<option value="{{$application->id}}">{{__('Application ID')}} {{$application->id}} ({{$application->user->name}})</option>
|
||||
|
||||
@endforeach
|
||||
@else
|
||||
<option value="null" disabled>{{__('messages.no_valid_app')}}</option>
|
||||
<option value="null" disabled>{{__('There are no valid applications')}}</option>
|
||||
@endif
|
||||
</select>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
</x-modal>
|
||||
|
||||
<x-modal id="confirmDispatchRejection" modal-label="confirmDispatchRejection" modal-title="{{__('messages.choose_app')}}" include-close-button="true">
|
||||
<x-modal id="confirmDispatchRejection" modal-label="confirmDispatchRejection" modal-title="{{__('Choose an application')}}" include-close-button="true">
|
||||
|
||||
<p>{{__('Please choose an application to force reject')}}</p>
|
||||
<p>{{ __('Note that this process overrides users\'s votes, and it also ignores any stages the application may be in.') }}</p>
|
||||
@@ -50,18 +50,18 @@
|
||||
@if(!$rejectApplications->isEmpty())
|
||||
@foreach($rejectApplications as $application)
|
||||
|
||||
<option value="{{$application->id}}">{{__('messages.appid')}} {{$application->id}} ({{$application->user->name}}) ({{ $application->applicationStatus }})</option>
|
||||
<option value="{{$application->id}}">{{__('Application ID')}} {{$application->id}} ({{$application->user->name}}) ({{ $application->applicationStatus }})</option>
|
||||
|
||||
@endforeach
|
||||
@else
|
||||
<option value="null" disabled>{{__('messages.no_valid_app')}}</option>
|
||||
<option value="null" disabled>{{__('There are no valid applications')}}</option>
|
||||
@endif
|
||||
</select>
|
||||
|
||||
</form>
|
||||
|
||||
<x-slot name="modalFooter">
|
||||
<button type="button" class="btn btn-danger" onclick="document.getElementById('forceRejection').submit()">{{__('messages.dispatch_event')}}</button>
|
||||
<button type="button" class="btn btn-danger" onclick="document.getElementById('forceRejection').submit()">{{__('Dispatch event now')}}</button>
|
||||
</x-slot>
|
||||
|
||||
</x-modal>
|
||||
@@ -71,8 +71,7 @@
|
||||
|
||||
<div class="alert alert-warning">
|
||||
|
||||
<i class="fa fa-exclamation-triangle"></i> <b>{{__('messages.warn')}}</b>
|
||||
<p>{{__('messages.devtools_warn')}}</p>
|
||||
<i class="fa fa-exclamation-triangle"></i> <b>{{__('Warning')}}</b>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -87,20 +86,20 @@
|
||||
<x-slot name="cardHeader">
|
||||
|
||||
</x-slot>
|
||||
<button data-toggle="tooltip" data-placement="top" title="Dispatches an approval event for the selected application" type="button" class="btn btn-primary" onclick="$('#confirmForceEventDispatch').modal('show')"><i class="fas fa-bullhorn"></i> Dispatch approval event</button>
|
||||
<button data-toggle="tooltip" data-placement="top" title="{{ __('Dispatches an approval event for the selected application') }}" type="button" class="btn btn-primary" onclick="$('#confirmForceEventDispatch').modal('show')"><i class="fas fa-bullhorn"></i> {{ __('Dispatch approval event') }}</button>
|
||||
|
||||
<button data-toggle="tooltip" data-placement="top" title="Dispatches a rejection event for the selected application" type="button" class="btn btn-primary ml-2" onclick="$('#confirmDispatchRejection').modal('show')"><i class="fas fa-bullhorn"></i> Dispatch rejection event</button>
|
||||
<button data-toggle="tooltip" data-placement="top" title="{{ __('Dispatches a rejection event for the selected application') }}" type="button" class="btn btn-primary ml-2" onclick="$('#confirmDispatchRejection').modal('show')"><i class="fas fa-bullhorn"></i> {{ __('Dispatch rejection event') }}</button>
|
||||
|
||||
|
||||
<form name="evalvotes" method="post" action="{{ route('devForceEvaluateVotes') }}" class="d-inline">
|
||||
@csrf
|
||||
<button data-toggle="tooltip" data-placement="top" title="Counts and processes all backlogged votes, for all applications." type="submit" class="btn btn-primary ml-3"><i class="fas fa-redo"></i> Count all votes now</button>
|
||||
<button data-toggle="tooltip" data-placement="top" title="{{ __('Counts and processes all backlogged votes, for all applications.') }}" type="submit" class="btn btn-primary ml-3"><i class="fas fa-redo"></i> {{ __('Count all votes now') }}</button>
|
||||
</form>
|
||||
|
||||
<form name="purgebans" method="post" action="{{ route('devPurgeExpired') }}" class="d-inline">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button data-toggle="tooltip" data-placement="top" title="Cleans the database of old, expired suspensions, therefore unbanning certain users." type="submit" class="btn btn-primary ml-3"><i class="far fa-trash-alt"></i> Purge expired bans</button>
|
||||
<button data-toggle="tooltip" data-placement="top" title="{{ __('Cleans the database of old, expired suspensions, therefore unbanning certain users.') }}" type="submit" class="btn btn-primary ml-3"><i class="far fa-trash-alt"></i> {{ __('Purge expired bans') }}</button>
|
||||
</form>
|
||||
|
||||
<x-slot name="cardFooter">
|
||||
|
Reference in New Issue
Block a user