forked from miguel456/rbrecruiter
Add ability to preview application
This commit is contained in:
@@ -87,7 +87,7 @@ class FormController extends Controller
|
||||
{
|
||||
$deletable = false;
|
||||
}
|
||||
|
||||
|
||||
if ($deletable)
|
||||
{
|
||||
$form->delete();
|
||||
@@ -103,4 +103,11 @@ class FormController extends Controller
|
||||
|
||||
}
|
||||
|
||||
public function preview(Request $request, Form $form)
|
||||
{
|
||||
return view('dashboard.administration.formpreview')
|
||||
->with('form', json_decode($form->formStructure, true))
|
||||
->with('title', $form->formName);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user