Sha256: 38e529be0fb2b0ef7cc656a414894f2d4c13d4b2ef164d2163c618e175412fb0

Contents?: true

Size: 592 Bytes

Versions: 10

Compression:

Stored size: 592 Bytes

Contents

<%#
# Number Form Partial

This partial renders an input element for number attributes.
By default, the input is a text field.

## Local variables:

- `f`:
  A Rails form generator, used to help create the appropriate input fields.
- `field`:
  An instance of [Administrate::Field::Number][1].
  A wrapper around the number pulled from the database.

[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Number
%>

<div class="field-unit__label">
  <%= f.label field.attribute %>
</div>
<div class="field-unit__field">
  <%= f.number_field field.attribute, step: "any" %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
administrate-1.0.0.beta3 app/views/fields/number/_form.html.erb
administrate-1.0.0.beta2 app/views/fields/number/_form.html.erb
administrate-1.0.0.beta1 app/views/fields/number/_form.html.erb
administrate-0.20.1 app/views/fields/number/_form.html.erb
administrate-0.20.0 app/views/fields/number/_form.html.erb
administrate-0.19.0 app/views/fields/number/_form.html.erb
administrate-0.18.0 app/views/fields/number/_form.html.erb
administrate-0.17.0 app/views/fields/number/_form.html.erb
administrate-0.16.0 app/views/fields/number/_form.html.erb
administrate-0.15.0 app/views/fields/number/_form.html.erb