diff --git a/controllers/people/_form_toggle.htm b/controllers/people/_form_toggle.htm index 0254122..4795cf1 100644 --- a/controllers/people/_form_toggle.htm +++ b/controllers/people/_form_toggle.htm @@ -1,7 +1,7 @@ exists - ? 'winter/test/people/update/'.$formModel->id - : 'winter/test/people/create'; + $uriPrefix = ($formContext === 'create') + ? 'winter/test/people/create' + : 'winter/test/people/' . $formContext . '/' . $formModel->id; ?>
@@ -10,9 +10,14 @@

Alternate views

-
\ No newline at end of file + diff --git a/controllers/people/preview.htm b/controllers/people/preview.htm index 7fa5602..1b52ba3 100644 --- a/controllers/people/preview.htm +++ b/controllers/people/preview.htm @@ -7,6 +7,8 @@ fatalError): ?> + makePartial('form_toggle') ?> +
formRenderPreview() ?>