Add application management localization options

This commit is contained in:
2020-09-01 14:40:41 +01:00
parent c58b5b56d7
commit 4a09fa581d
6 changed files with 198 additions and 104 deletions

View File

@@ -1,10 +1,10 @@
@extends('adminlte::page')
@section('title', 'Raspberry Network | Profile')
@section('title', config('app.name') . ' | ' . __('messages.application_m.all_apps'))
@section('content_header')
<h4>Application Management / All Applications</h4>
<h4>{{__('messages.application_m.title')}} / {{__('messages.application_m.all_apps')}}</h4>
@stop
@@ -20,20 +20,20 @@
@foreach($applications as $application)
<x-modal id="deletionConfirmationModal-{{ $application->id }}" modal-label="deletion-{{ $application->id }}" modal-title="Are you sure?" include-close-button="true">
<x-modal id="deletionConfirmationModal-{{ $application->id }}" modal-label="deletion-{{ $application->id }}" modal-title="{{__('messages.application_m.modal_confirm')}}" include-close-button="true">
<h4><i class="fas fa-exclamation-triangle"></i> Really delete this?</h3>
<h4><i class="fas fa-exclamation-triangle"></i> {{__('messages.application_m.really_delete')}}</h4>
<p>
This action is <b>IRREVERSBILE.</b>
{{__('messages.application_m.delete_action_warning', ['consequence' => '<b>' . __('messages.application_m.consequence_irreversible') .'</b>'])}}
</p>
<p>Comments, appointments and any votes attached to this application WILL be deleted too. Please make sure this application really needs to be deleted.</p>
<p>{{__('messages.application_m.delete_explainer')}}</p>
<x-slot name="modalFooter">
<form method="POST" action="{{ route('deleteApplication', ['application' => $application->id]) }}">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-danger"><i class="fas fa-check-double"></i> Confirm</button>
<button type="submit" class="btn btn-danger"><i class="fas fa-check-double"></i> {{__('messages.reusable.confirm_plain')}}</button>
</form>
@@ -61,9 +61,9 @@
<div class="col">
<h3><i class="fas fa-info-circle"></i> You're looking at all applications ever received</h3>
<h3><i class="fas fa-info-circle"></i> {{__('messages.application_m.all_apps_header')}}</h3>
<p>
Here, you have quick and easy access to all applications ever received by the system.
{{__('messages.application_m.all_apps_exp')}}
</p>
</div>
@@ -90,16 +90,16 @@
<div class="row">
<div class="col-3">
<h3>All applications</h3>
<h3>{{__('messages.application_m.all_apps')}}</h3>
</div>
<div class="col">
<div class="navbtn right" style="whitespace: nowrap">
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('staffPendingApps') }}'"><i class="far fa-folder-open"></i> Outstanding Applications</button>
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('pendingInterview') }}'"><i class="fas fa-microphone-alt"></i> Interview Queue</button>
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('peerReview') }}'"><i class="fas fa-search"></i> Peer Review</button>
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('staffPendingApps') }}'"><i class="far fa-folder-open"></i> {{__('messages.application_m.outstanding_apps')}}</button>
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('pendingInterview') }}'"><i class="fas fa-microphone-alt"></i> {{__('messages.application_m.interview_q')}}</button>
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('peerReview') }}'"><i class="fas fa-search"></i> {{__('messages.application_m.p_review')}}</button>
</div>
@@ -131,10 +131,10 @@
<tr>
<th>#</th>
<th>Applicant</th>
<th>Status</th>
<th>Date</th>
<th>Actions</th>
<th>{{__('messages.application_m.applicant')}}</th>
<th>{{__('messages.reusable.status')}}</th>
<th>{{__('messages.reusable.date')}}</th>
<th>{{__('messages.reusable.actions')}}</th>
</tr>
</thead>
@@ -151,48 +151,48 @@
@case('STAGE_SUBMITTED')
<span class="badge badge-primary"><i class="far fa-clock"></i> Outstanding (Submitted)</span>
<span class="badge badge-primary"><i class="far fa-clock"></i> {{__('messages.application_m.outstanding_subm')}}</span>
@break
@case('STAGE_PEERAPPROVAL')
<span class="badge badge-warning"><i class="fas fa-vote-yea"></i> Peer Approval</span>
<span class="badge badge-warning"><i class="fas fa-vote-yea"></i> {{__('messages.application_m.p_review')}}</span>
@break
@case('STAGE_INTERVIEW')
<span class="badge badge-warning"><i class="fas fa-microphone-alt"></i> Interview</span>
<span class="badge badge-warning"><i class="fas fa-microphone-alt"></i> {{__('messages.application_m.interview_p')}}</span>
@break
@case('STAGE_INTERVIEW_SCHEDULED')
<span class="badge badge-warning"><i class="far fa-clock"></i>Interview Scheduled</span>
<span class="badge badge-warning"><i class="far fa-clock"></i>{{__('messages.application_m.interview_s')}}</span>
@break
@case('APPROVED')
<span class="badge badge-success"><i class="fas fa-check"></i> Approved</span>
<span class="badge badge-success"><i class="fas fa-check"></i> {{__('messages.application_m.approved')}}</span>
@break
@case('DENIED')
<span class="badge badge-danger"><i class="fas fa-times"></i> Denied</span>
<span class="badge badge-danger"><i class="fas fa-times"></i> {{__('messages.application_m.denied')}}</span>
@break;
@default
<span class="badge badge-secondary"><i class="fas fa-question-circle"></i> Unknown</span>
<span class="badge badge-secondary"><i class="fas fa-question-circle"></i> {{__('messages.application_m.denied')}}</span>
@endswitch
</td>
<td>{{ $application->created_at }}</td>
<td>
<button type="button" class="btn btn-success btn-sm" onclick="window.location.href='{{ route('showUserApp', ['application' => $application->id]) }}'"><i class="fas fa-eye"></i> View</button>
<button type="button" class="btn btn-danger btn-sm ml-2" onclick="$('#deletionConfirmationModal-{{ $application->id }}').modal('show')"><i class="fa fa-trash"></i> Delete</button>
<button type="button" class="btn btn-success btn-sm" onclick="window.location.href='{{ route('showUserApp', ['application' => $application->id]) }}'"><i class="fas fa-eye"></i> {{__('messages.reusable.view')}}</button>
<button type="button" class="btn btn-danger btn-sm ml-2" onclick="$('#deletionConfirmationModal-{{ $application->id }}').modal('show')"><i class="fa fa-trash"></i> {{__('messages.reusable.delete')}}</button>
</td>
</tr>
@@ -206,10 +206,9 @@
<div class="alert alert-warning">
<h3><i class="fas fa-question-circle"></i> There are no applications here</h3>
<h3><i class="fas fa-question-circle"></i> {{__('messages.application_m.no_apps')}}</h3>
<p>
We couldn't find any applications. Maybe no one has applied yet?
Please try again later.
{{__('messages.application_m.no_apps_exp')}}
</p>
</div>

