Add Incident is now in sidebar item. Fixed adding of incidents.
This commit is contained in:
@@ -9,17 +9,6 @@ class DashboardController extends Controller {
|
||||
return View::make('dashboard.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new incident.
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function createIncidentAction() {
|
||||
$_incident = Input::get('incident');
|
||||
$incident = Incident::create($_incident);
|
||||
|
||||
return Redirect::back()->with('incident', $incident);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the components view.
|
||||
* @return \Illuminate\View\View
|
||||
@@ -77,6 +66,27 @@ class DashboardController extends Controller {
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the add incident view.
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function showAddIncident() {
|
||||
return View::make('dashboard.incident-add')->with([
|
||||
'pageTitle' => 'Add Incident - Dashboard',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new incident.
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function createIncidentAction() {
|
||||
$_incident = Input::get('incident');
|
||||
$incident = Incident::create($_incident);
|
||||
|
||||
return Redirect::back()->with('incident', $incident);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the metrics view.
|
||||
* @return \Illuminate\View\View
|
||||
|
||||
Reference in New Issue
Block a user