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