From 5262c32475c19aa3ffbf269bf22a1222b17548cc Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 11 Apr 2017 10:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=ADtpm=E6=96=B0=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/challenges/_form.html.erb | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 => "请输入分值(只能是数字)" %>