Actions forms on question view updated with the new forms css
[shapado:shapado.git] / app / views / questions / new.html.haml
1
2 -content_for :subtabs do
3   .navtitle
4     = t(".title")
5 -content_for :sidebar do
6   -if !current_group.question_help.empty?
7     .help
8       %h4
9         = t(".how_to_ask")
10       = raw(current_group.question_help)
11
12 - form_for(@question, :html=>{:class => "question-form", :id => "ask_question", :multipart => true}) do |f|
13   =render :partial => "form", :locals => {:f => f}
14
15   .field.form-options
16     .column
17       .checkbox
18         = f.label :wiki, "Wiki"
19         = f.check_box :wiki
20     .column
21       .checkbox
22         = f.label :anonymous, t("scaffold.post_as_anonymous")
23         = f.check_box :anonymous, {:class => "checkbox"}, true, false
24     
25     .buttons
26       = link_to t('scaffold.cancel'), questions_path
27       = t("global.or")
28       = f.submit t('scaffold.create'), :class => "save"
29       
30