Sha256: e78baae5fdeeadfd481b32e3770d10416fb685d150ffb45e847364432a1c48c7

Contents?: true

Size: 609 Bytes

Versions: 7

Compression:

Stored size: 609 Bytes

Contents

- html = { :id => (:main_form unless @quick_edit), :multipart => @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)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bhf-0.1.6 app/views/bhf/entries/_form.haml
bhf-0.1.5 app/views/bhf/entries/_form.haml
bhf-0.1.4 app/views/bhf/entries/_form.haml
bhf-0.1.3 app/views/bhf/entries/_form.haml
bhf-0.1.2 app/views/bhf/entries/_form.haml
bhf-0.1.1 app/views/bhf/entries/_form.haml
bhf-0.1.0 app/views/bhf/entries/_form.haml