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