Fixed a bug with readonly in gen_fragment_entity_edit template