fix rendering with html_safe and raw(),
[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 => "form", :id => "ask_question"}) do |f|
13   =render :partial => "form", :locals => {:f => f}
14
15   .group.navform
16     .controls.right{:style => "width: 50%"}
17       .left{:style => "width: 49.5%"}
18         = f.label :wiki, "Wiki", :class => "radio"
19         = f.check_box :wiki, :class => "checkbox"
20       .left{:style => "width: 49.5%"}
21         = f.label :anonymous, t("scaffold.post_as_anonymous"), :class => "radio"
22         = f.check_box :anonymous, {:class => "checkbox"}, true, false
23
24     = f.submit t('scaffold.create')
25     = t("global.or")
26     = link_to t('scaffold.cancel'), questions_path, :class => "button cancel"