diff --git a/app/controllers/poll_controller.rb b/app/controllers/poll_controller.rb
index e5b1025a4..9177e044b 100644
--- a/app/controllers/poll_controller.rb
+++ b/app/controllers/poll_controller.rb
@@ -81,6 +81,11 @@ class PollController < ApplicationController
end
end
+ #添加单选题
+ def add_mc
+
+ end
+
private
def find_poll_and_course
@poll = Poll.find params[:id]
diff --git a/app/views/poll/_edit_MCQ.html.erb b/app/views/poll/_edit_MCQ.html.erb
index 1d221c144..b97bba776 100644
--- a/app/views/poll/_edit_MCQ.html.erb
+++ b/app/views/poll/_edit_MCQ.html.erb
@@ -2,7 +2,7 @@
-
+
diff --git a/app/views/poll/_edit_head.html.erb b/app/views/poll/_edit_head.html.erb
new file mode 100644
index 000000000..6c8294e99
--- /dev/null
+++ b/app/views/poll/_edit_head.html.erb
@@ -0,0 +1,13 @@
+
\ No newline at end of file
diff --git a/app/views/poll/new.html.erb b/app/views/poll/new.html.erb
index 8f3cde9da..06ef2fae8 100644
--- a/app/views/poll/new.html.erb
+++ b/app/views/poll/new.html.erb
@@ -4,6 +4,13 @@
问卷调查_问卷编辑
<%= stylesheet_link_tag 'polls', :media => 'all' %>
+
+
@@ -12,37 +19,38 @@
-
+<%= render :partial => 'edit_head'%>
+
+
+
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 7c93f8e98..d130cc666 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -2245,4 +2245,9 @@ zh:
label_poll: 问卷调查
label_new_poll: 新建问卷
label_statistical_results: 统计结果
+ label_MC: 单选题
+ label_MCQ: 多选题
+ label_single: 单行文字
+ label_mulit: 多行文字
+
diff --git a/config/routes.rb b/config/routes.rb
index 617a5ade4..af0b75ae7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -61,6 +61,7 @@ RedmineApp::Application.routes.draw do
resources :poll do
member do
get 'statistics_result'
+ get 'add_mc'
end
end