Sha256: 52f4d9aa890839bb77fb5b9064c7801924d0db80e95f505cbd947786f500f3f7

Contents?: true

Size: 616 Bytes

Versions: 23

Compression:

Stored size: 616 Bytes

Contents

<%

  # Read only fields.
  if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
    custom = { :readonly => 'readonly' }
    label_text << " <small>#{Typus::I18n.t("Read only")}</small>"
  end

  # Auto generated fields.
  if @resource.typus_field_options_for(:auto_generated).include?(attribute.to_sym)
    custom = { :auto_generated => true }
    label_text << " <small>#{Typus::I18n.t("Auto generated")}</small>"
  end

  options.merge!(custom) if custom

%>

<li id="<%= attribute %>">
  <%= form.label attribute, label_text.html_safe %>
  <%= form.text_field attribute, options %>
</li>

Version data entries

23 entries across 23 versions & 1 rubygems

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