Changes template widget to hide itself if there aren't actually any templates for the type.
Improve inline editing.