Sha256: ac1a7b638ea6f1e03d3102c5aa0a8ed8fc18de7e235e88e0c2fa70358685e0a0

Contents?: true

Size: 712 Bytes

Versions: 35

Compression:

Stored size: 712 Bytes

Contents

- html = { id: (:main_form unless @quick_edit), multipart: (!@quick_edit && @platform.has_file_upload?) }
= form_for @object, url: @form_url, builder: Bhf::Form::Builder, html: html do |f|

  - if f.object.errors.any?
    = render partial: 'bhf/entries/validation_errors', locals: {f: f}

  - @platform.fields.each do |field|
    - unless field.form_type == :hidden
      = render partial: "bhf/entries/form/#{field.macro}/#{field.form_type}", locals: {f: f, field: field}

  - unless @quick_edit
    .node
      .label
      .input
        = f.submit f.object.new_record? ? new_t(@platform) : edit_t(@platform)
        = link_to t('bhf.helpers.entry.cancel'), bhf_page_path(@platform.page_name), class: 'cancel'

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
bhf-0.5.0 app/views/bhf/entries/_form.haml
bhf-0.4.36 app/views/bhf/entries/_form.haml
bhf-0.4.35 app/views/bhf/entries/_form.haml
bhf-0.4.34 app/views/bhf/entries/_form.haml
bhf-0.4.33 app/views/bhf/entries/_form.haml
bhf-0.4.32 app/views/bhf/entries/_form.haml
bhf-0.4.31 app/views/bhf/entries/_form.haml
bhf-0.4.30 app/views/bhf/entries/_form.haml
bhf-0.4.25 app/views/bhf/entries/_form.haml
bhf-0.4.24 app/views/bhf/entries/_form.haml
bhf-0.4.23 app/views/bhf/entries/_form.haml
bhf-0.4.22 app/views/bhf/entries/_form.haml
bhf-0.4.21 app/views/bhf/entries/_form.haml
bhf-0.4.20 app/views/bhf/entries/_form.haml
bhf-0.4.19 app/views/bhf/entries/_form.haml
bhf-0.4.18 app/views/bhf/entries/_form.haml
bhf-0.4.17 app/views/bhf/entries/_form.haml
bhf-0.4.16 app/views/bhf/entries/_form.haml
bhf-0.4.15 app/views/bhf/entries/_form.haml
bhf-0.4.14 app/views/bhf/entries/_form.haml