-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Right now the preview layout is pretty static. We can choose left or right which works in some cases but not all. We should brainstorm on what we can do here since I had to result to hardcoding to pull this off. For example here is the existing preview layout:
Here is what I ended up hardcoding to have it do:
Perhaps we can have it pass additional settings to a partial. For example $this->add_form_field('city', 'left'); could be $this->add_form_field('city')->formAttributes(array('column' => 1, 'live_edit' => true)); and create a custom partial at some point that that would loop through and pull all the fields with attribute column 1.
Its important to note that this preview layout was only necessary for the /preview/ page and not the preview that happens when you click onPreviewPopup. So perhaps we can use the $context more intelligently and provide /preview/ -> $context = 'preview' and onPreviewPopup -> $context = 'preview_popup';

