Sha256: e47e552346c05ab9add72cbcdf511c294c1ef411adb91da1bc3ef2f7c3fc25e7
Contents?: true
Size: 672 Bytes
Versions: 11
Compression:
Stored size: 672 Bytes
Contents
= form_for @page, {:html => {:class => "with-text-editor #{'wide' if !@page.persisted?}"}} do |f| - if @page.errors.any? #errorExplanation %h3= "#{pluralize(@page.errors.count, "error")} prohibited this parent from being saved:" %ul - @page.errors.full_messages.each do |msg| %li= msg .field.text-editor .border #text-editor = f.text_area :raw_text, :class => "text-editor-content hidden" = f.hidden_field :parent_id = f.hidden_field :level .actions.flush = f.submit "Save" - if @page.persisted? = link_to "Delete", concen_page_path(@page), :method => :delete = link_to "Cancel", concen_pages_path
Version data entries
11 entries across 11 versions & 1 rubygems