Sha256: ea9044940e7a5b16ca60dcaad51410e7ee0433d77a9bc3e2f5946aa1cf35aa65
Contents?: true
Size: 803 Bytes
Versions: 2
Compression:
Stored size: 803 Bytes
Contents
<% flag_map = property[:flag_map] property_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(property_name, :collection => collection, :label => label) %> <% else %> <% length = property[:length] %> <%= text_field(property_name, :maxlength => length, :label => label) %> <p class="help"> <%= required ? "Required." : "Optional." %> </p> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb-admin-0.4.5 | app/views/main/_integer.html.erb |
merb-admin-0.4.4 | app/views/main/_integer.html.erb |