<% 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) %>
  • <%= form.label attribute, label_text.html_safe %> <%= form.text_area attribute, options %>