Currently, profile fields which are marked "View-only" are suppressed when the profile is in create or edit mode. We've gotten significant feedback that this is not expected or useful behavior.
Modify the code such that uf_field elements with is_view = 1 (true) are included and frozen (read-only) in create or edit mode. The label and the field value (if any) are displayed inline in the form (by weight order).
This should apply to profiles that are embedded in CiviContribute/CiviMember/CiviEvent online contrib / signup pages as well.