Sha256: af11ce9262eea33dd98f37160277781b72b1fa91931359cecf9e93fb90a448d8
Contents?: true
Size: 925 Bytes
Versions: 7
Compression:
Stored size: 925 Bytes
Contents
<div class="form-row page"> <div> <% case property.type.to_s %> <% when "DataMapper::Types::Text" %> <%= text_area(property.name, :cols => 80, :label => property.field.capitalize.gsub('_', ' ')) %> <p class="help"> <%= property.nullable? ? "Required." : "Optional." %> </p> <% else %> <%= text_field(property.name, :size => [50, property.length].min, :maxlength => property.length, :label => property.field.capitalize.gsub('_', ' ')) %> <p class="help"> <%= !property.nullable? ? "Required." : "Optional." %> <%= property.length %> <%= property.length == 1 ? "character." : "characters or fewer." %> </p> <% end %> </div> </div>
Version data entries
7 entries across 7 versions & 1 rubygems