Sha256: 22054b7a81f5e7e45384eafcc057812fedc12203920c0ed0c3c24e8754cc2364

Contents?: true

Size: 578 Bytes

Versions: 39

Compression:

Stored size: 578 Bytes

Contents

<%#
# String Form Partial

This partial renders an input element for a string attribute.
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::String][1].
  A wrapper around the String pulled from the database.

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

<div class="field-unit__label">
  <%= f.label field.attribute %>
</div>
<div class="field-unit__field">
  <%= f.text_field field.attribute %>
</div>

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
administrate-1.0.0.beta2 app/views/fields/string/_form.html.erb
administrate-1.0.0.beta1 app/views/fields/string/_form.html.erb
administrate-0.20.1 app/views/fields/string/_form.html.erb
administrate-0.20.0 app/views/fields/string/_form.html.erb
administrate-0.19.0 app/views/fields/string/_form.html.erb
administrate-0.18.0 app/views/fields/string/_form.html.erb
administrate-0.17.0 app/views/fields/string/_form.html.erb
administrate-0.16.0 app/views/fields/string/_form.html.erb
administrate-0.15.0 app/views/fields/string/_form.html.erb
administrate-0.14.0 app/views/fields/string/_form.html.erb
viniBaxterDesk-22.0.0 app/views/fields/string/_form.html.erb
viniBaxterDesk-0.21.0 app/views/fields/string/_form.html.erb
viniBaxterDesk-0.20.0 app/views/fields/string/_form.html.erb
viniBaxterDesk-0.14.0 app/views/fields/string/_form.html.erb
viniBaxterDesk-0.13.2 app/views/fields/string/_form.html.erb
viniBaxterDesk-0.13.1 app/views/fields/string/_form.html.erb
administrate-0.13.0 app/views/fields/string/_form.html.erb
administrate-0.12.0 app/views/fields/string/_form.html.erb
administrate-0.11.0 app/views/fields/string/_form.html.erb
semantic-administrate-0.10.1 app/views/fields/string/_form.html.erb