Commit 7c91055e4a44d2b8096756ffcfb090a61c967a5d

Authored by Dmitriy Zaporozhets
1 parent 0f5f0215

Fix wiki editing

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/views/projects/wikis/_form.html.haml
1 -= form_for [@project, @wiki] do |f| 1 += form_for [@project, @wiki], method: @wiki.persisted? ? :put : :post do |f|
2 -if @wiki.errors.any? 2 -if @wiki.errors.any?
3 #error_explanation 3 #error_explanation
4 %h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:" 4 %h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:"
@@ -25,11 +25,11 @@ @@ -25,11 +25,11 @@
25 .ui-box-bottom 25 .ui-box-bottom
26 .control-group 26 .control-group
27 = f.label :content 27 = f.label :content
28 - .controls= f.text_area :content, class: 'span8 js-gfm-input' 28 + .controls= f.text_area :content, class: 'span8 js-gfm-input', rows: 18
29 .ui-box-bottom 29 .ui-box-bottom
30 .control-group 30 .control-group
31 = f.label :commit_message 31 = f.label :commit_message
32 - .controls= f.text_field :message, class: 'span8' 32 + .controls= f.text_field :message, class: 'span8', rows: 18
33 .form-actions 33 .form-actions
34 - if @wiki && @wiki.persisted? 34 - if @wiki && @wiki.persisted?
35 = f.submit 'Save changes', class: "btn-save btn" 35 = f.submit 'Save changes', class: "btn-save btn"