Commit 7c91055e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix wiki editing

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 0f5f0215
= form_for [@project, @wiki] do |f|
= form_for [@project, @wiki], method: @wiki.persisted? ? :put : :post do |f|
-if @wiki.errors.any?
#error_explanation
%h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:"
......@@ -25,11 +25,11 @@
.ui-box-bottom
.control-group
= f.label :content
.controls= f.text_area :content, class: 'span8 js-gfm-input'
.controls= f.text_area :content, class: 'span8 js-gfm-input', rows: 18
.ui-box-bottom
.control-group
= f.label :commit_message
.controls= f.text_field :message, class: 'span8'
.controls= f.text_field :message, class: 'span8', rows: 18
.form-actions
- if @wiki && @wiki.persisted?
= f.submit 'Save changes', class: "btn-save btn"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment