Sha256: c48ac24883ac2a82f5eb6a72a3b7870223f95ce9ae78ece51148dc6b6ecc0652

Contents?: true

Size: 449 Bytes

Versions: 23

Compression:

Stored size: 449 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, label_text.html_safe %>
  <%= form.text_area attribute, options %>
</li>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
typus-3.0.12 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc14 app/views/admin/templates/_text.html.erb
typus-3.0.11 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc13 app/themes/default/views/admin/templates/_text.html.erb
typus-3.1.0.rc12 app/themes/default/views/admin/templates/_text.html.erb
typus-3.0.11.rc5 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc11 app/themes/default/views/admin/templates/_text.html.erb
typus-3.1.0.rc10 app/themes/default/views/admin/templates/_text.html.erb
typus-3.0.11.rc4 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc9 app/themes/default/views/admin/templates/_text.html.erb
typus-3.0.11.rc3 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc8 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc7 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc6 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc5 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc4 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc3 app/views/admin/templates/_text.html.erb
typus-3.1.0.rc2 app/views/admin/templates/_text.html.erb
typus-3.0.11.rc2 app/views/admin/templates/_text.html.erb
typus-3.0.11.rc1 app/views/admin/templates/_text.html.erb