Commit 7c91055e4a44d2b8096756ffcfb090a61c967a5d
1 parent
0f5f0215
Exists in
master
and in
4 other branches
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 | 2 | -if @wiki.errors.any? |
3 | 3 | #error_explanation |
4 | 4 | %h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:" |
... | ... | @@ -25,11 +25,11 @@ |
25 | 25 | .ui-box-bottom |
26 | 26 | .control-group |
27 | 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 | 29 | .ui-box-bottom |
30 | 30 | .control-group |
31 | 31 | = f.label :commit_message |
32 | - .controls= f.text_field :message, class: 'span8' | |
32 | + .controls= f.text_field :message, class: 'span8', rows: 18 | |
33 | 33 | .form-actions |
34 | 34 | - if @wiki && @wiki.persisted? |
35 | 35 | = f.submit 'Save changes', class: "btn-save btn" | ... | ... |