Sha256: 489ec422b7828bc0ad1ef51db85af4a8e16c115fa87fbaeeeebf23453213eb25

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

<%
  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 << " <small>#{Typus::I18n.t("Read only")}</small>"
  end

  options = options.merge!(custom)
%>

<li id="<%= attribute %>">
  <%= form.label attribute, raw(label_text) %>
  <%= form.text_area attribute, options %>
</li>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typus-3.0.8 app/views/admin/templates/_text.html.erb
typus-3.0.7 app/views/admin/templates/_text.html.erb
typus-3.0.6 app/views/admin/templates/_text.html.erb
typus-3.0.5 app/views/admin/templates/_text.html.erb
typus-3.0.4 app/views/admin/templates/_text.html.erb