Sha256: 63e9f5629883935db6e270a9673e3507e17fb199ba36ac56b3d718bde74381bf
Contents?: true
Size: 721 Bytes
Versions: 9
Compression:
Stored size: 721 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) = link_to t('bhf.helpers.entry.cancel'), bhf_page_path(@platform.page_name), :class => 'cancel'
Version data entries
9 entries across 9 versions & 1 rubygems