% # Read only fields. if @resource.typus_field_options_for(:read_only).to_s.include?(attribute) custom = { :readonly => 'readonly' } label_text << " #{_("Read only")}" end # Auto generated fields. if @resource.typus_field_options_for(:auto_generated).include?(attribute) custom = { :auto_generated => true } label_text << " #{_("Auto generated")}" end options.merge!(custom) if custom %>