Sha256: 6c9e32550c9e89800ffa56a230293832c1acdedc6e190704b9e915df4508c8c4

Contents?: true

Size: 739 Bytes

Versions: 15

Compression:

Stored size: 739 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 => '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

15 entries across 15 versions & 1 rubygems

Version Path
bhf-0.3.10 app/views/bhf/entries/_form.haml
bhf-0.3.9 app/views/bhf/entries/_form.haml
bhf-0.3.8 app/views/bhf/entries/_form.haml
bhf-0.3.7 app/views/bhf/entries/_form.haml
bhf-0.3.6.4 app/views/bhf/entries/_form.haml
bhf-0.3.6.3 app/views/bhf/entries/_form.haml
bhf-0.3.6.2 app/views/bhf/entries/_form.haml
bhf-0.3.6.1 app/views/bhf/entries/_form.haml
bhf-0.3.5 app/views/bhf/entries/_form.haml
bhf-0.3.4 app/views/bhf/entries/_form.haml
bhf-0.3.3 app/views/bhf/entries/_form.haml
bhf-0.3.2 app/views/bhf/entries/_form.haml
bhf-0.3.1 app/views/bhf/entries/_form.haml
bhf-0.3.0 app/views/bhf/entries/_form.haml
bhf-0.2.9 app/views/bhf/entries/_form.haml