Sha256: 4763d6bca97ebda529b2f81f0bc73c333b93f10089d0da73157445b1a3630b69
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 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 .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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
concen-0.2.4 | app/views/concen/pages/_form.html.haml |
concen-0.2.3 | app/views/concen/pages/_form.html.haml |