Sha256: 387d144ff066c1b8489b838b24f5497c7c13794f1947e7f9a1021541c5bcae21
Contents?: true
Size: 550 Bytes
Versions: 5
Compression:
Stored size: 550 Bytes
Contents
<% # Read only fields. if @resource.typus_field_options_for(:read_only).to_s.include?(attribute) custom = { :readonly => 'readonly' } label_text << " <small>#{_("Read only")}</small>" end # Auto generated fields. if @resource.typus_field_options_for(:auto_generated).include?(attribute) custom = { :auto_generated => true } label_text << " <small>#{_("Auto generated")}</small>" end options.merge!(custom) if custom %> <li> <%= form.label attribute, label_text %> <%= form.text_field attribute, options %> </li>
Version data entries
5 entries across 5 versions & 1 rubygems