From 2a73751fd910560df911a52a05cb5fe9d57849e9 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 26 Nov 2015 10:56:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E9=80=89=E9=A2=98=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/exercise/_edit_MC.html.erb | 2 +- app/views/exercise/_edit_MCQ.html.erb | 121 +++--- app/views/exercise/_exercise_form.html.erb | 438 ++++++++++----------- app/views/exercise/_new_MCQ.html.erb | 122 +++--- app/views/exercise/_show_MCQ.html.erb | 10 +- 5 files changed, 345 insertions(+), 348 deletions(-) diff --git a/app/views/exercise/_edit_MC.html.erb b/app/views/exercise/_edit_MC.html.erb index adc955dee..fee35824b 100644 --- a/app/views/exercise/_edit_MC.html.erb +++ b/app/views/exercise/_edit_MC.html.erb @@ -30,7 +30,7 @@
  • 分 - 标准答案:请点击正确选项前面单选按钮 + 标准答案:请选择
  • diff --git a/app/views/exercise/_edit_MCQ.html.erb b/app/views/exercise/_edit_MCQ.html.erb index 2b900d648..66bbe8a6f 100644 --- a/app/views/exercise/_edit_MCQ.html.erb +++ b/app/views/exercise/_edit_MCQ.html.erb @@ -1,63 +1,60 @@ -<%= form_for("",:url => update_exercise_question_exercise_index_path(:exercise_question => exercise_question.id),:remote => true) do |f|%> - - - -
    -
    - - - -
    -
    -
      -
    • - - 分 -
    • -
      -
      - <% exercise_question.exercise_choices.reorder("choice_position").each_with_index do |exercise_choice,index| %> -
    • - - - - -
    • -
      - <% end %> -
      -
    • - - -
    • -
      -
    -
    - -
    -
    - +<%= form_for("",:url => update_exercise_question_exercise_index_path(:exercise_question => exercise_question.id),:remote => true) do |f|%> + + + +
    +
    + + + +
    +
    +
      +
    • + + 分 + 标准答案:请选择 +
    • +
      +
      + <% exercise_question.exercise_choices.reorder("choice_position").each_with_index do |exercise_choice,index| %> +
    • + + + + + +
    • +
      + <% end %> +
      +
    +
    + +
    +
    + <% end%> \ No newline at end of file diff --git a/app/views/exercise/_exercise_form.html.erb b/app/views/exercise/_exercise_form.html.erb index f73c15eca..40e68ad61 100644 --- a/app/views/exercise/_exercise_form.html.erb +++ b/app/views/exercise/_exercise_form.html.erb @@ -1,219 +1,219 @@ -<%= stylesheet_link_tag 'polls', :media => 'all' %> - -
    -
    - - -
    - <%= render :partial => 'edit_head', :locals => {:exercise => @exercise} %> -
    - <% current_score = get_current_score @exercise %> -
    " id="current_score_div">目前试卷总分:<%= current_score %> - 分
    - -
    - <%= render :partial => 'exercise_content', :locals => {:exercise => @exercise} %> -
    - -
    - <%= render :partial => 'new_question', :locals => {:exercise => @exercise} %> -
    - - - -
    -
    - -
    - <%= render :partial => 'exercise_submit', :locals => {:exercise => @exercise} %> -
    -
    - -
    -
    +<%= stylesheet_link_tag 'polls', :media => 'all' %> + +
    +
    + + +
    + <%= render :partial => 'edit_head', :locals => {:exercise => @exercise} %> +
    + <% current_score = get_current_score @exercise %> +
    " id="current_score_div">目前试卷总分:<%= current_score %> + 分
    + +
    + <%= render :partial => 'exercise_content', :locals => {:exercise => @exercise} %> +
    + +
    + <%= render :partial => 'new_question', :locals => {:exercise => @exercise} %> +
    + + + +
    +
    + +
    + <%= render :partial => 'exercise_submit', :locals => {:exercise => @exercise} %> +
    +
    + +
    +
    diff --git a/app/views/exercise/_new_MCQ.html.erb b/app/views/exercise/_new_MCQ.html.erb index c5ae81fd6..eaf618c56 100644 --- a/app/views/exercise/_new_MCQ.html.erb +++ b/app/views/exercise/_new_MCQ.html.erb @@ -1,62 +1,62 @@ -<%= form_for(ExerciseQuestion.new, - :html => { :multipart => true }, - :url=>create_exercise_question_exercise_path(exercise.id), - :remote=>true ) do |f| %> -
    -
    - - - -
    -
    -
      -
    • - <% score = exercise.exercise_questions.where("question_type=2").last.nil? ? "": exercise.exercise_questions.where("question_type=2").last.question_score %> - - 分 -
    • -
      -
      -
    • - - - - -
    • -
      -
    • - - - - -
    • -
      -
    • - - - - -
    • -
      -
    • - - - - -
    • -
      -
      -
    • - - -
    • -
      -
    -
    - -
    -
    +<%= form_for(ExerciseQuestion.new, + :html => { :multipart => true }, + :url=>create_exercise_question_exercise_path(exercise.id), + :remote=>true ) do |f| %> +
    +
    + + + +
    +
    +
      +
    • + <% score = exercise.exercise_questions.where("question_type=2").last.nil? ? "": exercise.exercise_questions.where("question_type=2").last.question_score %> + + 分 + 标准答案:请选择 +
    • +
      +
      +
    • + + + + + +
    • +
      +
    • + + + + + +
    • +
      +
    • + + + + + +
    • +
      +
    • + + + + + +
    • +
      +
      +
    +
    + +
    +
    <% end %> \ No newline at end of file diff --git a/app/views/exercise/_show_MCQ.html.erb b/app/views/exercise/_show_MCQ.html.erb index a477303d7..3413007ae 100644 --- a/app/views/exercise/_show_MCQ.html.erb +++ b/app/views/exercise/_show_MCQ.html.erb @@ -52,9 +52,11 @@ '
  • '+ ''+ '分'+ + '标准答案:请选择'+ '
  • '+ '
  • '+ ''+ + ''+ ''+ ''+ ''+ @@ -62,6 +64,7 @@ '
    '+ '
  • '+ ''+ + ''+ ''+ ''+ ''+ @@ -69,6 +72,7 @@ '
    '+ '
  • '+ ''+ + ''+ ''+ ''+ ''+ @@ -76,16 +80,12 @@ '
    '+ '
  • '+ ''+ + ''+ ''+ ''+ ''+ '
  • '+ '
    '+ - '
  • '+ - ''+ - ''+ - '
  • '+ - '
    '+ ''+ '
    '+ '