Sha256: c6550dc75ebb9b844a0a55f63f11a8b6e1834c44f217979d8817fa695a21b580

Contents?: true

Size: 441 Bytes

Versions: 26

Compression:

Stored size: 441 Bytes

Contents

- resource_class.attribute_names.delete_if { |name| Itsf::Backend.hidden_attributes_for[:edit].include?(name.to_sym) }.each do |name|
  - if form.object.class.columns_hash[name].type == :hstore
    = simple_fields_for name do |hstore_form|
      - if form.object.send(name).respond_to?(:each)
        - form.object.send(name).each do |key, value|
          = hstore_form.input key, input_html: { value: value }
  - else
    = form.input name

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
itsf_backend-2.2.1 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-2.2.0 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-2.1.0 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-2.0.2 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-2.0.1 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.2.8 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.2.7 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.2.6 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.2.5 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.2.4 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.2.1 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.2.0 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.1.15 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.1.14 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.1.13 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.1.12 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.1.11 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.1.10 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.1.9 app/views/itsf/backend/resource/base/_form.html.haml
itsf_backend-1.1.8 app/views/itsf/backend/resource/base/_form.html.haml