Set templates from Calendar code