Sha256: 38ac4cf42ab7c586401dc456c46358cc6f667cbb6463a4a5a81d640583e568a7

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

<%
  property_name = property[:name]
  value = @object.send(property_name)
  label = property[:pretty_name]
  required = !property[:nullable?]
%>
                <div>
                  <%= text_field(property_name, :class => "vDateField", :value => value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d %H:%M:%S") : nil, :label => label) %>
                  <p class="help">
                    <%= required ? "Required." : "Optional." %>
                  </p>
                </div>

Version data entries

4 entries across 2 versions & 1 rubygems

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