diff --git a/app/views/challenges/_form.html.erb b/app/views/challenges/_form.html.erb index da036ffd9..138a93fd2 100644 --- a/app/views/challenges/_form.html.erb +++ b/app/views/challenges/_form.html.erb @@ -95,6 +95,11 @@ <%= f.text_area :task_pass, :class => "panel-form-width-690 panel-box-sizing", :no_label => true %> +
  • + + <%= select_tag :evaluation, options_for_select([["输出输出", 1], ["文件存在", 2]]), :name => 'challenge[evaluation]', :class => "ml5", :style => "height: 28px;" %> +
  • +
  • <% if params[:action] == "edit" && @challenge.challenge_samples.count > 0 %> @@ -189,8 +194,16 @@ <%= f.text_area :answer, :class => "panel-form-width-690 panel-form-height-150 fl task-textarea-pd", :no_label => true, :style => "line-height:1.9;" %>
  • +
  • - + + + + +
  • + +
  • + <%= f.text_field :score, :class => "panel-form-height-30 fl", :no_label => true, :style => "padding:5px;", :placeholder => "请输入分值(只能是数字)" %>