<% custom = { :include_blank => true } options.merge!(custom) if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym) html_options.merge!(:disabled => 'disabled') message = Typus::I18n.t("Read only") end %>
  • <%= form.label attribute, "#{label_text} #{message}".html_safe %> <%= form.select attribute, @resource.send(attribute), options, html_options %>