Sha256: 7ec84ce887e357869bb63b4920bf4e4c9635e02e8f75b996ee18d1ff22eea399

Contents?: true

Size: 421 Bytes

Versions: 9

Compression:

Stored size: 421 Bytes

Contents

<%
  property_name = property[:name]
  length = property[:length].to_i
  label = property[:pretty_name]
  required = !property[:nullable?] || property[:serial?]
%>
                <div>
                  <%= text_field(property_name, :maxlength => length, :label => label) %>
                  <p class="help">
                    <%= required ? "Required." : "Optional." %>
                  </p>
                </div>

Version data entries

9 entries across 3 versions & 1 rubygems

Version Path
merb-admin-0.8.8 app/views/main/_integer.html.erb
merb-admin-0.8.8 app/views/main/_big_decimal.html.erb
merb-admin-0.8.8 app/views/main/_float.html.erb
merb-admin-0.8.7 app/views/main/_float.html.erb
merb-admin-0.8.7 app/views/main/_big_decimal.html.erb
merb-admin-0.8.7 app/views/main/_integer.html.erb
merb-admin-0.8.6 app/views/main/_big_decimal.html.erb
merb-admin-0.8.6 app/views/main/_integer.html.erb
merb-admin-0.8.6 app/views/main/_float.html.erb