View File

@@ -1,10 +1,10 @@
@extends('adminlte::page')
@section('title', 'Raspberry Network | Applications')
@section('title', config('app.name') . ' | ' . __('messages.application_m.int_applications'))
@section('content_header')
<h4>Application Management / Pending Interviews</h4>
<h4>{{__('messages.application_m.title')}} / {{__('messages.application_m.interview_q')}}</h4>
@stop
@@ -17,7 +17,7 @@
<div class="small-box bg-warning">
<div class="inner">
<h3>{{$applications->count()}}</h3>
<p>Pending Interviews</p>
<p>{{__('messages.application_m.interview_q')}}</p>
</div>
<div class="icon">
<i class="fas fa-microphone-alt"></i>
@@ -31,7 +31,7 @@
<div class="small-box bg-success">
<div class="inner">
<h3>{{$finishedCount}}</h3>
<p>Finished Interviews</p>
<p>{{__('messages.application_m.finished_int')}}</p>
</div>
<div class="icon">
<i class="fas fa-check"></i>
@@ -48,7 +48,7 @@
<div class="card">
<div class="card-header">
<div class="card-title"><h3>Schedule Interviews</h3></div>
<div class="card-title"><h3>{{__('messages.application_m.schedule_int')}}</h3></div>
</div>
<div class="card-body">
@@ -61,9 +61,9 @@
<tr>
<th>#</th>
<th>Interviewee</th>
<th>Status</th>
<th>Actions</th>
<th>{{__('messages.application_m.interviewee')}}</th>
<th>{{__('messages.reusable.status')}}</th>
<th>{{__('messages.reusable.actions')}}</th>
</tr>
</thead>
@@ -75,10 +75,10 @@
<tr>
<td>{{$application->id}}</td>
<td>{{$application->user->name}}</td>
<td><span class="badge-warning badge">{{($application->applicationStatus == 'STAGE_INTERVIEW') ? 'Pending Interview' : 'Unknown Status'}}</span></td>
<td><span class="badge-warning badge">{{($application->applicationStatus == 'STAGE_INTERVIEW') ? __('messages.application_m.pending_int') : __('messages.application_m.unknown_stat')}}</span></td>
<td>
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fa fa-eye"></i> View</button>
<button type="button" class="btn btn-sm btn-warning"><i class="fa fa-clock"></i> Schedule</button>
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fa fa-eye"></i> {{__('messages.reusable.view')}}</button>
<button type="button" class="btn btn-sm btn-warning"><i class="fa fa-clock"></i> {{__('messages.application_m.schedule')}}</button>
</td>
</tr>
@@ -92,8 +92,8 @@
<div class="alert alert-danger">
<b><i class="fa fa-exclamation-triangle"></i> No Applications Pending Interview</b>
<p>There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.</p>
<b><i class="fa fa-exclamation-triangle"></i> {{__('messages.application_m.no_apps_pending_int')}}</b>
<p>{{__('messages.application_m.no_apps_pending_int_exp')}}</p>
</div>
@endif
@@ -110,7 +110,7 @@
<div class="card-header">
<div class="card-title"><h3>My Upcoming Interviews</h3></div>
<div class="card-title"><h3>{{__('messages.application_m.upcoming_int')}}</h3></div>
</div>
@@ -124,11 +124,11 @@
<tr>
<th>#</th>
<th>Interviewee</th>
<th>Status</th>
<th>Time & Date</th>
<th>Location</th>
<th>Actions</th>
<th>{{__('messages.application_m.interviewee')}}</th>
<th>{{__('messages.reusable.status')}}</th>
<th>{{__('messages.reusable.datetime')}}</th>
<th>{{__('messages.reusable.location')}}</th>
<th>{{__('messages.reusable.actions')}}</th>
</tr>
@@ -142,16 +142,16 @@
<td>{{$upcomingApp->id}}</td>
<td>{{$upcomingApp->user->name}}</td>
@if (is_null($upcomingApp->appointment))
<td><span class="badge badge-warning"><i class="fa fa-question-circle"></i>Pending Schedule</span></td>
<td>None yet</td>
<td><span class="badge badge-warning"><i class="fa fa-question-circle"></i>Pending Schedule</span></td>
<td><span class="badge badge-warning"><i class="fa fa-question-circle"></i>{{__('messages.application_m.pending_schedule')}}</span></td>
<td>{{__('messages.reusable.none_yet')}}</td>
<td><span class="badge badge-warning"><i class="fa fa-question-circle"></i>{{__('messages.application_m.pending_int')}}</span></td>
@else
<td><span class="badge badge-success"><i class="fa fa-check"></i> {{ucfirst(strtolower($upcomingApp->appointment->appointmentStatus))}}</span></td>
<td>{{$upcomingApp->appointment->appointmentDate}}</td>
<td><span class="badge badge-success"><i class="fa fa-check"></i> {{ucfirst(strtolower($upcomingApp->appointment->appointmentLocation))}}</span></td>
@endif
<td>
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $upcomingApp->id])}}'"><i class="fa fa-eye"></i> View Details</button>
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $upcomingApp->id])}}'"><i class="fa fa-eye"></i> {{__('messages.reusable.view_c')}}</button>
</td>
</tr>
@@ -164,9 +164,8 @@
@else
<x-alert alert-type="danger">
<p><i class="fa fa-exclamation-triangle"></i><b>There are no upcoming interviews</b></p>
Please check other queues down in the application process. Applicants here may have already been interviewed.
<p><i class="fa fa-exclamation-triangle"></i><b>{{__('messages.application_m.no_upcoming')}}</b></p>
{{__('messages.application_m.no_upcoming_exp')}}
</x-alert>
@endif
@@ -183,8 +182,8 @@
<div class="col text-center">
<button type="button" class="btn btn-success mr-3" onclick="window.location.href='{{route('staffPendingApps')}}'">View Outstanding Queue</button>
<button type="button" class="btn btn-success mr-3" onclick="window.location.href='{{route('peerReview')}}'">View Approval Queue</button>
<button type="button" class="btn btn-success mr-3" onclick="window.location.href='{{route('staffPendingApps')}}'">{{__('messages.application_m.view_outstanding_queue')}}</button>
<button type="button" class="btn btn-success mr-3" onclick="window.location.href='{{route('peerReview')}}'">{{__('messages.application_m.view_approval_queue')}}</button>
</div>

