create a js module to handle the question forms
[shapado:piglops-shapado.git] / app / views / questions / _reward_form.html.haml
1 -if @question.reward.nil? && logged_in? && current_user.can_create_reward?(@question)
2   = form_tag start_reward_path(@question), :class => "add_reward" do
3     reward:
4     -rep = current_user.reputation_on(current_group)
5     #reward_slider{:"data-max" => rep < 500 ? rep - 25 : 500}
6     #reward_value
7     = text_field_tag "reward[reputation]", "", :id => "reward_reputation"
8     = submit_tag "create"