Add 'set all templates to inactive' feature

- Add feature to set all templates in the same quarter to inactive when
  one is set to 'active' (within their quarter)