View File

@@ -1,10 +1,10 @@
@extends('adminlte::page')
@section('title', 'Raspberry Network | Profile')
@section('title', config('app.name') . ' | ' . __('messages.application_m.title'))
@section('content_header')
<h4>Application Management / Outstanding Applications</h4>
<h4>{{__('messages.application_m.title')}} / {{__('messages.application_m.outstanding_apps')}}</h4>
@stop
@@ -21,8 +21,8 @@
<div class="col">
<div class="callout callout-info">
<p>Seeing no applications? Check with an Administrator to make sure that there are available open positions.</p>
<p>Advertising on relevant forums made for this purpose is also a good idea.</p>
<p>{{__('messages.application_m.no_outstanding')}}</p>
<p>{{__('messages.application_m.no_outstanding_exp')}}</p>
</div>
</div>
@@ -36,7 +36,7 @@
<div class="card-header">
<div class="card-title"><h4>Outstanding Applications</h4></div>
<div class="card-title"><h4>{{__('messages.application_m.outstanding_apps')}}</h4></div>
</div>
@@ -49,11 +49,11 @@
<tr>
<th>#</th>
<th>Applicant Name</th>
<th>Status</th>
<th>Application Date</th>
<th>Last Updated</th>
<th>Actions</th>
<th>{{__('messages.application_m.applicant_name')}}</th>
<th>{{__('messages.reusable.status')}}</th>
<th>{{__('messages.application_m.application_date')}}</th>
<th>{{__('messages.last_updated')}}</th>
<th>{{__('messages.reusable.status')}}</th>
</tr>
</thead>
@@ -66,11 +66,11 @@
<td>{{$application->id}}</td>
<td>{{$application->user->name}}</td>
<td><span class="badge badge-warning">{{($application->applicationStatus == 'STAGE_SUBMITTED') ? 'Outstanding' : 'Unknown Status'}}</span></td>
<td><span class="badge badge-warning">{{($application->applicationStatus == 'STAGE_SUBMITTED') ? __('messages.application_m.outstanding_sm') : __('messages.application_m.unknown_stat')}}</span></td>
<td>{{$application->created_at}}</td>
<td>{{$application->updated_at}}</td>
<td>
<button type="button" class="btn btn-sm btn-warning" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fas fa-clipboard-check"></i> Review</button>
<button type="button" class="btn btn-sm btn-warning" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fas fa-clipboard-check"></i> {{__('messages.application_r.review')}}</button>
</td>
</tr>
@@ -83,8 +83,8 @@
@else
<div class="alert alert-warning">
<i class="fas fa-exclamation-triangle"></i><b> There are no pending applications</b>
<p>It seems like no one new has applied yet. Checkout the interview and approval queues for applications that might have moved up the ladder by now.</p>
<i class="fas fa-exclamation-triangle"></i><b> {{__('messages.application_m.no_pending')}}</b>
<p>{{__('messages.application_m.no_pending_exp')}}</p>
</div>
@endif
@@ -93,7 +93,7 @@
<div class="card-footer text-center">
<button type="button" class="btn btn-success" onclick="window.location.href='{{route('pendingInterview')}}'">View Interview Queue</button>
<button type="button" class="btn btn-success" onclick="window.location.href='{{route('pendingInterview')}}'">{{__('messages.application_m.view_interview_queue')}}</button>
</div>

