Sha256: 4fc72fc2f8d1d8916ebc4ccf8cb94f8cb20737bb06a6693816df7da6e4a3dc6e

Contents?: true

Size: 476 Bytes

Versions: 5

Compression:

Stored size: 476 Bytes

Contents

<%
  name = property[:name]
  length = property[:length]
  label = property[:pretty_name]
  required = !property[:nullable?]
%>
                <div>
                  <%= text_field(name, :size => [50, length].min, :maxlength => length, :label => label) %>
                  <p class="help">
                    <%= required ? "Required." : "Optional." %> <%= length %> <%= length == 1 ? "character." : "characters or fewer." %>
                  </p>
                </div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
sferik-merb-admin-0.4.0 app/views/main/_string.html.erb
sferik-merb-admin-0.4.1 app/views/main/_string.html.erb
sferik-merb-admin-0.4.2 app/views/main/_string.html.erb
sferik-merb-admin-0.4.3 app/views/main/_string.html.erb
merb-admin-0.4.3 app/views/main/_string.html.erb