First, click through the filters until SHOW DELETED appears.
You will now see all the deleted templates. Move the cursor over the template you want to restore. The RESTORE button appears. As soon as you click on this button, you can continue working on the template as usual.