Introduce the settings dashboard page

This commit is contained in:
James Brooks 2014-12-04 22:50:58 +00:00
parent f886341964
commit bf0a5a296e
3 changed files with 30 additions and 2 deletions

View File

@ -8,4 +8,10 @@ class DashboardController extends Controller {
public function showDashboard() {
return View::make('dashboard.index');
}
public function showSettings() {
return View::make('dashboard.settings')->with([
'pageTitle' => 'Settings - Dashboard'
]);
}
}

View File

@ -6,5 +6,5 @@ Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() {
Route::get('incidents', ['as' => 'dashboard.incidents', 'uses' => 'DashboardController@showDashboard']);
Route::get('metrics', ['as' => 'dashboard.metrics', 'uses' => 'DashboardController@showDashboard']);
Route::get('status-page', ['as' => 'dashboard.status-page', 'uses' => 'DashboardController@showDashboard']);
Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashboardController@showDashboard']);
});
Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashboardController@showSettings']);
});

View File

@ -0,0 +1,22 @@
@extends('layout.dashboard')
@section('content')
<div class="header">
<i class="fa fa-cogs"></i> {{ Lang::get('cachet.dashboard.settings') }}
<input type="text" class="form-control input-sm pull-right" placeholder="{{ Lang::get('cachet.dashboard.search') }}">
</div>
<div class="row">
<div class="col-sm-12">
<ul class="tabs">
<li class='active'><a href="#app">App</a></li>
<li><a href="#server">Server</a></li>
<li><a href="#mail">Mail</a></li>
</ul>
<div class="tab-content">
<div id="app" class='active'>General App settings</div>
<div id="server">Server settings</div>
<div id="mail">Mail setitngs, host, SMTP, user and password.</div>
</div>
</div>
</div>
@stop