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