Continuing with breakout of shortcode template page

Fixes to get the shortcode edit screen to work.
Change tabs to spaces in view files.