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