diff --git a/app/helpers/poll_helper.rb b/app/helpers/poll_helper.rb
index 36b5deccb..47612f825 100644
--- a/app/helpers/poll_helper.rb
+++ b/app/helpers/poll_helper.rb
@@ -62,8 +62,10 @@ module PollHelper
"单选题"
when 2
"多选题"
+ when 3
+ "单行主观"
else
- "问答题"
+ "多行主观"
end
end
diff --git a/app/views/poll/_quiz_answers.html.erb b/app/views/poll/_quiz_answers.html.erb
new file mode 100644
index 000000000..f2cfff5cc
--- /dev/null
+++ b/app/views/poll/_quiz_answers.html.erb
@@ -0,0 +1,18 @@
+
+
+
+
+ <%= l(:label_answer) %> |
+
+ <% poll_question.poll_votes.each do |poll_vote| %>
+
+ <%= poll_vote.vote_text %>dddd |
+
+ <% end %>
+
+ <%= l(:label_poll_answer_valid_result) %> <%= l(:label_answer_total) %><%= poll_question.poll_votes.count %> |
+
+
+
+
+
diff --git a/app/views/poll/show.html.erb b/app/views/poll/show.html.erb
index bc5136718..d20f46297 100644
--- a/app/views/poll/show.html.erb
+++ b/app/views/poll/show.html.erb
@@ -180,7 +180,7 @@
}
- >
+ >
<% elsif pq.question_type == 4 %>
diff --git a/app/views/poll/statistics_result.html.erb b/app/views/poll/statistics_result.html.erb
index 3ef29eb48..a33daacfb 100644
--- a/app/views/poll/statistics_result.html.erb
+++ b/app/views/poll/statistics_result.html.erb
@@ -10,14 +10,18 @@
<%= @poll.polls_name %> <%= l(:label_poll) %>
- <% @poll_questions.each do |poll_question| %>
+ <% @poll_questions.each do |poll_question| %>
-
第<%= poll_question.question_number %>题:<%= poll_question.question_title %> [<%= options_show(poll_question.question_type) %>]
- <%= render :partial =>'choice_show', :locals =>{ :poll_question => poll_question } %>
+ <% if poll_question.question_type == 1 || poll_question.question_type == 2 %>
+ <%= render :partial =>'choice_show', :locals =>{ :poll_question => poll_question } %>
+ <% else %>
+ <%= render :partial =>'quiz_answers', :locals =>{ :poll_question => poll_question } %>
+ <% end %>
<% end %>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 5fe8a6560..7f7d00ba3 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -2262,5 +2262,7 @@ zh:
label_poll_proportion: 比例
label_poll_valid_commit: 本题有效填写人次
label_poll_result: 问卷调查_问卷统计
-
+ label_answer: 答案
+ label_poll_answer_valid_result: 以上为有效问答题答案!
+ label_answer_total: 总计:
diff --git a/public/stylesheets/polls.css b/public/stylesheets/polls.css
index e89e50be4..0476f4291 100644
--- a/public/stylesheets/polls.css
+++ b/public/stylesheets/polls.css
@@ -68,6 +68,7 @@ a:hover.ur_button{ background:#0fa9bb; text-decoration:none;}
.td327{ width:300px; padding-left:5px;}
.td42{ width:42px; text-align:center;}
.td287{ width:259px;padding-left:5px; }
+.td111{ width:601px;padding-left:5px; }
.Bar{ position: relative; width: 120px; border: 1px solid #cbcbcb; float:left; height:10px; margin-top:5px; margin-right:3px; }
.Bar span{ display: block; position: relative;background:#64badb;/* 进度条背景颜色 */ color: #333333;height: 10px; /* 高度 */ line-height: 20px; }
.ur_progress_text{ color:#3a3a3a;}
@@ -94,13 +95,13 @@ a:hover.tab_item02{ background:#fff;}
.ur_editor {width:655px; border:1px solid #cbcbcb;background:#eeeeee; padding:10px; margin-bottom:10px;}
.ur_title_editor_title{ margin-bottom:10px;}
-.input_title{ width:630px; height:40px; padding:0 10px; text-align:center; font-size:16px; font-weight:bold;}
-.textarea_editor{ width:632px; height:120px; padding:10px; margin-bottom:10px;}
+.input_title{ width:630px; height:40px; padding:0 10px; text-align:center; font-size:16px; font-weight:bold;border: 1px solid #DCDCDC !important;}
+.textarea_editor{ width:632px; height:120px; padding:10px; margin-bottom:10px;border: 1px solid #DCDCDC !important;}
.btn_submit{ width:56px; height:24px; padding-top:4px;background:#15bccf; color:#fff; text-align:center; display:block; float:left; margin-right:10px;}
a:hover.btn_submit{background:#0fa9bb;}
.btn_cancel{width:54px; height:22px; padding-top:4px;background:#fff; color:#999; border:1px solid #999; text-align:center; display:block; float:left; }
a:hover.btn_cancel{ color:#666;}
-.ur_question_title{ width:534px; height:30px; border:1px solid #cbcbcb; padding:0 5px !important; margin-right:10px;}
+.ur_question_title{ width:534px; height:30px; border:1px solid #cbcbcb; padding:0 5px !important; margin-right:10px;border: 1px solid #DCDCDC !important;}
.ur_editor_title{ margin-bottom:10px;}
.ur_editor_content{ }
.ur_item{ margin-bottom:5px; height:32px; }
diff --git a/public/themes/redpenny-master/stylesheets/application.css b/public/themes/redpenny-master/stylesheets/application.css
index 897434393..936610c6b 100644
--- a/public/themes/redpenny-master/stylesheets/application.css
+++ b/public/themes/redpenny-master/stylesheets/application.css
@@ -851,8 +851,8 @@ p.breadcrumb
input[type="text"],input[type="password"],textarea,select
{
- #padding:2px;
- #border:1px solid #039ea0
+ padding:2px;
+ border:1px solid #039ea0
}
input[type="text"],input[type="password"]