Keep type_ as a hidden field in resource editing