Sha256: b100cb2c337db7ad8e4a5ac041acfe01ef9d8fa86e43b3a30eaa3262d9c98e70
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
<div> <% if property.type.respond_to?(:flag_map) #Enum or Flag type %> <%= select(property.name, :collection => property.type.flag_map.map{|x| [x[1], x[1].to_s.capitalize.gsub('_', ' ')]}.sort{|a, b| a[1] <=> b[1]}, :label => property.field.capitalize.gsub('_', ' ')) %> <% else %> <%= text_field(property.name, :maxlength => property.length, :label => property.field.capitalize.gsub('_', ' ')) %> <% end %> <p class="help"> <%= !property.nullable? || property.serial? ? "Required." : "Optional." %> </p> </div>
Version data entries
4 entries across 4 versions & 1 rubygems