Sha256: 456d49eac5c2b20115d257e62c0f3fa489bd6686d0416f676b68d4eeff23e93f

Contents?: true

Size: 747 Bytes

Versions: 2

Compression:

Stored size: 747 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

2 entries across 2 versions & 1 rubygems

Version Path
merb-admin-0.8.5 app/views/main/_string.html.erb
merb-admin-0.8.3 app/views/main/_string.html.erb