AutoCommit Don Jul 30 00:03:02 CEST 2015
This commit is contained in:
27
app/views/survey/questions/index.html.erb
Normal file
27
app/views/survey/questions/index.html.erb
Normal file
@@ -0,0 +1,27 @@
|
||||
<h1>Listing survey_questions</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Text</th>
|
||||
<th>Typ</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @survey_questions.each do |survey_question| %>
|
||||
<tr>
|
||||
<td><%= survey_question.title %></td>
|
||||
<td><%= survey_question.text %></td>
|
||||
<td><%= survey_question.typ %></td>
|
||||
<td><%= link_to 'Show', survey_question %></td>
|
||||
<td><%= link_to 'Edit', edit_survey_question_path(survey_question) %></td>
|
||||
<td><%= link_to 'Destroy', survey_question, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Question', new_survey_question_path %>
|
||||
Reference in New Issue
Block a user