diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php index aaff669..4a03da3 100644 --- a/resources/lang/en/messages.php +++ b/resources/lang/en/messages.php @@ -56,7 +56,9 @@ return [ 'here' => 'here', 'auth_req' => 'Please authenticate', 'eligible' => 'Eligible', - 'ineligible' => 'Ineligible' + 'ineligible' => 'Ineligible', + 'schedule' => 'Schedule', + 'platform' => 'Platform' ], @@ -521,10 +523,63 @@ EOT, 'directory' => [ 'itsyou' => 'It\'s you!', - + 'title' => 'User Directory', + 'directory' => 'Directory' ] + ], + + 'view_app' => [ + + 'title' => 'Viewing application', + 'viewing_app' => 'Viewing :user\'s application', + 'cantvote' => 'You cannot vote on this application anymore.', + 'no_notes' => 'There are no notes yet. Add some!', + 'deny_confirm' => 'Are you sure you want to deny this application? Please keep in mind that this user will only be allowed to apply 30 days after their first application.', + 'deny_confirm_consequence' => 'This action cannot be undone.', + 'deny_confirm_btn' => 'Confirm: Deny Applicant', + 'form_updated_alert' => 'If this form has been updated, new fields and updated questions will not show up here!', + 'context_info' => 'Contextual Information', + 'appl_ip' => 'Applicant IP Address', + 'appl_for' => 'Applying for', + 'currentstatus' => 'Current Status', + 'decisionmod' => 'Decision & Moderation Tools', + 'denyapp' => 'Deny applicant', + 'nextstage' => 'Move to next stage', + 'appointment_desc' => 'Appointment description', + 'int_date_time' => 'Interview Date & Time', + 'choosedate' => 'Click to choose a date', + 'appointment_loc' => 'Appointment Location', + 'pref_platform' => 'Select your preferred platform', + 'coming_soon_int' => 'Embedded in-house video conferencing coming soon, powered by Jitsi Meet', + 'scheduled_for' => 'Interview Scheduled for:', + 'platform' => 'Platform', + 'finish_meeting' => 'Finish Meeting', + 'view_notes' => 'View Meeting Notes', + 'vote_app' => 'Vote on this application', + + 'vote_explainer' => [ + + 'line1' => 'If you weren\'t present during this meeting, you can view the shared meeting notepad to help you make a decision.', + 'line2' => 'You may vote on as many applications as needed; However, you can only vote once per application.', + 'line3' => 'Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.' + + ], + + 'vote_approve' => 'Vote: Approve Applicant', + 'vote_deny' => 'Vote: Deny Applicant', + 'm_notes' => 'Meeting notes', + 'view_more' => 'View more Applications', + 'comments' => 'Comments', + 'no_comments' => 'There are no comments here.', + 'no_comments_exp' => 'There are no comments here! Comments are only visible to staff members. Be the first to share your input! Commenting may help with decision-making when time comes to vote for an application.', + 'commenting_as' => 'Commenting as :username', + 'max_chars' => 'max characters', // Context: A number is added before max characters + 'post' => 'Post', // Context: Post as in post comment + + + ] ]; diff --git a/resources/views/dashboard/user/directory.blade.php b/resources/views/dashboard/user/directory.blade.php index f08812e..51e0a75 100644 --- a/resources/views/dashboard/user/directory.blade.php +++ b/resources/views/dashboard/user/directory.blade.php @@ -1,10 +1,10 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network | User Directory') +@section('title', config('app.name') . ' | ' . __('messages.user.directory.title')) @section('content_header') -
Last updated @ {{$application->appointment->updated_at}}
+{{__('messages.last_updated')}} @ {{$application->appointment->updated_at}}
Are you sure you want to deny this application? Please keep in mind that this user will only be allowed to apply 30 days after their first application.
-This action cannot be undone.
+{{__('messages.view_app.deny_confirm')}}
+{{__('messages.view_app.deny_confirm_consequence')}}
Applicant Name: {{$application->user->name}}
+{{__('messages.application_m.applicant_name')}} {{$application->user->name}}
@if (Auth::user()->hasRole('hiringManager')) -Applicant IP Address: {{$application->user->originalIP}}
+{{__('messages.view_app.appl_ip')}} {{$application->user->originalIP}}
@endif -Applied On: {{$application->created_at}}
-Last acted on:{{$application->updated_at}}
-Applying for: {{$vacancy->vacancyName}}
-Current Status: +
{{__('messages.application_m.application_date')}} {{$application->created_at}}
+{{__('messages.last_updated')}}{{$application->updated_at}}
+{{__('messages.view_app.appl_for')}} {{$vacancy->vacancyName}}
+{{__('messages.view_app.currentstatus')}} @switch($application->applicationStatus) @case('STAGE_SUBMITTED') - Outstanding + {{__('messages.application_m.outstanding_sm')}} @break @case('STAGE_PEERAPPROVAL') - Pending Peer Approval + {{__('messages.user.peer_approval')}} @break @case('STAGE_INTERVIEW') - Pending Interview + {{__('messages.application_m.pending_int')}} @break @case('STAGE_INTERVIEW_SCHEDULED') - Interview Scheduled + {{__('messages.application_m.interview_s')}} @break @case('APPROVED') - Approved + {{__('messages.application_m.approved')}} @break @case('DENIED') - Denied + {{__('messages.application_m.denied')}} @break @@ -186,7 +186,7 @@
Click to choose a date
+{{__('messages.view_app.choosedate')}}
- + -Embedded in-house video conferencing coming soon, powered by Jitsi Meet
+{{__('messages.view_app.coming_soon_int')}}
{{$application->appointment->appointmentDescription}}
-Interview scheduled for: {{$application->appointment->appointmentDate}}
-Status: {{Str::ucfirst(Str::lower($application->appointment->appointmentStatus))}}
-Platform: {{Str::ucfirst(Str::lower($application->appointment->appointmentLocation))}}
+{{__('messages.view_app.scheduled_for')}} {{$application->appointment->appointmentDate}}
+{{__('messages.reusable.status')}}: {{Str::ucfirst(Str::lower($application->appointment->appointmentStatus))}}
+{{__('messages.reusable.platform')}}: {{Str::ucfirst(Str::lower($application->appointment->appointmentLocation))}}
If you weren't present during this meeting, you can view the shared meeting notepad to help you make a decision.
-You may vote on as many applications as needed; However, you can only vote once per application.
+{{__('messages.view_app.vote_explainer.line1')}}
+{{__('messages.view_app.vote_explainer.line2')}}
-Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.
+{{__('messages.view_app.vote_explainer.line3')}}
There are no comments here! Comments are only visible to staff members. Be the first to share your input!
-Commenting may help with decision-making when time comes to vote for an application.
+{{__('messages.view_app.no_comments_exp')}}
+Commenting as {{Auth::user()->name}}
+{{__('messages.view_app.commenting_as', ['username' => Auth::user()->name ])}}
0/600 max characters
+0/600 {{__('messages.view_app.max_chars')}}
{{$comment->user->name}} ● {{Carbon\Carbon::parse($comment->created_at)->diffForHumans()}} + +
{{$comment->user->name}} ● {{Carbon\Carbon::parse($comment->created_at)->diffForHumans()}}