Minor template changes - dependent on modes

Updates to relation and morph templates - they make use of ngIf to remove unneeded elements from the DOM when we are not editing.

Fixes a bug in the relation plugin during that process.