Sha256: 76d4e731bccec472bbec1d29586b794de6fba878a1af5278364ae357010a0beb

Contents?: true

Size: 570 Bytes

Versions: 39

Compression:

Stored size: 570 Bytes

Contents

<%#
# Email Form Partial

This partial renders an input element for email addresses.
By default, the input is a text box.

## Local variables:

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

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

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

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
semantic-administrate-0.10.0 app/views/fields/email/_form.html.erb
administrate-0.10.0 app/views/fields/email/_form.html.erb
semantic-administrate-0.1.1 app/views/fields/email/_form.html.erb
administrate-0.9.0 app/views/fields/email/_form.html.erb
semantic-administrate-0.1.0 app/views/fields/email/_form.html.erb
administrate-0.8.1 app/views/fields/email/_form.html.erb
administrate-0.8.0 app/views/fields/email/_form.html.erb
administrate-0.7.0 app/views/fields/email/_form.html.erb
administrate-0.6.0 app/views/fields/email/_form.html.erb
administrate-0.5.0 app/views/fields/email/_form.html.erb
administrate-0.4.0 app/views/fields/email/_form.html.erb
administrate-0.3.0 app/views/fields/email/_form.html.erb
administrate-0.2.2 app/views/fields/email/_form.html.erb
administrate-0.2.1 app/views/fields/email/_form.html.erb
administrate-0.2.0 app/views/fields/email/_form.html.erb
administrate-0.2.0.rc1 app/views/fields/email/_form.html.erb
administrate-0.1.5 app/views/fields/email/_form.html.erb
administrate-0.1.4 app/views/fields/email/_form.html.erb
administrate-0.1.3 app/views/fields/email/_form.html.erb