Implementation of time restrictions form widget that supports serialization