Configuration template - edit template dialog. Submit finished. Minor refactoring.