Add ability to preview application

This commit is contained in:
2020-07-12 19:36:12 +01:00
parent e978a5417b
commit 1f50faaea7
8 changed files with 159 additions and 32 deletions

View File

@@ -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);
}
}