Sha256: a1471df5135bed807ed212013ffb46c855cefb2c6f8c839b667376f2a666dd5c
Contents?: true
Size: 727 Bytes
Versions: 22
Compression:
Stored size: 727 Bytes
Contents
<% property_name = property[:name] length = property[:length] label = property[:pretty_name] required = !property[:nullable?] %> <div> <%= text_field(property_name, :size => [50, length].min, :maxlength => length, :label => label) %> <% if property_name.to_s =~ /(image|logo|photo|photograph|picture|thumb|thumbnail)_ur(i|l)/i %> <img src="<%= @object.send(property_name) %>" width="10" height"10" /> <% end %> <p class="help"> <%= required ? "Required." : "Optional." %> <%= length %> <%= length == 1 ? "character." : "characters or fewer." %> </p> </div>
Version data entries
22 entries across 22 versions & 1 rubygems