Sha256: d21e9ebd943b0dad0ae6087422bc66ab8cfdcb6e9ba14e607d8b10b3a2fa842b

Contents?: true

Size: 685 Bytes

Versions: 5

Compression:

Stored size: 685 Bytes

Contents

.form-bulk-edit
  = form.render_form do

    %h3= I18n.t('basepack.bulk_edit.title', count: form.collection.count)

    = form_display_base_errors(form.resource)
    .form-inputs
      - form.visible_groups.each do |group|
        - if (fields = group.visible_fields).present?
          %fieldset
            - unless group.name == :default
              %h4= group.label
            - if group.help.present?
              %p= group.help
            - fields.each do |field|
              - unless form.inverse_of_nested_in?(field) # do not show nested field if the target is the origin
                = field.render

    .form-actions
      .pull-right
        = form.render_actions

Version data entries

5 entries across 5 versions & 1 rubygems

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