What was the answer?
By design there is no way to edit a page template using Editing tools. If you edit a content block placed in a template the changes will affect all the pages which using this template. Because of this the only available option to edit a template is to do it in the backend. The actual problem is that the Edit button should not appear when the content block is on the template.