To edit a device template please follow the steps given below:
Go to Settings > NCM > Device Template
Click on the device template you want to edit.
This will open the edit wizard, make the required changes (Be very careful while changing the CLI configurations, as the wrong configuration may lead to several issues while managing the related device)
Once you are satisfied with the changes click on Save.