Realm editing in vhost template does not work, the reason is that the path name may contain a wild card like $VH_ROOT to let each vhost uses it own realm file, so editing is disabled intensionally.
Just instanciate a vhost and edit your realm from vhost configruation.