AutoCommit Mon Aug 10 20:03:02 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-10 20:03:02 +02:00
parent d628d6cee8
commit 2ef0dc7fb8
7 changed files with 26 additions and 28 deletions

View File

@@ -38,7 +38,7 @@
</p>
<%= render partial: "neuigkeit_view", object: @neuigkeit %>
<%= new_question_for(@neuigkeit) if can? :new, Survey::Question %>
<% @questions.each do |q| %>
<%= render q if can? :show, q %>
<% end %>

View File

@@ -1,6 +1,8 @@
<div id="container_question_<%= answeredquestion.id %>" style="min-width: 310px; max-width: 800px; height: <%= (100+answeredquestion.choices.count * 90).to_s %>px; margin: 0 auto" class="contentbox">
<div style="background:red">
<b><%= answeredquestion.title%></b>
<b>
<%= answeredquestion.title%>
</b>
<ul>
<% answeredquestion.choices.each do |c| %>
<li>

View File

@@ -4,13 +4,13 @@
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li><%= link_to "Neue FRage", new_survey_question_path(params: {parent_type: parent.class.to_s, parent_id: parent.id.to_s}) %></li>
<% question_templates.each do |q| %>
<li><%= link_to q.title, create_from_template_survey_question_path(q, params: {parent_type: parent.class.to_s, parent_id: parent.id.to_s}) %>
</li>
<% end %>
<li>
<%= link_to "Neue FRage", new_survey_question_path(params: {parent_type: parent.class.to_s, parent_id: parent.id.to_s}) %>
</li>
<% question_templates.each do |q| %>
<li>
<%= link_to q.title, create_from_template_survey_question_path(q, params: {parent_type: parent.class.to_s, parent_id: parent.id.to_s}) %>
</li>
<% end %>
</ul>
</div>

View File

@@ -44,6 +44,7 @@
<%= @lva.desc.to_s.html_safe %>
</div>
</div>
</div>
<div class="span4">
<div class="contentbox">
@@ -80,6 +81,10 @@
<div class="row-fluid">
<div class="span12">
<%= new_question_for(@lva) %>
<% @questions.each do |q| %>
<%= render q if can? :show, q %>
<% end %>
<h2><%= I18n.t("lva.bspe") %></h2>
<p>
@@ -115,6 +120,7 @@
<div class="row-fluid">
<div class="span12">
<% unless @lva.nlinks.empty? %>
<h2><%= I18n.t("rubrik.title") %></h2>
<% @lva.nlinks.each do |l| %>
@@ -132,6 +138,7 @@
</div>
<% end %>
<% unless @crawlobjects.nil? %>
<div class="row-fluid">
<div class="span12">