2012-02-19 12:05:35 -05:00
|
|
|
= form_for [@project, @wiki] do |f|
|
2012-02-19 09:35:31 -05:00
|
|
|
-if @wiki.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:"
|
|
|
|
%ul
|
|
|
|
- @wiki.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2012-02-21 15:04:01 -05:00
|
|
|
.alert-message.block-message.warning
|
|
|
|
%p
|
|
|
|
Wiki content is parsed with #{link_to "Markdown", "http://en.wikipedia.org/wiki/Markdown"}.
|
|
|
|
%br
|
|
|
|
To add link to new page you can just type
|
|
|
|
%code [Link Title](page-slug)
|
2012-02-19 12:47:49 -05:00
|
|
|
.clearfix
|
2012-02-19 09:35:31 -05:00
|
|
|
= f.label :title
|
2012-02-19 12:47:49 -05:00
|
|
|
.input= f.text_field :title, :class => :xxlarge
|
2012-02-19 12:05:35 -05:00
|
|
|
= f.hidden_field :slug
|
2012-02-19 12:47:49 -05:00
|
|
|
.clearfix
|
2012-02-19 09:35:31 -05:00
|
|
|
= f.label :content
|
2012-02-19 12:47:49 -05:00
|
|
|
.input= f.text_area :content, :class => :xxlarge
|
2012-02-19 09:35:31 -05:00
|
|
|
.actions
|
2012-02-19 12:47:49 -05:00
|
|
|
= f.submit 'Save', :class => "primary btn"
|
|
|
|
= link_to "Cancel", project_wiki_path(@project, :index), :class => "btn"
|