forked from bofh/fetsite
AutoCommit Fre Aug 7 01:03:02 CEST 2015
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
<%= f.input :title %>
|
||||
<%= f.input :text %>
|
||||
|
||||
<%= f.input :parent_type, as: :hidden %>
|
||||
<%= f.input :parent_id, as: :hidden %>
|
||||
|
||||
<%= f.input :typ %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
<% question_templates.each do |q| %>
|
||||
<%= link_to q.title, new_survey_question_path() %>
|
||||
<%= link_to q.title, create_from_template_survey_question_path(q, params: {parent_type: parent.class.to_s, parent_id: parent.id.to_s}) %>
|
||||
<% end %>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
Neue Frage
|
||||
<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>
|
||||
<li><a href="#">Another action</a></li>
|
||||
<li><a href="#">Something else here</a></li>
|
||||
<li><a href="#">Separated link</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
<%= render_comments_for(@survey_question) %>
|
||||
|
||||
<%= link_to 'Edit', edit_survey_question_path(@survey_question) %> |
|
||||
<%= link_to 'Back', survey_questions_path %>
|
||||
<%= link_to 'Back', polymorphic_path(@survey_question.parent) %>
|
||||
|
||||
Reference in New Issue
Block a user