AutoCommit Don Jul 30 00:03:02 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-30 00:03:02 +02:00
parent 068c2a2e55
commit 97df081b33
66 changed files with 1542 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<%= semantic_form_for @survey_question do |f| %>
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :text %>
<%= f.input :typ %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,2 @@
<b><%= question.title%></b>
<%= form_for %>

View File

@@ -0,0 +1,6 @@
<h1>Editing survey_question</h1>
<%= render 'form' %>
<%= link_to 'Show', @survey_question %> |
<%= link_to 'Back', survey_questions_path %>

View 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 %>

View File

@@ -0,0 +1,5 @@
<h1>New survey_question</h1>
<%= render 'form' %>
<%= link_to 'Back', survey_questions_path %>

View File

@@ -0,0 +1,21 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @survey_question.title %>
</p>
<p>
<b>Text:</b>
<%= @survey_question.text %>
</p>
<p>
<b>Typ:</b>
<%= @survey_question.typ %>
</p>
<%= render @survey_question %>
<%= link_to 'Edit', edit_survey_question_path(@survey_question) %> |
<%= link_to 'Back', survey_questions_path %>