From e0e417e631cb254f7596d7af6f83ef7292fc539d Mon Sep 17 00:00:00 2001 From: Miguel N Date: Fri, 1 May 2020 06:21:44 +0100 Subject: [PATCH] Add peer review tab --- .../Controllers/ApplicationController.php | 4 + config/adminlte.php | 2 +- .../appmanagement/outstandingapps.blade.php | 6 ++ .../appmanagement/peerreview.blade.php | 86 +++++++++++++++++++ routes/web.php | 6 +- 5 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 resources/views/dashboard/appmanagement/peerreview.blade.php diff --git a/app/Http/Controllers/ApplicationController.php b/app/Http/Controllers/ApplicationController.php index a13c323..143cd8c 100644 --- a/app/Http/Controllers/ApplicationController.php +++ b/app/Http/Controllers/ApplicationController.php @@ -27,4 +27,8 @@ class ApplicationController extends Controller return view('dashboard.appmanagement.outstandingapps'); } + public function showPeerReview() + { + return view('dashboard.appmanagement.peerreview'); + } } diff --git a/config/adminlte.php b/config/adminlte.php index c164e98..5f7a610 100644 --- a/config/adminlte.php +++ b/config/adminlte.php @@ -245,7 +245,7 @@ return [ ], [ 'text' => 'Peer Approval Queue', - 'url' => '/applications/staff/pending-review', + 'url' => '/applications/staff/peer-review', 'icon' => 'fas fa-fw fa-search' ], [ diff --git a/resources/views/dashboard/appmanagement/outstandingapps.blade.php b/resources/views/dashboard/appmanagement/outstandingapps.blade.php index 192f6b4..a70add6 100644 --- a/resources/views/dashboard/appmanagement/outstandingapps.blade.php +++ b/resources/views/dashboard/appmanagement/outstandingapps.blade.php @@ -66,6 +66,12 @@ + + diff --git a/resources/views/dashboard/appmanagement/peerreview.blade.php b/resources/views/dashboard/appmanagement/peerreview.blade.php new file mode 100644 index 0000000..9677377 --- /dev/null +++ b/resources/views/dashboard/appmanagement/peerreview.blade.php @@ -0,0 +1,86 @@ +@extends('adminlte::page') + +@section('title', 'Raspberry Network | Applications') + +@section('content_header') + +

My Account / Peer Review

+ +@stop + +@section('content') + +
+ +
+ +
+ +

Voting Reminder

+ +

Applications which gain more than 50% of positive votes are automatically approved after one day.

+

Conversely, applications that do not reach this number are automatically denied.

+ +

Please note that the vote system can be overriden.

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+

Review Queue

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Applicant NameLast Acted OnStatusActions
1Jonathan Doe2020-04-01Under Review + + + +
+ +
+ +
+ +
+ +
+ +@stop diff --git a/routes/web.php b/routes/web.php index 5552250..c00a22f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -40,7 +40,11 @@ Route::group(['middleware' => 'auth'], function(){ Route::group(['prefix' => '/applications'], function (){ - Route::get('/staff/outstanding', 'ApplicationController@showAllPendingApps'); + Route::get('/staff/outstanding', 'ApplicationController@showAllPendingApps') + ->name('staffPendingApps'); + + Route::get('/staff/peer-review', 'ApplicationController@showPeerReview') + ->name('peerReview'); });