Sha256: fc3863f4c21e6eb2c23157349367cb9b7e846d4d2f5bbe291cf6517f278db97d

Contents?: true

Size: 732 Bytes

Versions: 3

Compression:

Stored size: 732 Bytes

Contents

<%
  property_name = property[:name]
  length = property[:length].to_i
  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

3 entries across 3 versions & 1 rubygems

Version Path
merb-admin-0.8.8 app/views/main/_string.html.erb
merb-admin-0.8.7 app/views/main/_string.html.erb
merb-admin-0.8.6 app/views/main/_string.html.erb