Sha256: 9ac262a18f01bed56c27c1e5490fce96c784773ebbc246998d78ed9ac8fa0aa9

Contents?: true

Size: 895 Bytes

Versions: 12

Compression:

Stored size: 895 Bytes

Contents

- html = { id: (:main_form unless @quick_edit), multipart: (!@quick_edit && @platform.has_file_upload?), class: 'js_bhf_form' }
= 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
    - if params[:return_to]
      = hidden_field :return, :to, name: :return_to, value: params[:return_to]
      
    .node
      .label
      .input
        = f.submit t('bhf.helpers.form.submit.button', default: f.object.new_record? ? new_t(@platform) : edit_t(@platform))
        = link_to t('bhf.helpers.entry.cancel'), page_path(@platform.page_name), class: 'cancel'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bhf-0.7.16 app/views/bhf/entries/_form.haml
bhf-0.7.15 app/views/bhf/entries/_form.haml
bhf-0.7.14 app/views/bhf/entries/_form.haml
bhf-0.7.13 app/views/bhf/entries/_form.haml
bhf-0.7.12 app/views/bhf/entries/_form.haml
bhf-0.7.11 app/views/bhf/entries/_form.haml
bhf-0.7.9 app/views/bhf/entries/_form.haml
bhf-0.7.8 app/views/bhf/entries/_form.haml
bhf-0.7.7 app/views/bhf/entries/_form.haml
bhf-0.7.5 app/views/bhf/entries/_form.haml
bhf-0.7.4 app/views/bhf/entries/_form.haml
bhf-0.7.3 app/views/bhf/entries/_form.haml