forked from miguel456/rbrecruiter
Add "My Profile" Page
This commit adds the layout for the profile page, for users and staff members.
This commit is contained in:
parent
76d6ea6704
commit
c802908bf3
@ -17,4 +17,9 @@ class ApplicationController extends Controller
|
||||
return view('dashboard.user.deniedapplications');
|
||||
}
|
||||
|
||||
public function showApprovedApps()
|
||||
{
|
||||
return view('dashboard.user.approvedapplications');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,5 +6,12 @@ use Illuminate\Http\Request;
|
||||
|
||||
class ProfileController extends Controller
|
||||
{
|
||||
//
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
return view('dashboard.user.profile.userprofile');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
17
public/css/profile.css
vendored
Normal file
17
public/css/profile.css
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/* HIDE RADIO */
|
||||
[type=radio] {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* IMAGE STYLES */
|
||||
[type=radio] + img {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* CHECKED STYLES */
|
||||
[type=radio]:checked + img {
|
||||
outline: 2px solid #4cc633;
|
||||
}
|
BIN
public/img/gravatar.png
Normal file
BIN
public/img/gravatar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
public/img/mojang-logo.png
Normal file
BIN
public/img/mojang-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,82 @@
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Applications')
|
||||
|
||||
@section('content_header')
|
||||
|
||||
<h4>My Account / Approved Applications</h4>
|
||||
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col">
|
||||
|
||||
<div class="callout callout-success">
|
||||
<h5>Info on approved applications</h5>
|
||||
|
||||
<p>Your approved applications will appear here. Approved applicants will be promoted and notified automatically by the system.</p>
|
||||
<p>Moderators will be able to review other applications.</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">My Denied Applications</h3>
|
||||
</div>
|
||||
<!-- /.card-header -->
|
||||
<div class="card-body p-0"> <!-- move to dedi css -->
|
||||
|
||||
<table class="table" style="white-space: nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 10px">#</th>
|
||||
<th>Applicant</th>
|
||||
<th>Application Date</th>
|
||||
<th>Approval Date</th>
|
||||
<th>Status</th>
|
||||
<th style="width: 40px">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1.</td>
|
||||
<td>Jonathan Smith</td>
|
||||
<td>2020-04-28</td>
|
||||
<td>2020-04-30</td>
|
||||
<td><span class="badge bg-success">Approved</span></td>
|
||||
<td>
|
||||
|
||||
<button type="button" class="btn btn-success btn-sm">View</button>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
|
||||
<div class="card-footer">
|
||||
|
||||
<button type="button" class="btn btn-default mr-2">Back</button>
|
||||
<button type="button" class="btn btn-info mr-2" onclick="window.location.href='{{route('userDeniedApps')}}'">Denied Applications</button>
|
||||
<button type="button" class="btn btn-info mr-2" onclick="window.location.href='{{route('userPendingApps')}}'">Active Applications</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
@ -43,6 +43,7 @@
|
||||
<th>Applicant</th>
|
||||
<th>Application Date</th>
|
||||
<th>Denial Date</th>
|
||||
<th>Status</th>
|
||||
<th style="width: 40px">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -52,7 +53,6 @@
|
||||
<td>Jonathan Smith</td>
|
||||
<td>2020-04-28</td>
|
||||
<td>2020-04-30</td>
|
||||
<td></td>
|
||||
<td><span class="badge bg-danger">Denied</span></td>
|
||||
<td>
|
||||
|
||||
|
194
resources/views/dashboard/user/profile/userprofile.blade.php
Normal file
194
resources/views/dashboard/user/profile/userprofile.blade.php
Normal file
File diff suppressed because one or more lines are too long
@ -21,12 +21,20 @@ Route::post('/form/contact', 'ContactController@create')
|
||||
|
||||
Route::group(['middleware' => 'auth'], function(){
|
||||
|
||||
Route::get('/dashboard', 'DashboardController@index');
|
||||
|
||||
Route::group(['prefix' => '/applications'], function (){
|
||||
|
||||
Route::get('/pending', 'ApplicationController@showPendingUserApps');
|
||||
Route::get('/denied', 'ApplicationController@showDeniedUserApps');
|
||||
Route::get('/pending', 'ApplicationController@showPendingUserApps')
|
||||
->name('userPendingApps');
|
||||
Route::get('/denied', 'ApplicationController@showDeniedUserApps')
|
||||
->name('userDeniedApps');
|
||||
Route::get('/approved', 'ApplicationController@showApprovedApps')
|
||||
->name('userApprovedApps');
|
||||
|
||||
});
|
||||
|
||||
Route::group(['prefix' => '/profile'], function (){
|
||||
|
||||
Route::get('/settings', 'ProfileController@index');
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user