Incident templates can now be created.

This commit is contained in:
James Brooks
2014-12-20 20:58:10 +00:00
parent 003801ba01
commit 660a2d041a
4 changed files with 67 additions and 3 deletions
@@ -24,6 +24,27 @@ class DashIncidentController extends Controller {
]);
}
/**
* Shows the add incident template view.
* @return \Illuminate\View\View
*/
public function showAddIncidentTemplate() {
return View::make('dashboard.incident-template')->with([
'pageTitle' => 'Add Incident Template - Dashboard',
]);
}
/**
* Creates a new incident template.
* @return \Illuminate\Http\RedirectResponse
*/
public function createIncidentTemplateAction() {
$_template = Input::get('template');
$template = IncidentTemplate::create($_template);
return Redirect::back()->with('template', $template);
}
/**
* Creates a new incident.
* @return \Illuminate\Http\RedirectResponse