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

Version Path
merb-admin-0.8.1 app/views/main/_string.html.erb
merb-admin-0.8.0 app/views/main/_string.html.erb
merb-admin-0.7.6 app/views/main/_string.html.erb
merb-admin-0.7.5 app/views/main/_string.html.erb
merb-admin-0.7.4 app/views/main/_string.html.erb
merb-admin-0.7.3 app/views/main/_string.html.erb
merb-admin-0.7.2 app/views/main/_string.html.erb
merb-admin-0.7.1 app/views/main/_string.html.erb
merb-admin-0.7.0 app/views/main/_string.html.erb
merb-admin-0.6.9 app/views/main/_string.html.erb
merb-admin-0.6.8 app/views/main/_string.html.erb
merb-admin-0.6.7 app/views/main/_string.html.erb
merb-admin-0.6.6 app/views/main/_string.html.erb
merb-admin-0.6.5 app/views/main/_string.html.erb
merb-admin-0.6.4 app/views/main/_string.html.erb
merb-admin-0.6.3 app/views/main/_string.html.erb
merb-admin-0.6.2 app/views/main/_string.html.erb
merb-admin-0.6.1 app/views/main/_string.html.erb
merb-admin-0.6.0 app/views/main/_string.html.erb
merb-admin-0.5.7 app/views/main/_string.html.erb