View File

@@ -1,10 +1,10 @@
@extends('adminlte::page')
@section('title', 'Raspberry Network | Applications')
@section('title', config('app.name') . ' | ' . __('messages.application_m.p_review'))
@section('content_header')
<h4>Application Management / Peer Review</h4>
<h4>{{__('messages.application_m.title')}} / {{__('messages.application_m.p_review')}}</h4>
@stop
@@ -16,12 +16,12 @@
<div class="callout callout-info">
<h4>Voting Reminder</h4>
<h4>{{__('messages.application_m.voting_reminder.title')}}</h4>
<p>Applications which gain more than 50% of positive votes are automatically approved after one day.</p>
<p>Conversely, applications that do not reach this number are automatically denied.</p>
<p>{{__('messages.application_m.voting_reminder.line1')}}</p>
<p>{{__('messages.application_m.voting_reminder.line2')}}</p>
<p>Please note that the vote system can be overriden.</p>
<p>{{__('messages.application_m.voting_reminder.line3')}}</p>
</div>
@@ -36,7 +36,7 @@
<div class="card">
<div class="card-header">
<div class="card-title"><h3>Vote Backlog</h3></div>
<div class="card-title"><h3>{{__('messages.v_backlog')}}</h3></div>
</div>
<div class="card-body">
@@ -48,10 +48,10 @@
<tr>
<th>#</th>
<th>Applicant Name</th>
<th>Last Acted On</th>
<th>Status</th>
<th>Actions</th>
<th>{{__('messages.application_m.applicant_name')}}</th>
<th>{{__('messages.last_updated')}}</th>
<th>{{__('messages.reusable.status')}}</th>
<th>{{__('messages.reusable.actions')}}</th>
</tr>
</thead>
@@ -64,9 +64,9 @@
<td>{{$application->id}}</td>
<td>{{$application->user->name}}</td>
<td>{{$application->created_at}}</td>
<td><span class="badge badge-warning">{{($application->applicationStatus == 'STAGE_PEERAPPROVAL') ? 'Peer Review' : 'Unknown'}}</span></td>
<td><span class="badge badge-warning">{{($application->applicationStatus == 'STAGE_PEERAPPROVAL') ? __('messages.application_m.p_review') : __('messages.application_m.unknown_stat')}}</span></td>
<td>
<button type="button" class="btn btn-info btn-sm" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="far fa-clipboard"></i> Review</button>
<button type="button" class="btn btn-info btn-sm" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="far fa-clipboard"></i> {{__('messages.application_r.review')}}</button>
</td>
@endforeach
@@ -76,10 +76,9 @@
</table>
@else
<x-alert alert-type="warning">
<p class="text-bold"><i class="fa fa-exclamation-triangle"></i> There are no applications pending review</p>
<p class="text-bold"><i class="fa fa-exclamation-triangle"></i> {{__('messages.application_m.no_pending_review')}}</p>
Check the other queues for any applications! Applications will be shown here as soon as their interview is completed.
You'll be able to view meeting notes and vote based on your observations.
{{__('messages.application_m.no_pending_review_exp')}}
</x-alert>
@endif