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 @@ '
    '+ '
  • '+ ''+ + ''+ ''+ ''+ ''+ '
  • '+ '
    '+ - '
  • '+ - ''+ - ''+ - '
  • '+ - '
    '+ ''+ '
    '+ '