Sha256: 14b22125378263a2adff84170cf12c8fdafa2bcc214ce15624a35c7229bdfbe5

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 Bytes

Contents

- if field.view_helper == :hidden_field
  = form.input field.method_name, as: :hidden, input_html: field.html_attributes
- elsif field.type == :boolean
  = form.input field.method_name,
      label: field.label,
      hint: field.help,
      required: field.required?,
      input_html: field.html_attributes,
      collection: [[I18n.t(:'basepack.bulk_edit.boolean_type.check'), 't'], [I18n.t(:'basepack.bulk_edit.boolean_type.uncheck'), 'f']]
- else
  = form.input field.method_name,
      label: field.label,
      hint: field.help,
      required: field.required?,
      input_html: field.html_attributes

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
basepack-1.0.1 app/views/forms/bulk_edit/_form_field.html.haml
basepack-1.0.0 app/views/forms/bulk_edit/_form_field.html.haml
basepack-1.0.0.pre.0 app/views/forms/bulk_edit/_form_field.html.haml
basepack-0.2.0 app/views/forms/bulk_edit/_form_field.html.haml