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