From 09e0e5e93dd23b06d60ee842583b11069cfaeb6b Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 26 Nov 2015 11:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E9=80=89=E5=A4=9A=E9=80=89=E8=BF=98?= =?UTF-8?q?=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/exercise/_edit_MC.html.erb | 7 ++++--- app/views/exercise/_edit_MCQ.html.erb | 7 +++++-- app/views/exercise/_exercise_form.html.erb | 2 +- app/views/exercise/_new_MC.html.erb | 10 +++++----- app/views/exercise/_new_MCQ.html.erb | 10 +++++----- app/views/exercise/_show_MC.html.erb | 13 ++++++------- app/views/exercise/_show_MCQ.html.erb | 10 +++++----- 7 files changed, 31 insertions(+), 28 deletions(-) diff --git a/app/views/exercise/_edit_MC.html.erb b/app/views/exercise/_edit_MC.html.erb index fee35824b..f4ececf8f 100644 --- a/app/views/exercise/_edit_MC.html.erb +++ b/app/views/exercise/_edit_MC.html.erb @@ -8,7 +8,6 @@ $("#poll_question_standard_answer_<%=exercise_question.id %>").val("<%= convert_to_char(exercise_question.exercise_standard_answers.first.exercise_choice_id.to_s)%>") $("#poll_answers_<%=exercise_question.id%>").html("<% exercise_question.exercise_choices.reorder("choice_position").each_with_index do |exercise_choice,index| %>" + "
  • " + - ""+ "" + "" + "" + @@ -30,14 +29,12 @@
  • 分 - 标准答案:请选择
  • <% exercise_question.exercise_choices.reorder("choice_position").each_with_index do |exercise_choice,index| %>
  • - @@ -45,6 +42,10 @@
    <% end %>
  • +
  • + + +
  • diff --git a/app/views/exercise/_edit_MCQ.html.erb b/app/views/exercise/_edit_MCQ.html.erb index 66bbe8a6f..18ae79d1c 100644 --- a/app/views/exercise/_edit_MCQ.html.erb +++ b/app/views/exercise/_edit_MCQ.html.erb @@ -29,14 +29,12 @@
  • 分 - 标准答案:请选择
  • <% exercise_question.exercise_choices.reorder("choice_position").each_with_index do |exercise_choice,index| %>
  • - @@ -44,6 +42,11 @@
    <% end %>
  • +
  • + + +
  • +
    <%= link_to("", delete_exercise_question_exercise_index_path(:exercise_question => exercise_question.id, :quest_num => exercise_question.question_number), - - method: :delete, :confirm => l(:text_are_you_sure), :remote => true, :class => "ur_icon_de",:title => "删除") %> + method: :delete, :confirm => l(:text_are_you_sure), :remote => true, :class => "ur_icon_de") %>
    @@ -54,11 +53,9 @@ '
  • '+ ''+ '分'+ - '标准答案:请选择'+ '
  • '+ '
  • '+ ''+ - ''+ ''+ ''+ ''+ @@ -66,7 +63,6 @@ '
    '+ '
  • '+ ''+ - ''+ ''+ ''+ ''+ @@ -74,7 +70,6 @@ '
    '+ '
  • '+ ''+ - ''+ ''+ ''+ ''+ @@ -82,12 +77,16 @@ '
    '+ '
  • '+ ''+ - ''+ ''+ ''+ ''+ '
  • '+ '
    '+ + '
  • '+ + ''+ + ''+ + '
  • '+ + '
    '+ ''+ ''+ ''+ '