AutoCommit Fre Jul 31 18:03:05 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-31 18:03:05 +02:00
parent 02b3a651ca
commit 8a867b72a3
11 changed files with 221 additions and 31 deletions

View File

@@ -24,7 +24,7 @@ $(function () {
text: '<%= answeredquestion.text %>'
},
xAxis: {
categories: [<%= raw(answeredquestion.choices.map{|c| "'"+escape_javascript(ff_icon("ffi1-good2"))+c.text+"'"}.join(",")) %>],
categories: [<%= raw(answeredquestion.choices.map{|c| "'"+escape_javascript(c.html)+"'"}.join(",")) %>],
title: {
text: null
},

View File

@@ -3,9 +3,10 @@
<% else %>
<div class="contentbox" style="background: grey">
<div class="contentbox">
<b><%= question.title%></b></div>
<div class="contentbox">
<ul>
<b><%= question.title%></b> <%=question.text%></div>
<div class="contentbox">
<ul class="choice-list">
<% question.choices.each do |c| %>
<li><%= render c %></li>
<% end %>

View File

@@ -1,24 +1,11 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @survey_question.title %>
</p>
<p>
<b>Text:</b>
<%= @survey_question.text %>
</p><p>
<%= params.to_yaml %>
</p>
<p>
<b>Typ:</b>
<%= @survey_question.typ %>
</p>
<%= render @survey_question %>
<% render partial: "answeredquestion", object: @survey_question %>
<%= link_to 'Edit', edit_survey_question_path(@survey_question) %> |
<%= link_to 'Back', survey_questions_path %>