Sha256: 890304c69d4470ceffdfbc6e6e5cac0ca7831a06ec71cbdc6517bf24dc6aa04b

Contents?: true

Size: 751 Bytes

Versions: 6

Compression:

Stored size: 751 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

6 entries across 6 versions & 1 rubygems

Version Path
bhf-0.4.2.2 app/views/bhf/entries/_form.haml
bhf-0.4.2.1 app/views/bhf/entries/_form.haml
bhf-0.4.2 app/views/bhf/entries/_form.haml
bhf-0.4.1 app/views/bhf/entries/_form.haml
bhf-0.4.0 app/views/bhf/entries/_form.haml
bhf-0.3.11 app/views/bhf/entries/_form.haml